feat(mcp): add tool registry to handle tools from different endpoints by burmudar · Pull Request #1237 · sourcegraph/src-cli

Conversation

@burmudar

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?'

registry tracks tools and from which endpoints they originated from

keegancsmith

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.

@burmudar

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?

2 participants

@burmudar @keegancsmith