Skip to content

McpClient

reference
1 min readUpdated

Kind: Class

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

Methods

MethodSignatureReturns
initializeinitialize()Promise<McpServerInfo>
listToolslistTools()Promise<McpToolDefinition[]>
callToolcallTool(name: string, args: Record<string, unknown>)Promise<McpCallResult>
closeclose()Promise<void>

Where it refuses work

  • McpClient stops the work with an early return when !pending.

When something fails

  • McpClient handles failure in 2 places: it logs it and continues in 1, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.

Was this page helpful?

Download as PDF