55- [ Overview] ( #connx-mcp-server )
66- [ Sample Features] ( #features )
77- [ Installation] ( #installation )
8+ - [ Testing] ( #testing- )
89- [ Usage] ( #usage )
910- [ MCP Tools] ( #mcp-tools )
1011 - [ ` query_connx ` ] ( #query_connx )
1112 - [ ` update_connx ` ] ( #update_connx )
12- - [ MCP Resources] ( #mcp-resources )
1313- [ MCP Client Examples] ( #mcp-client-examples )
1414- [ Extending MCP Tools] ( #extending-mcp-tools )
1515- [ Summary] ( #summary )
@@ -31,6 +31,7 @@ An unofficial MCP (Model Context Protocol) server for integrating with CONNX dat
31312 . Install dependencies: ` pip install -r requirements.txt `
32323 . Configure CONNX DSN in ` connx_server.py ` (use env vars for production).
3333
34+
3435## Usage
3536Run: ` python connx_server.py `
3637
@@ -151,11 +152,14 @@ Below are examples of how MCP-compatible clients (such as Claude Desktop or othe
151152async def query_connx (query : str ) -> Dict[str , Any]:
152153```
153154
154- # Testing
155+ # Testing
155156This project uses pytest for unit testing. Tests mock database interactions to run without a real CONNX setup.
156157
157158- Install test deps: ` pip install pytest pytest-mock pytest-asyncio `
158159- Run tests: ` pytest tests/ `
160+ - Commandline smoke test ` python -c "from dotenv import load_dotenv; load_dotenv(); from connx_server import get_connx_connection; c=get_connx_connection(); print('OK'); c.close()" `
161+ - Run Python smoke test: ` python .\scripts\smoke.py
162+ `
159163
160164Coverage includes connection handling, query/update execution, sanitization, and MCP tools/resources.
161165
0 commit comments