DEVELOPER DOCS

MCP & Plugin

Reference

On this page

Files the tooling reads and writes

PathWritten byCommit it?
.opexia/agentmap.lockopexia audit, /opexia:secure✅ Yes — its value is the reviewable diff
.opexia/shipcheck.ymlYou✅ Yes
.opexia/devlog/ + graph.jsonl/opexia:log✅ Yes
.opexia-wal/spans.jsonlThe SDK❌ No — add to .gitignore
.mcp.jsonYou or the plugin✅ Yes

Environment variables

VariableUsed byDefaultDescription
PXCORE_MODELpxcore-mcp, pxcoreclaude-fable-5Active model, selecting the calibration profile
CLAUDE_PLUGIN_ROOTPlugin configs(set by Claude Code)Plugin install root
OPEXIA_API_KEY/opexia:instrument, opexia shipcheck—Workspace API key

Console scripts

ScriptPurpose
opexiaSubcommand dispatcher — shipcheck, audit, live
pxcore-mcpThe MCP server — stdio or HTTP
pxcore-proxyIn-path compression proxy for Claude Code

All three install with pip install opexia-trace.


Troubleshooting

SymptomCauseFix
MCP server not listed in Claude Code.mcp.json not picked upRestart Claude Code; confirm pxcore-mcp is on PATH
pxcore-mcp: command not foundPackage not installed, or wrong venvpip install opexia-trace; check the active environment
Compression never activatesModel uncalibrated — the default is off/opexia:compress status, then /opexia:compress calibrate
Content stays text unexpectedlyClassified exact, or the net-loss guard firedExpected — exact never images, and prose is often costlier as an image
Token count went upImaging prose or small blocksCurrent versions guard against this — upgrade opexia-trace
/opexia:log does nothinginit not run in this repo/opexia:log init
/opexia:secure finds nothingNo system instructions detectedPass an explicit path or glob
Plugin commands missing from /helpPlugin not installed or not enabled/plugin install opexia, then restart
HTTP transport refuses connectionsServer not running, or wrong portStart pxcore-mcp --http --port 8765 and match the client URL

See also

  • REST API Reference — all 100 endpoints (93 Read API + 9 Ingest, 2 shared).
  • SDK Reference — opexia-trace for Python, plus the TypeScript / OpenTelemetry route.