(method: string, params: object)
| 724 | new MCPSession(transport as never, engine).start(); |
| 725 | let nextId = 0; |
| 726 | const call = async (method: string, params: object): Promise<Reply> => { |
| 727 | const id = nextId++; |
| 728 | await deliver!({ jsonrpc: '2.0', id, method, params }); |
| 729 | return replies.get(id)!; |
| 730 | }; |
| 731 | const initialize = (params: object = {}) => |
| 732 | call('initialize', { protocolVersion: '2025-11-25', capabilities: {}, clientInfo: { name: 'test', version: '0' }, ...params }); |
| 733 | const node = (symbol: string) => |
no test coverage detected