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

Method registerCallTool

backend/api/mcp/tool_call.go:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45call_api(operationId="SQLService/Query", body={"name": "instances/i/databases/db", "statement": "SELECT 1"})`
46
47func (s *Server) registerCallTool() {
48 mcp.AddTool(s.mcpServer, &mcp.Tool{
49 Name: "call_api",
50 Description: callAPIDescription,
51 }, s.handleCallAPI)
52}
53
54func (s *Server) handleCallAPI(ctx context.Context, _ *mcp.CallToolRequest, input CallInput) (*mcp.CallToolResult, any, error) {
55 // Validate input

Callers 1

registerToolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected