jellycube 0.1.0 → 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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jellycube
2
2
 
3
- The local MCP server for [Jellycube](https://jellycube.cc). AI agents on your
3
+ The local MCP server for [Jellycube](https://editor.jellycube.app). AI agents on your
4
4
  computer (Claude Code, Cursor, Codex, OpenCode, Claude desktop) get the same
5
5
  tools as Jellycube's cloud MCP: read and edit your sites, manage the CMS,
6
6
  publish, and build new Astro sites in a local folder and upload them once.
@@ -63,12 +63,12 @@ In your OpenCode config:
63
63
 
64
64
  Build the `.mcpb` from this folder (`manifest.json`, `dist`, `README.md`,
65
65
  `LICENSE` and `package.json`) and drag it onto Claude desktop. Leave both
66
- settings empty to use jellycube.cc.
66
+ settings empty to use editor.jellycube.app.
67
67
 
68
68
  ### Remote instead of local
69
69
 
70
70
  Apps that support remote MCP servers (Claude.ai, ChatGPT) can connect to
71
- `https://jellycube.cc/mcp` directly, without this package.
71
+ `https://editor.jellycube.app/mcp` directly, without this package.
72
72
 
73
73
  ## Commands
74
74
 
@@ -88,7 +88,7 @@ warnings and status go to stderr; stdout carries JSON-RPC only.
88
88
 
89
89
  | Variable | Default | Meaning |
90
90
  | --- | --- | --- |
91
- | `JELLYCUBE_API_ORIGIN` | `https://jellycube.cc` | Public API origin. |
91
+ | `JELLYCUBE_API_ORIGIN` | `https://editor.jellycube.app` | Public API origin. |
92
92
  | `JELLYCUBE_CLI_CLIENT_ID` | the Jellycube CLI app | Public OAuth client id. Only for a staging setup. |
93
93
 
94
94
  Tokens are stored in the OS keychain under service `jellycube`, with the token's
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/config.ts
4
- var CLI_VERSION = "0.1.0";
5
- var DEFAULT_API_ORIGIN = "https://jellycube.cc";
4
+ var CLI_VERSION = "0.2.0";
5
+ var DEFAULT_API_ORIGIN = "https://editor.jellycube.app";
6
6
  var CLI_CLIENT_ID = "J7OznJsRYDjJH3Yk";
7
7
  var LOOPBACK_PORT = 53682;
8
8
  var REDIRECT_URI = `http://127.0.0.1:${LOOPBACK_PORT}/callback`;
@@ -1636,7 +1636,7 @@ var siteDeleteTool = {
1636
1636
  description: toolDescription(
1637
1637
  "Deletes a finished site and all of its files.",
1638
1638
  "only when the person explicitly asks for the whole site to be removed",
1639
- "The owner only. It cannot be undone and is never auto-approved: the person must type the site name on jellycube.cc, even when the chat app can ask other questions.",
1639
+ "The owner only. It cannot be undone and is never auto-approved: the person must type the site name in the Jellycube app, even when the chat app can ask other questions.",
1640
1640
  '{"siteId":"run_0123456789abcdef"}'
1641
1641
  ),
1642
1642
  inputSchema: obj({ siteId: str("The site run id, from sites.list.") }, ["siteId"]),
@@ -2825,6 +2825,70 @@ function toolsFor(role, scopes, transport, builtPhase, availableEndpoints) {
2825
2825
  });
2826
2826
  }
2827
2827
 
2828
+ // ../mcp-tools/src/annotations.ts
2829
+ var READ_ONLY_TOOLS = /* @__PURE__ */ new Set([
2830
+ "guide.read",
2831
+ "account.me",
2832
+ "workspaces.list",
2833
+ "sites.list",
2834
+ "site.describe",
2835
+ "site.import.status",
2836
+ "page.list",
2837
+ "page.read",
2838
+ "page.status",
2839
+ "preview.open",
2840
+ "share.link.read",
2841
+ "editor.selection",
2842
+ "project.check",
2843
+ "project.files.read",
2844
+ "project.files.list",
2845
+ "project.cloud.check",
2846
+ "approval.status",
2847
+ "templates.list",
2848
+ "collections.list",
2849
+ "entries.list",
2850
+ "media.list",
2851
+ "settings.read",
2852
+ "settings.site.read",
2853
+ "releases.list",
2854
+ "site.publish.status",
2855
+ "history.pages",
2856
+ "history.list",
2857
+ "domain.status",
2858
+ "workspace.domain.status"
2859
+ ]);
2860
+ var DESTRUCTIVE_TOOLS = /* @__PURE__ */ new Set([
2861
+ "site.delete",
2862
+ "page.delete",
2863
+ "entry.delete",
2864
+ "collection.delete",
2865
+ "template.delete",
2866
+ "media.delete",
2867
+ "project.delete",
2868
+ "project.files.delete",
2869
+ "section.remove",
2870
+ "site.publish",
2871
+ "entry.publish",
2872
+ "release.rollback",
2873
+ "history.restore",
2874
+ "domain.add",
2875
+ "domain.remove",
2876
+ "workspace.domain.set",
2877
+ "workspace.domain.remove",
2878
+ "share.link.stop",
2879
+ "settings.image.remove"
2880
+ ]);
2881
+ var OPEN_WORLD_TOOLS = /* @__PURE__ */ new Set(["media.from-url", "share.link.create"]);
2882
+ function toolAnnotations(tool) {
2883
+ const readOnly = READ_ONLY_TOOLS.has(tool.name);
2884
+ return {
2885
+ title: tool.title,
2886
+ readOnlyHint: readOnly,
2887
+ destructiveHint: !readOnly && DESTRUCTIVE_TOOLS.has(tool.name),
2888
+ openWorldHint: OPEN_WORLD_TOOLS.has(tool.name)
2889
+ };
2890
+ }
2891
+
2828
2892
  // ../mcp-tools/src/instructions.ts
2829
2893
  function buildInstructions(mayDo) {
2830
2894
  return [
@@ -3239,7 +3303,7 @@ var PROBLEM_TITLES = {
3239
3303
  unavailable: "Unavailable"
3240
3304
  };
3241
3305
  function problemTypeUri(code) {
3242
- return `https://jellycube.cc/docs/api/errors/${code}`;
3306
+ return `https://editor.jellycube.app/docs/api/errors/${code}`;
3243
3307
  }
3244
3308
 
3245
3309
  // ../../worker/src/api/v1/validate.ts
@@ -5510,7 +5574,8 @@ function listTools(context) {
5510
5574
  name: tool.name,
5511
5575
  title: tool.title,
5512
5576
  description: tool.description,
5513
- inputSchema: tool.inputSchema
5577
+ inputSchema: tool.inputSchema,
5578
+ annotations: toolAnnotations(tool)
5514
5579
  }));
5515
5580
  }
