mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
added mcp server tests
This commit is contained in:
@@ -22,6 +22,11 @@ export function createMcpToolCaller() {
|
||||
arguments: args,
|
||||
},
|
||||
});
|
||||
|
||||
if ((res.result as any)?.isError) {
|
||||
throw new Error((res.result as any)?.content?.[0]?.text ?? "Unknown error");
|
||||
}
|
||||
|
||||
return JSON.parse((res.result as any)?.content?.[0]?.text ?? "null");
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user