Skip to content

v0.6.3 — MCP server

Choose a tag to compare

@theDakshJaitly theDakshJaitly released this 08 Jul 20:47
· 2085 commits to main since this release

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 (bin path 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-mcp

See the MCP Server section of the README for the full walkthrough.

Notes

  • packages/mex-mcp is not yet published to npm — build it from the repo. The mex-agent npm package is unchanged at runtime this release; it gains the MCP package in-repo plus README/docs.
  • mex_sync is intentionally deferred until its structured return shape is settled.
  • Production audit is clean before publish (npm audit --omit=dev). A low-severity dev-only esbuild advisory remains in build/test tooling.

Implemented in #84, closes #81.

Full changelog: v0.6.2...v0.6.3