Run the server.
()
| 45 | |
| 46 | |
| 47 | async 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 | |
| 64 | if __name__ == "__main__": |