@se-studio/contentful-cms 1.0.49 → 1.0.51
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
|
@@ -23,7 +23,15 @@ pnpm build
|
|
|
23
23
|
|
|
24
24
|
### Claude Desktop
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
The quickest way to set up Claude Desktop is the interactive setup wizard:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx @se-studio/contentful-cms@latest setup
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
It discovers your Contentful spaces and environments automatically from your management token, writes `~/.contentful-cms.json`, and updates the Claude Desktop config. See [INSTALL.md](./INSTALL.md) for a full walkthrough.
|
|
33
|
+
|
|
34
|
+
**Manual config** — if you'd prefer to configure by hand, add this to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
27
35
|
|
|
28
36
|
```json
|
|
29
37
|
{
|
|
@@ -31,17 +39,13 @@ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS)
|
|
|
31
39
|
"cms-edit": {
|
|
32
40
|
"command": "npx",
|
|
33
41
|
"args": ["-y", "@se-studio/contentful-cms"],
|
|
34
|
-
"cwd": "/path/to/your/project"
|
|
35
|
-
"env": {
|
|
36
|
-
"CMS_EDIT_TOKEN_OM1": "your-management-token"
|
|
37
|
-
}
|
|
42
|
+
"cwd": "/path/to/your/project"
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
```
|
|
42
47
|
|
|
43
48
|
- `cwd` must point to the directory containing your `.contentful-cms.json` (or omit `cwd` and place the file in your home directory — `~/.contentful-cms.json` on macOS/Linux, `C:\Users\<you>\.contentful-cms.json` on Windows).
|
|
44
|
-
- Add one `CMS_EDIT_TOKEN_<SPACE>` env var per space defined in your config. Alternatively, set `CMS_EDIT_CONFIG` to the absolute path of your config file if you need to point at a specific location.
|
|
45
49
|
- `npx -y @se-studio/contentful-cms` always pulls the latest published version — no global install needed.
|
|
46
50
|
|
|
47
51
|
If you have the package installed globally, you can use `"command": "cms-edit-mcp"` (no `args`) instead.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentful-cms.d.ts","sourceRoot":"","sources":["../../src/bin/contentful-cms.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Default bin for `npx @se-studio/contentful-cms`.
|
|
3
|
+
// Routes `setup` to the interactive wizard; everything else starts the MCP server.
|
|
4
|
+
if (process.argv[2] === 'setup') {
|
|
5
|
+
const { runSetupWizard } = await import('../setup/wizard.js');
|
|
6
|
+
await runSetupWizard().catch((err) => {
|
|
7
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
8
|
+
process.exit(1);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
await import('./cms-edit-mcp.js');
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=contentful-cms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentful-cms.js","sourceRoot":"","sources":["../../src/bin/contentful-cms.ts"],"names":[],"mappings":";AACA,mDAAmD;AACnD,mFAAmF;AAEnF,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC;IAChC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAC9D,MAAM,cAAc,EAAE,CAAC,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;QAC5C,OAAO,CAAC,KAAK,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;QAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/contentful-cms",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"description": "CLI tool for AI agents to read and edit Contentful draft content without publish permissions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"cms-edit": "./dist/bin/cms-edit.js",
|
|
22
22
|
"cms-edit-mcp": "./dist/bin/cms-edit-mcp.js",
|
|
23
23
|
"cms-edit-setup": "./dist/bin/cms-edit-setup.js",
|
|
24
|
-
"contentful-cms": "./dist/bin/cms
|
|
24
|
+
"contentful-cms": "./dist/bin/contentful-cms.js"
|
|
25
25
|
},
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|