5516
5581
  function listPrompts() {
@@ -5658,7 +5723,7 @@ async function main(argv = process.argv.slice(2), store) {
5658
5723
  }
5659
5724
  if (command === "logout") {
5660
5725
  await (store ?? await createStore()).clear();
5661
- note("Signed out of this computer. Revoke this connection on jellycube.cc for a full sign-out.");
5726
+ note("Signed out of this computer. Revoke this connection in Jellycube (Connected apps) for a full sign-out.");
5662
5727
  return 0;
5663
5728
  }
5664
5729
  if (command === "whoami") {
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.2",
3
3
  "name": "jellycube",
4
4
  "display_name": "Jellycube",
5
- "version": "0.1.0",
5
+ "version": "0.2.0",
6
6
  "description": "Edit Jellycube sites from Claude: sign in once, then use the same tools as the cloud MCP.",
7
7
  "author": {
8
8
  "name": "TAF Technology"
@@ -25,7 +25,7 @@
25
25
  "type": "string",
26
26
  "title": "Jellycube API origin",
27
27
  "description": "Where the Jellycube Public API lives.",
28
- "default": "https://jellycube.cc",
28
+ "default": "https://editor.jellycube.app",
29
29
  "required": false
30
30
  },
31
31
  "jellycube_cli_client_id": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jellycube",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Local MCP server for Jellycube: sign in once and use the same tools as the cloud.",
5
5
  "type": "module",
6
6
  "bin": {