MCPcopy Create free account
hub / github.com/modelcontextprotocol/mcpb / main

Function main

examples/hello-world-uv/src/server.py:47–61  ·  view source on GitHub ↗

Run the server.

()

Source from the content-addressed store, hash-verified

45
46
47async def main():
48 """Run the server."""
49 async with mcp.server.stdio.stdio_server() as (read_stream, write_stream):
50 await server.run(
51 read_stream,
52 write_stream,
53 InitializationOptions(
54 server_name="hello-world-uv",
55 server_version="1.0.0",
56 capabilities=server.get_capabilities(
57 notification_options=NotificationOptions(),
58 experimental_capabilities={},
59 ),
60 ),
61 )
62
63
64if __name__ == "__main__":

Callers 1

server.pyFile · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…