planmode 0.2.0 → 0.2.2

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/README.md CHANGED
@@ -30,6 +30,97 @@ planmode run rest-api-generator --resource users --framework express
30
30
  planmode list
31
31
  ```
32
32
 
33
+ ## Use with Claude Code (MCP)
34
+
35
+ Planmode includes an MCP server that lets Claude Code search, install, preview, and manage packages directly from your conversations — no need to leave the chat.
36
+
37
+ ### Prerequisites
38
+
39
+ - [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) installed and working (`claude` command available)
40
+ - Planmode installed globally: `npm install -g planmode`
41
+
42
+ ### Setup
43
+
44
+ ```bash
45
+ # Automatic — registers the MCP server with Claude Code
46
+ planmode mcp setup
47
+ ```
48
+
49
+ This runs `claude mcp add --transport stdio planmode -- planmode-mcp` under the hood. You only need to do this once.
50
+
51
+ ### Manual setup
52
+
53
+ If you prefer to register manually, or if the automatic setup doesn't work:
54
+
55
+ ```bash
56
+ claude mcp add --transport stdio planmode -- planmode-mcp
57
+ ```
58
+
59
+ Or add it directly to your Claude Code MCP config (`~/.claude/settings.json`):
60
+
61
+ ```json
62
+ {
63
+ "mcpServers": {
64
+ "planmode": {
65
+ "command": "planmode-mcp",
66
+ "transport": "stdio"
67
+ }
68
+ }
69
+ }
70
+ ```
71
+
72
+ ### Verify it works
73
+
74
+ After setup, start a Claude Code session and ask:
75
+
76
+ > "Search planmode for a Next.js starter plan"
77
+
78
+ Claude should call the `planmode_search` tool and return results from the registry.
79
+
80
+ ### Available MCP tools
81
+
82
+ Once connected, Claude has access to these tools:
83
+
84
+ | Tool | What it does |
85
+ |------|-------------|
86
+ | `planmode_search` | Search the registry for packages |
87
+ | `planmode_info` | Get detailed package metadata |
88
+ | `planmode_preview` | Read a package's content before installing |
89
+ | `planmode_install` | Install a package into the current project |
90
+ | `planmode_uninstall` | Remove an installed package |
91
+ | `planmode_list` | List all installed packages |
92
+ | `planmode_read` | Read the content of an installed package |
93
+ | `planmode_update` | Update installed packages |
94
+ | `planmode_init` | Scaffold a new package |
95
+ | `planmode_publish` | Publish a package to the registry |
96
+ | `planmode_validate` | Validate a planmode.yaml manifest |
97
+ | `planmode_run` | Render a templated prompt with variables |
98
+ | `planmode_doctor` | Run a health check on installed packages |
99
+ | `planmode_test` | Validate a package before publishing |
100
+ | `planmode_record_start` | Start recording git commits for plan generation |
101
+ | `planmode_record_stop` | Stop recording and generate a plan |
102
+ | `planmode_snapshot` | Generate a plan from existing project setup |
103
+
104
+ Installed packages are also exposed as MCP resources that Claude can browse automatically.
105
+
106
+ ### Example prompts
107
+
108
+ Ask Claude things like:
109
+
110
+ - "Search planmode for a Next.js starter plan"
111
+ - "Show me what the typescript-strict rule contains"
112
+ - "Install the docker-compose-stack plan"
113
+ - "Preview the rest-api-generator prompt before installing"
114
+ - "Run a health check on my planmode packages"
115
+ - "Create a new planmode rule called my-coding-standards"
116
+ - "Record my work and generate a plan from my commits"
117
+
118
+ ### Remove
119
+
120
+ ```bash
121
+ planmode mcp remove
122
+ ```
123
+
33
124
  ## Package types
34
125
 
35
126
  | Type | What it is | Where it lives | Lifecycle |
@@ -52,6 +143,33 @@ planmode list
52
143
  | `planmode init` | Create a new package |
53
144
  | `planmode publish` | Publish to the registry |
54
145
  | `planmode login` | Configure GitHub auth |
146
+ | `planmode mcp setup\|remove` | Register/remove MCP server with Claude Code |
147
+ | `planmode doctor` | Check project health and file integrity |
148
+ | `planmode test` | Validate a package before publishing |
149
+ | `planmode record start\|stop` | Generate a plan from git commits |
150
+ | `planmode snapshot` | Generate a plan from existing project setup |
151
+
152
+ ## Create plans from your work
153
+
154
+ ### Record mode
155
+
156
+ Start a recording, work normally, then generate a plan from your commits:
157
+
158
+ ```bash
159
+ planmode record start
160
+ # ... do your work, make commits ...
161
+ planmode record stop --name my-setup-plan --author myusername
162
+ ```
163
+
164
+ ### Snapshot mode
165
+
166
+ Analyze an existing project and generate a plan that recreates the setup:
167
+
168
+ ```bash
169
+ planmode snapshot --name nextjs-prisma-setup --author myusername
170
+ ```
171
+
172
+ This reads `package.json`, detects config files (TypeScript, ESLint, Tailwind, Prisma, Docker, etc.), captures the directory structure, and creates a step-by-step plan.
55
173
 
56
174
  ## How it works
57
175
 
package/dist/index.js CHANGED
@@ -2289,7 +2289,7 @@ var snapshotCommand = new Command15("snapshot").description("Analyze the current
2289
2289
 
2290
2290
  // src/index.ts
2291
2291
  var program = new Command16();
2292
- program.name("planmode").description("The open source package manager for AI plans, rules, and prompts.").version("0.2.0");
2292
+ program.name("planmode").description("The open source package manager for AI plans, rules, and prompts.").version("0.2.2");
2293
2293
  program.addCommand(installCommand);
2294
2294
  program.addCommand(uninstallCommand);
2295
2295
  program.addCommand(searchCommand);
package/dist/mcp.js CHANGED
@@ -1740,7 +1740,7 @@ function errorResult(prefix, err) {
1740
1740
  }
1741
1741
  var server = new McpServer({
1742
1742
  name: "planmode",
1743
- version: "0.2.0"
1743
+ version: "0.2.2"
1744
1744
  });
1745
1745
  server.registerTool(
1746
1746
  "planmode_search",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "planmode",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The open source package manager for AI plans, rules, and prompts.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -20,7 +20,7 @@ const program = new Command();
20
20
  program
21
21
  .name("planmode")
22
22
  .description("The open source package manager for AI plans, rules, and prompts.")
23
- .version("0.2.0");
23
+ .version("0.2.2");
24
24
 
25
25
  program.addCommand(installCommand);
26
26
  program.addCommand(uninstallCommand);
package/src/mcp.ts CHANGED
@@ -83,7 +83,7 @@ function errorResult(prefix: string, err: Error): ReturnType<typeof textResult>
83
83
 
84
84
  const server = new McpServer({
85
85
  name: "planmode",
86
- version: "0.2.0",
86
+ version: "0.2.2",
87
87
  });
88
88
 
89
89
  // ── Tools ──