-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
Description
Describe the bug
I have a local ollama+sourcebot setup, as well as continue.dev extension on vscode. The MCP server lists the tools correctly, but when using any agent, tool calls fail with:
sourcebot_via_npx_search_code failed with the message: [{"type":"text","text":"[\n {\n \"code\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"undefined\",\n \"path\": [\n \"zoektStats\"\n ],\n \"message\": \"Required\"\n }\n]"}]
At first I thought it might be a problem with the continue.dev extension, so I grabbed mcptools
to test it with call search_code --params '{"query":"test"}'
and, alas, there it was again:
[
{
"code": "invalid_type",
"expected": "object",
"received": "undefined",
"path": [
"zoektStats"
],
"message": "Required"
}
]
To reproduce
Set up docker image using ghcr.io/sourcebot-dev/sourcebot:main
and a config JSON with:
{
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
"connections": {
"local-repos": {
"type": "git",
"url": "file:///repos/*"
}
}
}
There's a single git repo in there, which is indexed properly. Sourcebot web server search and file explorer works perfectly fine. "Ask Sourcebot" also works fine.
Sourcebot deployment information
Sourcebot version (e.g. v3.0.1): latest main (ghcr.io/sourcebot-dev/sourcebot:main
)