Open
Description
There seems to be a bug when using Browserbase/Stagehand MCP where some functions don't return content, so it crashes due to being incompatible with MCP spec.
Model function call:
{
"id": "msg_01Ga9frjsasGrkLE92uyRiKo",
"type": "message",
"role": "assistant",
"model": "claude-3-5-sonnet-20241022",
"content": [
{
"type": "tool_use",
"id": "toolu_01TwYMqUF7fVK9QYLJP6zcyt",
"name": "browser_stagehand_navigate",
"input": {
"url": "https://github.com/modelcontextprotocol/servers/blob/main/src/gdrive"
}
}
],
"stop_reason": "tool_use",
"stop_sequence": null,
"usage": {
"input_tokens": 173,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 3051,
"output_tokens": 108
}
}
Error:
const error = new ZodError(ctx.common.issues);
^
ZodError: [
{
"code": "invalid_type",
"expected": "array",
"received": "undefined",
"path": [
"content"
],
"message": "Required"
}
]
Metadata
Metadata
Assignees
Labels
No labels