@smartmemory/compose-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 regression-io
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @smartmemory/compose-mcp
2
+
3
+ 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.
4
+
5
+ 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.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @smartmemory/compose-mcp
11
+ ```
12
+
13
+ This installs both `@smartmemory/compose-mcp` and its peer `@smartmemory/compose`.
14
+
15
+ ## Run
16
+
17
+ ```bash
18
+ npx -y @smartmemory/compose-mcp
19
+ ```
20
+
21
+ The launcher resolves the embedded MCP server (`@smartmemory/compose/mcp`) and spawns it with stdio inheritance — suitable for direct Claude Code / MCP client wiring.
22
+
23
+ ## Wire into Claude Code
24
+
25
+ Add an entry to `.claude/mcp.json`:
26
+
27
+ ```json
28
+ {
29
+ "mcpServers": {
30
+ "compose": {
31
+ "command": "npx",
32
+ "args": ["-y", "@smartmemory/compose-mcp"]
33
+ }
34
+ }
35
+ }
36
+ ```
37
+
38
+ Restart Claude Code; the typed compose tools (roadmap, changelog, artifact linking, journal, completion) become available.
39
+
40
+ ## Project layout requirement
41
+
42
+ 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`.
43
+
44
+ ## Why a slim wrapper?
45
+
46
+ 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.
47
+
48
+ ## License
49
+
50
+ MIT — same as the compose root.
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * @smartmemory/compose-mcp — stdio launcher
4
+ *
5
+ * Resolves and spawns the MCP stdio server embedded in @smartmemory/compose.
6
+ * Discovery is via the slim package; install pulls the full app transitively.
7
+ * Single source of truth: every consumer runs server/compose-mcp.js.
8
+ */
9
+ import { spawn } from 'node:child_process';
10
+ import { createRequire } from 'node:module';
11
+
12
+ const require = createRequire(import.meta.url);
13
+
14
+ let serverPath;
15
+ try {
16
+ serverPath = require.resolve('@smartmemory/compose/mcp');
17
+ } catch (err) {
18
+ console.error(
19
+ '[compose-mcp] Could not locate @smartmemory/compose. Install it: npm install @smartmemory/compose'
20
+ );
21
+ console.error(`[compose-mcp] resolve error: ${err.message}`);
22
+ process.exit(127);
23
+ }
24
+
25
+ const child = spawn(process.execPath, [serverPath, ...process.argv.slice(2)], {
26
+ stdio: 'inherit',
27
+ env: process.env,
28
+ });
29
+ child.on('exit', (code, signal) => process.exit(code ?? (signal ? 1 : 0)));
30
+ child.on('error', (err) => {
31
+ console.error(`[compose-mcp] failed to spawn server: ${err.message}`);
32
+ process.exit(1);
33
+ });
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@smartmemory/compose-mcp",
3
+ "version": "0.1.0",
4
+ "description": "MCP stdio server for @smartmemory/compose: typed feature management tools (roadmap, changelog, artifact linking, and more). Requires a compose-initialized project.",
5
+ "type": "module",
6
+ "bin": {
7
+ "compose-mcp": "./bin/compose-mcp.js"
8
+ },
9
+ "dependencies": {
10
+ "@smartmemory/compose": "^0.3.8"
11
+ },
12
+ "files": ["bin/**", "README.md", "LICENSE"],
13
+ "publishConfig": { "access": "public" },
14
+ "license": "MIT",
15
+ "engines": { "node": ">=18.0.0" },
16
+ "keywords": ["mcp", "modelcontextprotocol", "compose", "smartmemory", "claude", "claude-code", "feature-management"],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/smartmemory/compose.git",
20
+ "directory": "compose-mcp"
21
+ },
22
+ "homepage": "https://github.com/smartmemory/compose/tree/main/compose-mcp",
23
+ "bugs": "https://github.com/smartmemory/compose/issues"
24
+ }