Documentation
Architecture, IDE MCP workflow, and error code reference for API Studio v1.2.
IDE Code Assist Workflow (MCP)
Instead of sending entire repositories in every prompt, connect your IDE via bridge/mcp.mjs and follow the 4-step context loop:
Recommended MCP sequence
1. api_studio_ide_outline -> compact tree map
2. api_studio_ide_codegen -> outline + targeted line slices + optional git diff
3. api_studio_status/result -> verify X-Content-SHA256 & write artifact
4. api_studio_ide_resume -> iterate cheaply on existing sessionIdVerify Local Bridge Health
Repository checks
npm run check:syntax
npm test
npm run release:checkError Catalog Summary
| Code | Subsystem | Meaning |
|---|---|---|
| AS-001..AS-007 | Bridge / Tool Ledger | Tool dispatch, duplicate call, or missing tool result mismatch. |
| AS-013..AS-016 | Diagnostics & Memory | Selector drift, corrupted checkpoint recovery, or stale file hash. |
| AS-019..AS-023 | Workspace Safety | Path traversal blocked, revision conflict, or unknown write replay guard. |
| AS-429 / APS-RATE-LIMIT | Rate Control | TPM or API rate threshold reached; inspect Retry-After header. |
| APS-LIC-DEVICE_LIMIT | Licensing | Active paired devices reached plan maximum; revoke an old device in Dashboard. |