Skip to content

Conversation

@burmudar
Copy link
Contributor

@burmudar burmudar commented Jan 6, 2026

This adds a --json flag for all tool calls exposed through src mcp. By using --json an agent can provide values for all flags instead of using the cli flag ie. src mcp <tool-name> --json '{"query": "test", "repo": "github.com/sourcegraph/sourcegraph"}' instead of src mcp <tool-name> --query "test" -repo "github.com/sourcegraph/sourcegraph"

Note:
Values specified via --json take precedence over values provided via flags.

Test plan

  • Tested manually
  • Asked Amp to use --json flag and also mix the usage with normal flags

Closes CPL-13

@burmudar burmudar self-assigned this Jan 6, 2026
- include note section where we mention the precedence
@burmudar burmudar marked this pull request as ready for review January 6, 2026 14:47
@burmudar burmudar requested a review from keegancsmith January 6, 2026 14:48
@burmudar burmudar merged commit 7393a82 into main Jan 7, 2026
8 checks passed
@burmudar burmudar deleted the wb/mcp-json-args branch January 7, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants