API Reference¶
Complete technical reference for the Code Scalpel API, including MCP protocol details, response formats, and error handling.
Overview¶
Code Scalpel exposes its functionality through the Model Context Protocol (MCP). This section provides detailed documentation for integrating with Code Scalpel programmatically.
Sections¶
-
MCP Protocol
Understand the Model Context Protocol and how Code Scalpel implements it.
-
Tool Responses
Standard response format, envelope structure, and data schemas.
-
Error Codes
Complete error code reference with causes and solutions.
-
Oracle Middleware
Automatic error recovery and resilience for AI agents.
Quick Reference¶
MCP Server Connection¶
Response Envelope¶
All tools return a standard envelope:
{
"data": { ... }, // Tool-specific result data
"tier_applied": "string", // community | pro | enterprise
"duration_ms": 123, // Execution time in milliseconds
"error": null // Error details if failed
}