Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/modelcontextprotocol/python-sdk
/ direct_execution.py
File
direct_execution.py
examples/snippets/servers/direct_execution.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"Example showing direct execution of an MCP server.
2
3
This is the simplest way to run an MCP server directly.
4
cd to the `examples/snippets` directory and run:
Callers
nothing calls this directly
Calls
2
MCPServer
Class · 0.90
main
Function · 0.70
Tested by
no test coverage detected