jellycube 0.0.0-stage → 0.2.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 +21 -0
- package/README.md +119 -2
- package/dist/index.js +5766 -0
- package/manifest.json +42 -0
- package/package.json +29 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TAF Technology
|
|
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
CHANGED
|
@@ -1,3 +1,120 @@
|
|
|
1
|
-
#
|
|
1
|
+
# jellycube
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The local MCP server for [Jellycube](https://editor.jellycube.app). AI agents on your
|
|
4
|
+
computer (Claude Code, Cursor, Codex, OpenCode, Claude desktop) get the same
|
|
5
|
+
tools as Jellycube's cloud MCP: read and edit your sites, manage the CMS,
|
|
6
|
+
publish, and build new Astro sites in a local folder and upload them once.
|
|
7
|
+
You sign in once in the browser; the token stays in your computer's secure
|
|
8
|
+
store. Changes always go to Jellycube: there is no folder sync and no offline
|
|
9
|
+
queue.
|
|
10
|
+
|
|
11
|
+
Actions that change your live site or are hard to undo (publish, rollback,
|
|
12
|
+
domains, deletes) ask you first: your app shows a yes/no question, or you get
|
|
13
|
+
an approval link to Jellycube.
|
|
14
|
+
|
|
15
|
+
Needs Node.js 20 or newer.
|
|
16
|
+
|
|
17
|
+
## Use it
|
|
18
|
+
|
|
19
|
+
Add this MCP server to your agent. It runs `npx -y jellycube mcp`; the first
|
|
20
|
+
run opens the browser to sign in.
|
|
21
|
+
|
|
22
|
+
### Claude Code
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
claude mcp add jellycube -- npx -y jellycube mcp
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Cursor
|
|
29
|
+
|
|
30
|
+
In `~/.cursor/mcp.json`:
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"mcpServers": {
|
|
35
|
+
"jellycube": { "command": "npx", "args": ["-y", "jellycube", "mcp"] }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Codex
|
|
41
|
+
|
|
42
|
+
In `~/.codex/config.toml`:
|
|
43
|
+
|
|
44
|
+
```toml
|
|
45
|
+
[mcp_servers.jellycube]
|
|
46
|
+
command = "npx"
|
|
47
|
+
args = ["-y", "jellycube", "mcp"]
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### OpenCode
|
|
51
|
+
|
|
52
|
+
In your OpenCode config:
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mcp": {
|
|
57
|
+
"jellycube": { "type": "local", "command": ["npx", "-y", "jellycube", "mcp"] }
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Claude desktop (one-click extension)
|
|
63
|
+
|
|
64
|
+
Build the `.mcpb` from this folder (`manifest.json`, `dist`, `README.md`,
|
|
65
|
+
`LICENSE` and `package.json`) and drag it onto Claude desktop. Leave both
|
|
66
|
+
settings empty to use editor.jellycube.app.
|
|
67
|
+
|
|
68
|
+
### Remote instead of local
|
|
69
|
+
|
|
70
|
+
Apps that support remote MCP servers (Claude.ai, ChatGPT) can connect to
|
|
71
|
+
`https://editor.jellycube.app/mcp` directly, without this package.
|
|
72
|
+
|
|
73
|
+
## Commands
|
|
74
|
+
|
|
75
|
+
| Command | What it does |
|
|
76
|
+
| --- | --- |
|
|
77
|
+
| `jellycube mcp` | Runs the stdio MCP server. This is what agents start. |
|
|
78
|
+
| `jellycube login` | Signs in with the browser; falls back to a device code if port 53682 is busy. |
|
|
79
|
+
| `jellycube logout` | Removes the stored connection from this computer. |
|
|
80
|
+
| `jellycube whoami` | Prints the connected account and its limits. |
|
|
81
|
+
| `jellycube --version` | Prints the package version. |
|
|
82
|
+
| `jellycube --help` | Prints usage. |
|
|
83
|
+
|
|
84
|
+
The first `mcp` call signs in automatically when no token is stored. Prompts,
|
|
85
|
+
warnings and status go to stderr; stdout carries JSON-RPC only.
|
|
86
|
+
|
|
87
|
+
## Environment
|
|
88
|
+
|
|
89
|
+
| Variable | Default | Meaning |
|
|
90
|
+
| --- | --- | --- |
|
|
91
|
+
| `JELLYCUBE_API_ORIGIN` | `https://editor.jellycube.app` | Public API origin. |
|
|
92
|
+
| `JELLYCUBE_CLI_CLIENT_ID` | the Jellycube CLI app | Public OAuth client id. Only for a staging setup. |
|
|
93
|
+
|
|
94
|
+
Tokens are stored in the OS keychain under service `jellycube`, with the token's
|
|
95
|
+
`sub` claim as the account. If no keychain is available, the CLI writes
|
|
96
|
+
`~/.jellycube/credentials.json` with owner-only permissions and warns on
|
|
97
|
+
stderr. Tokens are never printed and never put in a URL.
|
|
98
|
+
|
|
99
|
+
## Limits
|
|
100
|
+
|
|
101
|
+
- Every tool the connection can use is listed at `initialize`; refusals are
|
|
102
|
+
final.
|
|
103
|
+
- Tools whose v1 endpoint is not in the published OpenAPI document are not
|
|
104
|
+
listed locally.
|
|
105
|
+
- A folder read is limited to the named folder, 10 MB per file, 64 MB and
|
|
106
|
+
20,000 files in total; `node_modules`, `dist`, `.git` and `.env*` are skipped
|
|
107
|
+
and symlinks are not followed.
|
|
108
|
+
- One image upload is at most 8 MB; only PNG, JPEG and WebP are accepted.
|
|
109
|
+
|
|
110
|
+
## Development
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
npm run typecheck
|
|
114
|
+
npm run build
|
|
115
|
+
npm pack --dry-run
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
From the repository root, `npm run test:mcp-cli` runs the Node checks and
|
|
119
|
+
`npm run check:changed -- --since <commit>` picks them up for changed CLI files.
|
|
120
|
+
Publishing: `npm run build`, then `npm publish --access public` from this folder.
|