formatChangeError formats a changeError into an MCP error result.
(err *changeError)
| 574 | |
| 575 | // formatChangeError formats a changeError into an MCP error result. |
| 576 | func formatChangeError(err *changeError) *mcp.CallToolResult { |
| 577 | jsonBytes, _ := json.MarshalIndent(err, "", " ") |
| 578 | return &mcp.CallToolResult{ |
| 579 | Content: []mcp.Content{&mcp.TextContent{Text: string(jsonBytes)}}, |
| 580 | IsError: true, |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | // formatChangeStepError formats a step failure into an MCP error result. |
| 585 | // It detects permission errors and wraps them appropriately. |
no outgoing calls
no test coverage detected