chore(mcp): handle MCP isError response by burmudar · Pull Request #1236 · sourcegraph/src-cli
Navigation Menu
{{ message }}
sourcegraph / src-cli Public
- Notifications You must be signed in to change notification settings
- Fork 68
Merged
Conversation
Copy link Copy Markdown
Contributor
burmudar
commented
Dec 10, 2025
burmudar
commented
Tool errors are sent as results with isError: true. We check if that field is true and extract the text.
Test plan
go run ./cmd/src deepsearch -question 'how does src-cli get released?'
MCP tool error: failed to create conversation: failed to check quota
burmudar
requested a review
from a team
burmudar
self-assigned this
keegancsmith approved these changes Dec 10, 2025
burmudar
deleted the
wb/mcp-iserror
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment