-
Book Overview & Buying
-
Table Of Contents
Ship an MCP Server in Python - Fast
By :
Wire your server into a host so an LLM can drive it. In VS Code with Copilot agent mode, configure the server in .vscode/mcp.json. In Claude Desktop, add the same server definition to Claude Desktop’s MCP config. In both cases, use a stdio server entry with the launcher (uv or python) and the correct path to your server.
Next, run a couple of agent-mode prompt checks. For our example, that meant asking for add and joke in chat, and allowing tool runs. Use the Configure Tools panel to enable or disable tool availability while you debug routing.
When local is solid, cut over to HTTP so others can reach the server. Expose a single Streamable HTTP MCP endpoint and verify the initialize/initialized handshake over HTTP. Perform some health checks before moving on. From CI, run Inspector in CLI mode to list tools against the HTTP endpoint and assert you get a valid tool list. From a developer machine, run one tool call the same way. Most cutover issues are...
Change the font size
Change margin width
Change background colour