fastmcp_runnerΒΆ
FastMCP Server Runner.
Manages the lifecycle of FastMCP servers registered in the system. Provides process management, monitoring, and integration with the discovery system.
AttributesΒΆ
ClassesΒΆ
Command-line interface for FastMCP server management. |
|
Manages MCP server processes with monitoring and auto-restart. |
FunctionsΒΆ
|
Main CLI entry point. |
Module ContentsΒΆ
- class fastmcp_runner.MCPProcessManager(config_path: pathlib.Path | None = None)ΒΆ
Manages MCP server processes with monitoring and auto-restart.
- async monitor_servers()ΒΆ
Monitor running servers and restart if needed.
- async start_monitoring()ΒΆ
Start the monitoring task.
- async stop_all_servers()ΒΆ
Stop all running servers.
- async stop_monitoring()ΒΆ
Stop the monitoring task.
- config_pathΒΆ
- monitor_task = NoneΒΆ
- processes: dict[str, subprocess.Popen]ΒΆ
- async fastmcp_runner.main()ΒΆ
Main CLI entry point.
- fastmcp_runner.loggerΒΆ