Guide on mcp dev
for python SDK
#207
Unanswered
schwannden
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Question Category
Your Question
I am able to run
mcp dev package/server.py
if there is a server object in the server.py. But when I look at https://github.com/modelcontextprotocol/servers/blob/main/src/fetch/src/mcp_server_fetch/server.py for example, theserver
object is wrapped in aserve
function. If it is the recommended way to wrap a python mcp server in a serve function to serve with async, could anyone recommend how we could be inspecting the MCP server like usingmcp dev
and go tolocalhost:5173
?Need a guide on setting MCP server for production, but still make it easy to debug on local development.
Beta Was this translation helpful? Give feedback.
All reactions