@pathmode/mcp-server 1.18.0 → 1.20.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/README.md CHANGED
@@ -168,6 +168,25 @@ Works with Claude Code (`.mcp.json` in the project root), Claude Desktop (`claud
168
168
 
169
169
  Get your API key from **Settings > API Keys** in the [Pathmode app](https://pathmode.io).
170
170
 
171
+ ### Adopt an existing repository intent
172
+
173
+ If your repository already contains a preflighted `intent.md`, start from the repo onboarding
174
+ door in Pathmode. After you choose a workspace and Product, the page gives you a short-lived
175
+ one-time command:
176
+
177
+ ```bash
178
+ npx @pathmode/mcp-server@latest adopt pm_adopt_...
179
+ ```
180
+
181
+ Run it from the repository root. The command uploads the existing spec, adds only Pathmode's
182
+ canonical identity fields to its frontmatter, and configures that repository to use the selected
183
+ workspace. The one-time code expires after 15 minutes and is never stored in the repository.
184
+
185
+ The safe repository binding lives in `.pathmode/config.json`. The API key lives separately at
186
+ `~/.pathmode/workspaces/<workspace-id>.json`, so connecting one repository does not repoint other
187
+ repositories on the same machine. Add `.pathmode/` to `.gitignore` if your team does not want to
188
+ commit the non-secret workspace binding.
189
+
171
190
  ### Local Mode (Offline)
172
191
 
173
192
  Local mode is the **default when no API key is configured**. It reads and writes [`intent.md`](https://intentspec.org/intent-md) in your
@@ -205,6 +224,7 @@ Pass `--local` only to force local mode when an API key *is* configured:
205
224
  | Method | Details |
206
225
  |--------|---------|
207
226
  | Environment variable | `PATHMODE_API_KEY=pm_live_...` |
227
+ | Repository binding | `.pathmode/config.json`, with its key stored outside the repo in `~/.pathmode/workspaces/<workspace-id>.json` |
208
228
  | Config file | `~/.pathmode/config.json` with `apiKey`, `apiUrl`, `workspaceId` |
209
229
  | Local mode | Automatic when no key is found. Reads `intent.md` and `.pathmode/intents/*.md`; `--local` forces it |
210
230
  | No config | Local mode. The Intent Compiler needs no configuration |
@@ -299,7 +319,10 @@ The **Intent Compiler** works entirely offline — specs are saved to your proje
299
319
 
300
320
  **Keyless local mode sends nothing.** With no API key configured, the server makes no network request at all — no usage signals and no telemetry of any kind.
301
321
 
302
- **Data storage:** The MCP server does not store data locally (except `intent.md` files it creates and in `--local` mode). Persistent data is stored in Pathmode's cloud infrastructure.
322
+ **Data storage:** The MCP server stores `intent.md` and, when a repository is adopted, a
323
+ non-secret binding in `.pathmode/config.json` plus its API key in
324
+ `~/.pathmode/workspaces/<workspace-id>.json`. The legacy `setup` command stores configuration in
325
+ `~/.pathmode/config.json`. Persistent workspace data is stored in Pathmode's cloud infrastructure.
303
326
 
304
327
  **Third-party sharing:** No data is shared with third parties. The server communicates exclusively with the Pathmode API.
305
328