( handler: (request: unknown) => Promise<ToolCallResponse | ResourceReadResponse>, id: number, name: string, args: Record<string, unknown> )
| 156 | } |
| 157 | |
| 158 | async 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 | |
| 172 | describe('multi-project routing', () => { |
| 173 | let primaryRoot: string; |
no outgoing calls
no test coverage detected