File tree Expand file tree Collapse file tree 5 files changed +6
-11
lines changed
Expand file tree Collapse file tree 5 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 44[ ![ Python] ( https://img.shields.io/pypi/pyversions/cockroachdb-mcp-server )] ( https://pypi.org/project/cockroachdb-mcp-server/ )
55[ ![ License] ( https://img.shields.io/github/license/viragtripathi/cockroachdb-mcp-server )] ( https://github.com/viragtripathi/crdb-dump/blob/main/LICENSE )
66[ ![ CI] ( https://github.com/viragtripathi/cockroachdb-mcp-server/actions/workflows/python-ci.yml/badge.svg )] ( https://github.com/viragtripathi/cockroachdb-mcp-server/actions )
7+ ![ MCP Compatible] ( https://img.shields.io/badge/MCP-compatible-blue )
78
89A Model Context Protocol (MCP) server implemented in Python using FastAPI and CockroachDB.
910
Original file line number Diff line number Diff line change 44FastAPI-based MCP server backed by CockroachDB.
55"""
66
7- __version__ = "0.2.0 "
7+ __version__ = "0.2.1 "
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ def serve(
5252
5353 setup_logging (log_level )
5454
55+ if demo_mode :
56+ os .environ ["MCP_DEMO_MODE" ] = "true"
57+
5558 if init_schema or os .getenv ("MCP_AUTO_INIT_SCHEMA" ) == "true" :
5659 typer .echo ("Initializing schema..." )
5760 run_schema_init (resolve_crdb_url ())
Original file line number Diff line number Diff line change @@ -23,12 +23,3 @@ def get_sqlalchemy_engine(opts=None):
2323
2424 logger .debug ("Constructed CRDB DSN from opts: %s" , base )
2525 return create_engine (base )
26-
27-
28- """"
29- def get_psycopg_connection():
30- url = resolve_crdb_url()
31- pg_url = url.replace("cockroachdb://", "postgresql://")
32- print(f"[debug] Using psycopg2 connection: {pg_url}")
33- return psycopg2.connect(pg_url)
34- """
Original file line number Diff line number Diff line change 11[project ]
22name = " cockroachdb-mcp-server"
3- version = " 0.2.0 "
3+ version = " 0.2.1 "
44description = " Model Context Protocol server with CockroachDB"
55authors = [{ name = " Virag Tripathi" , email = " virag.tripathi@gmail.com" }]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments