MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / listMCPTools

Function listMCPTools

common/src/mcp/client.ts:126–138  ·  view source on GitHub ↗
(
  clientId: string,
  ...args: Parameters<typeof Client.prototype.listTools>
)

Source from the content-addressed store, hash-verified

124}
125
126export function listMCPTools(
127 clientId: string,
128 ...args: Parameters<typeof Client.prototype.listTools>
129): ReturnType<typeof Client.prototype.listTools> {
130 const client = runningClients[clientId]
131 if (!client) {
132 throw new Error(`listTools: client not found with id: ${clientId}`)
133 }
134 if (!listToolsCache[clientId]) {
135 listToolsCache[clientId] = client.listTools(...args)
136 }
137 return listToolsCache[clientId]
138}
139
140function getResourceData(
141 resource: TextResourceContents | BlobResourceContents,

Callers 1

runOnceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected