We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3742c5d commit 18e3eccCopy full SHA for 18e3ecc
1 file changed
src/scenarios/client/stateless.ts
@@ -181,8 +181,22 @@ export class StatelessScenario implements Scenario {
181
}
182
183
// Return generic response to unblock client
184
+ let result: any = {};
185
+ if (request.method === 'tools/list') {
186
+ result = {
187
+ tools: [
188
+ {
189
+ name: 'long_running_task',
190
+ description: 'A mock long running task for cancellation',
191
+ inputSchema: { type: 'object', properties: {} }
192
+ }
193
+ ]
194
+ };
195
+ } else if (request.method === 'tools/call') {
196
+ result = { content: [] };
197
198
res.writeHead(200, { 'Content-Type': 'application/json' });
- res.end(JSON.stringify({ jsonrpc: '2.0', id: request.id, result: {} }));
199
+ res.end(JSON.stringify({ jsonrpc: '2.0', id: request.id, result }));
200
});
201
202
0 commit comments