mcp_bridge_server
sqllocks_spindle.mcp_bridge_server
¶
Persistent MCP bridge — JSON-lines protocol for warm-start.
Instead of spawning a new Python process per MCP call (cold-start ~2.5s), this runs as a long-lived process that reads JSON-lines from stdin and writes responses to stdout. The import cost is paid once at startup.
Usage
python -m sqllocks_spindle.mcp_bridge_server
Protocol
Input: one JSON object per line on stdin Output: one JSON object per line on stdout
Commands
ping — health check, returns {"status": "ok", "data": {"pong": true}} shutdown — graceful exit (all mcp_bridge.COMMANDS) — list, describe, generate, dry_run, validate, preview, profile_info