MCPcopy Create free account
hub / github.com/Noumena-Network/code / callIdeRpc

Function callIdeRpc

src/services/mcp/client.ts:2119–2131  ·  view source on GitHub ↗
(
  toolName: string,
  args: Record<string, unknown>,
  client: ConnectedMCPServer,
)

Source from the content-addressed store, hash-verified

2117 * @returns The result of the tool call
2118 */
2119export async function callIdeRpc(
2120 toolName: string,
2121 args: Record<string, unknown>,
2122 client: ConnectedMCPServer,
2123): Promise<string | ContentBlockParam[] | undefined> {
2124 const result = await callMCPTool({
2125 client,
2126 tool: toolName,
2127 args,
2128 signal: createAbortController().signal,
2129 })
2130 return result.content
2131}
2132
2133/**
2134 * Note: This should not be called by UI components directly, they should use the reconnectMcpServer

Callers 7

closeOpenDiffsFunction · 0.85
ensureFileOpenedMethod · 0.85
beforeFileEditedMethod · 0.85
getNewDiagnosticsMethod · 0.85
showDiffInIDEFunction · 0.85
closeTabInIDEFunction · 0.85

Calls 2

callMCPToolFunction · 0.85
createAbortControllerFunction · 0.85

Tested by

no test coverage detected