root_mcp.server module

ROOT-MCP Server - Mode-aware implementation with lazy loading.

class root_mcp.server.ROOTMCPServer(config)[source]

Bases: object

Mode-aware ROOT-MCP server with lazy loading.

Parameters:

config (Config)

__init__(config)[source]

Initialize ROOT-MCP server in specified mode.

Parameters:

config (Config) – Server configuration

async run()[source]

Run the MCP server.

Return type:

None

switch_mode(new_mode)[source]

Switch between core and extended modes at runtime.

Parameters:

new_mode (str) – Target mode (‘core’ or ‘extended’)

Returns:

Status dictionary

Return type:

dict[str, Any]

root_mcp.server.main()[source]

Main entry point.

Return type:

None