MCPcopy Create free account
hub / github.com/bytebase/bytebase / registerSearchTool

Method registerSearchTool

backend/api/mcp/tool_search.go:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36**Workflow:** search_api() → search_api(service="...") → search_api(operationId="...") → call_api(...)`
37
38func (s *Server) registerSearchTool() {
39 mcp.AddTool(s.mcpServer, &mcp.Tool{
40 Name: "search_api",
41 Description: searchAPIDescription,
42 }, s.handleSearchAPI)
43}
44
45func (s *Server) handleSearchAPI(_ context.Context, _ *mcp.CallToolRequest, input SearchInput) (*mcp.CallToolResult, any, error) {
46 var text string

Callers 1

registerToolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected