Main entry point for the MCP server.
()
| 2883 | |
| 2884 | |
| 2885 | async def main(): |
| 2886 | """Main entry point for the MCP server.""" |
| 2887 | try: |
| 2888 | async with stdio_server() as (read_stream, write_stream): |
| 2889 | await server.run( |
| 2890 | read_stream, write_stream, server.create_initialization_options() |
| 2891 | ) |
| 2892 | except Exception as e: |
| 2893 | print(f"Error running MCP server: {e}") |
| 2894 | print("Make sure the MCP library is properly installed.") |
| 2895 | print("Try: pip install mcp") |
| 2896 | sys.exit(1) |
| 2897 | |
| 2898 | |
| 2899 | if __name__ == "__main__": |
no test coverage detected