(response: { content: Array<{ type: string; text: string }> })
| 7 | |
| 8 | // Helper to extract result from MCP response |
| 9 | function extractResult(response: { content: Array<{ type: string; text: string }> }): Record<string, unknown> { |
| 10 | return JSON.parse(response.content[0].text) |
| 11 | } |
| 12 | |
| 13 | describe('reading tools handlers', () => { |
| 14 | let tempDir: string |