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

Method registerChangeTool

backend/api/mcp/tool_change.go:150–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148- If createRollout=true but policy gates aren't satisfied, returns success with rolloutCreated=false and a reason.`
149
150func (s *Server) registerChangeTool() {
151 mcp.AddTool(s.mcpServer, &mcp.Tool{
152 Name: "propose_database_change",
153 Description: proposeChangeDescription,
154 }, s.handleChange)
155}
156
157func (s *Server) handleChange(ctx context.Context, req *mcp.CallToolRequest, input ChangeInput) (*mcp.CallToolResult, any, error) {
158 // Step 1: Validate input.

Callers 1

registerToolsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected