Skip to content

Commit 42ca15d

Browse files
committed
fix MCP casing
1 parent 5dc0841 commit 42ca15d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/mcp/mcp_request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"github.com/sourcegraph/sourcegraph/lib/errors"
1414
)
1515

16-
const McpURLPath = ".api/mcp/v1"
17-
const McpDeepSearchURLPath = ".api/mcp/deepsearch"
16+
const MCPURLPath = ".api/mcp/v1"
17+
const MCPDeepSearchURLPath = ".api/mcp/deepsearch"
1818

1919
func fetchToolDefinitions(ctx context.Context, client api.Client, endpoint string) (map[string]*ToolDef, error) {
2020
resp, err := doJSONRPC(ctx, client, endpoint, "tools/list", nil)

internal/mcp/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func NewToolRegistry() *ToolRegistry {
2525

2626
// LoadTools loads the tool definitions from the Mcp tool endpoints constants McpURLPath and McpDeepSearchURLPath
2727
func (r *ToolRegistry) LoadTools(ctx context.Context, client api.Client) error {
28-
endpoints := []string{McpURLPath, McpDeepSearchURLPath}
28+
endpoints := []string{MCPURLPath, MCPDeepSearchURLPath}
2929

3030
var errs []error
3131
for _, endpoint := range endpoints {

0 commit comments

Comments
 (0)