MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / main

Function main

src/mcp/server/__main__.py:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17async def main() -> None:
18 server: Server[dict[str, object]] = Server("mcp")
19 async with stdio_server() as (read_stream, write_stream):
20 await server.run(read_stream, write_stream, server.create_initialization_options())
21
22
23if __name__ == "__main__":

Callers

nothing calls this directly

Calls 4

runMethod · 0.95
ServerClass · 0.90
stdio_serverFunction · 0.90

Tested by

no test coverage detected