API Studio

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 sessionId

Verify Local Bridge Health

Repository checks
npm run check:syntax
npm test
npm run release:check

Error Catalog Summary

CodeSubsystemMeaning
AS-001..AS-007Bridge / Tool LedgerTool dispatch, duplicate call, or missing tool result mismatch.
AS-013..AS-016Diagnostics & MemorySelector drift, corrupted checkpoint recovery, or stale file hash.
AS-019..AS-023Workspace SafetyPath traversal blocked, revision conflict, or unknown write replay guard.
AS-429 / APS-RATE-LIMITRate ControlTPM or API rate threshold reached; inspect Retry-After header.
APS-LIC-DEVICE_LIMITLicensingActive paired devices reached plan maximum; revoke an old device in Dashboard.