chore: flatten tool calling, prep for timeout handling (#205)
This commit is contained in:
@@ -71,7 +71,7 @@ export function createServerWithTools(options: Options): Server {
|
||||
}
|
||||
|
||||
try {
|
||||
return await tool.handle(context, request.params.arguments);
|
||||
return await context.run(tool, request.params.arguments);
|
||||
} catch (error) {
|
||||
return {
|
||||
content: [{ type: 'text', text: String(error) }],
|
||||
|
||||
Reference in New Issue
Block a user