This page is a design/reference spec. Release truth lives in the runtime capability manifest and shipped product docs.
Adapter Specifications
Owner: PhantomPM Integrations Team
Last Updated: 2026-02-13
Status: Beta
Scope
Define client adapters for:
- Claude Code
- Codex-compatible MCP client path
- Cursor
- VS Code
Current Implementation State
Baseline adapter implementation is shipped for scan/connect/doctor workflows:
- target detection heuristics per integration
- config registration with detection metadata
- doctor status output with pass/fail reason
Deep client config patching and rollback are still planned.
Target State
Each adapter is a thin compatibility layer over MCP core.
Responsibilities:
- discover local PHANTOM MCP endpoint
- patch/update client config safely
- validate connectivity
- expose a health report
CLI UX Requirements
phantom integrate scanphantom integrate <target>phantom integrate doctor
Adapter Contract
Each adapter must define:
target_iddetect()configure()validate()rollback()
Failure Modes
- target not installed
- config file not writable
- incompatible target version
- MCP handshake failure
Recovery Requirements
- no partial config corruption
- reversible changes
- clear instructions for manual fix path
Acceptance Criteria
- adapter setup path <= 3 minutes in normal environment
- integration doctor provides pass/fail + reason per target
- each adapter has setup and troubleshooting docs