@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 +24 -1
- package/dist/index.js +707 -199
- package/dist/packages/intentspec-format/serializeIntentMd.d.ts +164 -0
- package/dist/packages/intentspec-format/serializeIntentMd.d.ts.map +1 -0
- package/dist/packages/mcp-server/src/adopt.d.ts +12 -0
- package/dist/packages/mcp-server/src/adopt.d.ts.map +1 -0
- package/dist/packages/mcp-server/src/api-client.d.ts +7 -0
- package/dist/packages/mcp-server/src/api-client.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/cli-info.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/intent-compiler.d.ts +19 -1
- package/dist/packages/mcp-server/src/intent-compiler.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/local-reader.d.ts +8 -0
- package/dist/packages/mcp-server/src/local-reader.d.ts.map +1 -1
- package/dist/packages/mcp-server/src/project-config.d.ts +12 -0
- package/dist/packages/mcp-server/src/project-config.d.ts.map +1 -0
- package/dist/packages/mcp-server/src/push-spec.d.ts +19 -12
- package/dist/packages/mcp-server/src/push-spec.d.ts.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
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
|
|
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
|
|