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

Method registerSchemaTool

backend/api/mcp/tool_schema.go:226–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224- Requires bb.databases.getSchema permission.`
225
226func (s *Server) registerSchemaTool() {
227 mcp.AddTool(s.mcpServer, &mcp.Tool{
228 Name: "get_schema",
229 Description: getSchemaDescription,
230 }, s.handleGetSchema)
231}
232
233func (s *Server) handleGetSchema(ctx context.Context, req *mcp.CallToolRequest, input SchemaInput) (*mcp.CallToolResult, any, error) {
234 if input.Database == "" {

Callers 1

registerToolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected