Skip to content

Conversation

@burmudar
Copy link
Contributor

@burmudar burmudar commented Dec 9, 2025

Removes the tool list json dump we had and now loads the tool definitions on demand from the the configured sourcegraph instance.

Note there are still rough edges:

  • src mcp panics with no subcommands
  • error messages need work to inform the llm of corrective steps it can take or discovery
  • pass args as json with --json
  • flag validation ... if it aint set don't use it

Test plan

tested locally

go run ./cmd/src mcp list-tools
go run ./cmd/src mcp read-file schema
go run ./cmd/src mcp commit-search -repo 'sourcegraph/sourcegraph' -count 5

@burmudar burmudar requested review from a team and eseliger December 9, 2025 11:34
@burmudar burmudar self-assigned this Dec 9, 2025
@burmudar burmudar merged commit b10b4ef into main Dec 9, 2025
8 checks passed
@burmudar burmudar deleted the wb/ondemand-mcp-tools branch December 9, 2025 13:03
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