Skip to content

McpManager

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/mcp/mcp-manager.ts

Methods

MethodSignatureReturns
connectconnect()Promise<void>
getToolsgetTools()ToolDefinition<any>[]
listServerslistServers()string[]
closeclose()Promise<void>

Where it refuses work

  • McpManager stops the work with an early return when !config.
  • McpManager stops the work with an early return when !fs.existsSync(this.configPath).
  • McpManager stops the work with an early return when 'url' in config.

When something fails

  • McpManager handles failure in 1 place: it turns it into a return value in all 1.

Was this page helpful?

Download as PDF