feat(mcp): add tool registry to handle tools from different endpoints by burmudar · Pull Request #1237 · sourcegraph/src-cli
Conversation
Add a tool registry which keeps tracks of tools and from which endpoints they originated from. We need to know the endpoint so that we a tool call is made it is made against the correct endpoint.
Test plan
go run ./cmd/src deepsearch -question 'which repo uses bazel?'
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we just update the server now to include deep search tools on v1? That way we can avoid making this more complicated. Otherwise we can move forward with this.
Should we just update the server now to include deep search tools on v1? That way we can avoid making this more complicated. Otherwise we can move forward with this.
A part of me think we should. I'd still keep this registry though but remove the endpoint tracking.
Site note: should it be deep-search instead of deepsearch?
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