MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / callTool

Function callTool

tests/multi-project-routing.test.ts:158–170  ·  view source on GitHub ↗
(
  handler: (request: unknown) => Promise<ToolCallResponse | ResourceReadResponse>,
  id: number,
  name: string,
  args: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

156}
157
158async function callTool(
159 handler: (request: unknown) => Promise<ToolCallResponse | ResourceReadResponse>,
160 id: number,
161 name: string,
162 args: Record<string, unknown>
163): Promise<ToolCallResponse> {
164 return (await handler({
165 jsonrpc: '2.0',
166 id,
167 method: 'tools/call',
168 params: { name, arguments: args }
169 })) as ToolCallResponse;
170}
171
172describe('multi-project routing', () => {
173 let primaryRoot: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected