Creates an instance of McpManager.
The tool registry to register proxy tools with.
The state manager (not currently used).
OptionalauthManager: AuthManagerThe authentication manager.
Searches a discovery service for available MCP servers.
OptionaldiscoveryEndpoint: stringThe URL of the discovery service.
A promise resolving to an array of McpServerConfig.
Gets an existing connection or creates a new one for a given server ID.
The ID of the server to connect to.
A promise that resolves to the MCP client controller.
Initializes the McpManager, discovers and registers tools from configured servers.
OptionalmcpConfig: { discoveryEndpoint?: string; enabled?: boolean }The MCP configuration.
OptionaldiscoveryEndpoint?: stringThe endpoint for discovering MCP servers.
Optionalenabled?: booleanWhether MCP is enabled.
A promise that resolves when initialization is complete.
Installs a server by persisting its config, discovering tools via MCP, and registering proxy tools. Returns the finalized config with accurate tools.
The server configuration to install.
A promise that resolves to the finalized server configuration.
Shuts down all active MCP connections.
A promise that resolves when all connections are shut down.
Uninstalls a server: disconnects, removes registered proxy tools, and deletes config.
The ID of the server to uninstall.
A promise that resolves when the server is uninstalled.
Manages MCP (Model Context Protocol) server connections and tool registration.
Remarks
The
McpManageris responsible for:This enables dynamic tool loading from external MCP servers while maintaining seamless integration with the ART Framework's tool system.
See
McpManager