108
*/
109
public simulateInitialized() {
111
throw new Error('initialize was not called yet');
112
}
114
>
this.simulateReceiveMessage({
115
>
jsonrpc: MCP.JSONRPC_VERSION,
116
>
id: (this.getSentMessages()[0] as MCP.JSONRPCRequest).id,
117
>
result: {
118
>
protocolVersion: MCP.LATEST_PROTOCOL_VERSION,
119
>
capabilities: {
120
>
tools: {},
121
>
},
122
>
serverInfo: {
123
>
name: 'Test Server',
124
>
version: '1.0.0'
125
>
},
126
>
} satisfies MCP.InitializeResult
127
>
});
128
>
}
129
130
/**