# @smartmemory/compose-mcp

Slim MCP stdio launcher for [`@smartmemory/compose`](https://github.com/smartmemory/compose). Installing this package transitively pulls the full compose runtime; the `compose-mcp` binary spawns the embedded MCP server.

Compose is a structured AI dev pipeline that takes a goal to shipped code. Your agent writes the code, Compose makes it prove it: design decisions are gated before any code, every step has to clear its postconditions, and review runs on a different model than the one that wrote the work.

## Install

```bash
npm install -g @smartmemory/compose-mcp
```

This installs both `@smartmemory/compose-mcp` and its peer `@smartmemory/compose`.

## Run

```bash
npx -y @smartmemory/compose-mcp
```

The launcher resolves the embedded MCP server (`@smartmemory/compose/mcp`) and spawns it with stdio inheritance — suitable for direct Claude Code / MCP client wiring.

## Wire into Claude Code

Add an entry to `.claude/mcp.json`:

```json
{
  "mcpServers": {
    "compose": {
      "command": "npx",
      "args": ["-y", "@smartmemory/compose-mcp"]
    }
  }
}
```

Restart Claude Code; the typed compose tools (roadmap, changelog, artifact linking, journal, completion) become available.

## Project layout requirement

The MCP tools mutate canonical compose artifacts (`ROADMAP.md`, `CHANGELOG.md`, `docs/features/<code>/`, `docs/journal/`). Run `compose-mcp` from inside a compose-initialized project — see [the compose README](https://github.com/smartmemory/compose#readme) for `compose init`.

## Why a slim wrapper?

Discovery: published as `io.github.smartmemory/compose-mcp` on the [official MCP registry](https://registry.modelcontextprotocol.io). Installing the slim package keeps `npx` startup fast while the full runtime is fetched transitively.

## License

Business Source License 1.1, same as the compose root, licensed by Regression Analytics LLC. Free for non-production use, and for production use by organizations with USD 250,000 or less in annual revenue. Larger organizations need a commercial license: help@smartmemory.ai. Each version converts to Apache 2.0 four years after its release.
