Repository navigation
v0.6.3 — MCP server
Added
MCP server — mex now ships an MCP server (packages/mex-mcp) that exposes it to AI agents as native tool calls instead of shelling out to the CLI. It imports the mex-agent public API directly and returns structured JSON, so agents in Claude Code, Cursor, and any MCP client call mex as first-class tools.
| Tool | Equivalent CLI | Returns |
|---|---|---|
mex_check |
mex check --json |
Drift report — score, issues, files checked |
mex_log |
mex log / mex timeline |
Appends an event (decision/note/risk/todo) or reads recent ones |
mex_timeline |
mex timeline |
Events filtered by kind/date, newest first |
mex_heartbeat |
mex heartbeat |
Health check — stale files, memory cleanup due |
mex_read_file |
— | A scaffold file contents, sandboxed to .mex/ |
Each tool takes an optional projectRoot (defaults to cwd), and mex_read_file is path-guarded to the .mex/ scaffold.
Changed
- Refreshed the package lockfile before publish to resolve production dependency audit findings.
- Normalized npm package metadata (
binpath and repository URL) so the published package matches npm expectations without registry-side autocorrection.
Try it
Build the server, then point your MCP client (.mcp.json) at it:
{
"mcpServers": {
"mex": {
"command": "node",
"args": ["packages/mex-mcp/dist/index.js"]
}
}
}npm run build --workspace mex-mcpSee the MCP Server section of the README for the full walkthrough.
Notes
packages/mex-mcpis not yet published to npm — build it from the repo. Themex-agentnpm package is unchanged at runtime this release; it gains the MCP package in-repo plus README/docs.mex_syncis intentionally deferred until its structured return shape is settled.- Production audit is clean before publish (
npm audit --omit=dev). A low-severity dev-onlyesbuildadvisory remains in build/test tooling.
Implemented in #84, closes #81.
Full changelog: v0.6.2...v0.6.3