@syntica/mcp 2.1.1 → 2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@syntica/mcp",
3
- "version": "2.1.1",
4
- "description": "Claude Code MCP server and skills for deploying applications on Syntica",
3
+ "version": "2.2.0",
4
+ "description": "MCP server and skills for deploying applications on Syntica from your coding agent (Claude Code, Codex, Cursor, Windsurf, Gemini)",
5
5
  "mcpName": "io.syntica/mcp",
6
6
  "bin": {
7
7
  "syntica-mcp": "./dist/index.js"
@@ -12,6 +12,9 @@
12
12
  "mcp-server",
13
13
  "model-context-protocol",
14
14
  "claude-code",
15
+ "codex",
16
+ "cursor",
17
+ "windsurf",
15
18
  "deployment",
16
19
  "docker-compose",
17
20
  "paas",
@@ -8,7 +8,7 @@
8
8
  {
9
9
  "name": "syntica",
10
10
  "description": "Deploy, run and debug your applications on Syntica from Claude Code — real infrastructure, a live URL, no DevOps required.",
11
- "version": "2.1.0",
11
+ "version": "2.2.0",
12
12
  "source": "./"
13
13
  }
14
14
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "syntica",
3
- "description": "Deploy, run and debug your applications on Syntica from Claude Code — real infrastructure, a live URL, no DevOps required.",
4
- "version": "2.1.0",
3
+ "description": "Deploy, run and debug your applications on Syntica from your coding agent — real infrastructure, a live URL, no DevOps required.",
4
+ "version": "2.2.0",
5
5
  "mcpServers": {
6
6
  "syntica": {
7
7
  "command": "npx",
package/skills/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Syntica for Claude Code
1
+ # Syntica for your coding agent
2
2
 
3
3
  Skills and MCP tools for deploying and running applications on **Syntica** — a platform that takes the application you built with a coding agent and runs it on real infrastructure, with a URL, a certificate and its own isolated instance.
4
4
 
@@ -13,15 +13,54 @@ npx @syntica/mcp setup
13
13
  > Publishing under the `@syntica` scope is tracked in #765. Until it lands, install
14
14
  > `@vibetocloud/mcp` instead — it carries the previous `/vibetocloud-*` command names.
15
15
 
16
- Restart Claude Code afterwards. This registers the MCP server and the skills together, so the `/syntica-*` commands and the `syntica` tools are available in every project.
16
+ Restart your agent afterwards and you're connected.
17
17
 
18
- To remove everything:
18
+ ### Best with Claude Code
19
+
20
+ The same command works with Codex, Cursor, Windsurf and Gemini, but **Claude Code
21
+ is the one to pick if you have the choice**. It is the only agent with a real
22
+ skill runtime, so the skills install as actual commands — `/syntica-onboard`,
23
+ `/syntica-deploy` — rather than as instructions the agent has to be told to read.
24
+ In practice that means it knows the whole deploy flow without being reminded, and
25
+ it is the combination this integration is tested against first.
26
+
27
+ Everywhere else the tools are identical; only the way you reach the skills differs.
28
+
29
+ Pick explicitly if you would rather:
30
+
31
+ ```bash
32
+ npx @syntica/mcp setup --agent claude # or codex, cursor, windsurf, gemini
33
+ npx @syntica/mcp setup --all
34
+ ```
35
+
36
+ ### What each agent gets
37
+
38
+ | Agent | MCP server | Skills |
39
+ |---|---|---|
40
+ | **Claude Code** | the Syntica plugin, which carries both | `/syntica-*` slash commands |
41
+ | **Codex CLI** | `[mcp_servers.syntica]` in `~/.codex/config.toml` | prompts in `~/.codex/prompts/` pointing at the skill files |
42
+ | **Cursor** | a `syntica` entry in `~/.cursor/mcp.json` | a rules file naming each skill and where to read it |
43
+ | **Windsurf** | a `syntica` entry in `~/.codeium/windsurf/mcp_config.json` | a marked section in your global rules |
44
+ | **Gemini CLI** | a `syntica` entry in `~/.gemini/settings.json` | a marked section in `~/.gemini/GEMINI.md` |
45
+
46
+ Windsurf and Gemini keep their instructions in a document you also write in, so
47
+ we add one delimited section there and update that section in place — your own
48
+ text is never touched, and a second run does not leave a second copy.
49
+
50
+ Your existing configuration is merged, never replaced: anything we cannot parse
51
+ is left alone with a message rather than overwritten, a `.bak` is written before
52
+ the first change, and running setup twice changes nothing the second time.
53
+
54
+ To remove everything we wrote:
19
55
 
20
56
  ```bash
21
- claude plugin uninstall syntica
57
+ npx @syntica/mcp teardown
22
58
  ```
23
59
 
24
- **You will need:** Node.js 18+, Claude Code, a Syntica account ([syntica.io](https://syntica.io) — currently in closed beta), and a `docker-compose.yml` in your project. If you don't have one, `/syntica-onboard` writes it for you.
60
+ **You will need:** Node.js 18+, one of the agents above, a Syntica account
61
+ ([syntica.io](https://syntica.io) — currently in closed beta), and a
62
+ `docker-compose.yml` in your project. If you don't have one, the onboarding skill
63
+ writes it for you.
25
64
 
26
65
  ## Skills
27
66
 
@@ -12,7 +12,7 @@ Announce at start: "I'm using syntica-debug to inspect your application."
12
12
  ## Step 1 — Load config
13
13
 
14
14
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
15
- `.syntica/config.json` (project state) using the Read tool. The token is deliberately kept
15
+ `.syntica/config.json` (project state) by reading it. The token is deliberately kept
16
16
  out of the project directory — see `/syntica-onboard` (#488).
17
17
 
18
18
  If `~/.syntica/credentials.json` is missing but `.syntica/config.json` still has a
@@ -12,7 +12,7 @@ Announce at start: "I'm using syntica-deploy to deploy your application."
12
12
  ## Step 1 — Load config
13
13
 
14
14
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
15
- `.syntica/config.json` (project state) using the Read tool. The token is deliberately kept
15
+ `.syntica/config.json` (project state) by reading it. The token is deliberately kept
16
16
  out of the project directory — see `/syntica-onboard` (#488).
17
17
 
18
18
  If `~/.syntica/credentials.json` is missing but `.syntica/config.json` still has a
@@ -14,7 +14,7 @@ Maintenance operations on syntica. Today this covers **view billing**, **delete*
14
14
  ## Step 1 — Load config
15
15
 
16
16
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
17
- `.syntica/config.json` (project state) using the Read tool. The token is deliberately kept
17
+ `.syntica/config.json` (project state) by reading it. The token is deliberately kept
18
18
  out of the project directory — see `/syntica-onboard` (#488).
19
19
 
20
20
  If `~/.syntica/credentials.json` is missing but `.syntica/config.json` still has a
@@ -26,6 +26,31 @@ If neither file yields a `token`, or `orgId` is empty, stop and tell the user:
26
26
 
27
27
  Use `token` and `orgId` from the file for every call below. If a call returns an auth error, tell the user: "Your session has expired. Run `/syntica-onboard` to sign in again." and stop.
28
28
 
29
+ ### If the user has more than one organisation
30
+
31
+ The stored token is scoped to **one** organisation. Passing a different `orgId` to a tool does
32
+ not switch — the token is what authorises, so the call is refused.
33
+
34
+ When the user mentions another organisation, asks what they have access to, or wants something
35
+ created somewhere other than the current org:
36
+
37
+ 1. `org_list_orgs` — the organisations this user belongs to.
38
+ 2. Ask which one they mean, unless they have already said.
39
+ 3. `org_select` with that `orgId` — returns a **new** token scoped to it.
40
+ 4. Write the new `token` and `orgId` to `~/.syntica/credentials.json`, replacing both, and use
41
+ them for the rest of the session:
42
+
43
+ ```bash
44
+ (umask 077 && cat > ~/.syntica/credentials.json <<'JSON'
45
+ {"token":"<new token>","userId":"<userId>","orgId":"<new orgId>"}
46
+ JSON
47
+ )
48
+ ```
49
+
50
+ Tell the user which organisation you switched to. A switch is sticky: everything afterwards,
51
+ including anything `.syntica/config.json` refers to, belongs to the new org, so check the app
52
+ still exists there before acting on it.
53
+
29
54
  ---
30
55
 
31
56
  ## Step 2 — Choose the operation
@@ -9,7 +9,7 @@ Announce at start: "I'm using syntica-onboard to set up your project on syntica.
9
9
 
10
10
  ## Prerequisites
11
11
 
12
- The Syntica MCP server must be configured in Claude Code. If the MCP tools are not available, tell the user to run `npx @syntica/mcp setup` and restart Claude Code — that installs the plugin, which registers both the MCP server and these skills.
12
+ The Syntica MCP server must be configured in your agent. If the MCP tools are not available, tell the user to run `npx @syntica/mcp setup` and restart your agent — that registers the MCP server and installs these skills for whichever agents it finds.
13
13
 
14
14
  ---
15
15
 
@@ -34,7 +34,7 @@ add `.syntica/` to `.gitignore` if it is not already covered. Leave `.vibetoclou
34
34
  if anything else remains in it. Running this skill again later re-does this check, so a user who
35
35
  still has an environment with the old path structure is caught the next time they onboard.
36
36
 
37
- Read `~/.syntica/credentials.json` using the Read tool. Read `.syntica/config.json` too
37
+ Read `~/.syntica/credentials.json` by reading it. Read `.syntica/config.json` too
38
38
  if it exists — that is where `appId`, `environment` and `remote` come from.
39
39
 
40
40
  **Migrating an older setup:** if `.syntica/config.json` contains a non-empty `token` field,
@@ -56,10 +56,12 @@ Then:
56
56
 
57
57
  **Authenticate:**
58
58
 
59
- Use the AskUserQuestion tool with options `["Yes", "No"]` to ask:
60
- "Would you like to pre-approve all syntica MCP tools so Claude Code stops asking for permission on every call?"
59
+ **Only when the agent is Claude Code** (other agents handle tool permission
60
+ their own way, so skip this step silently elsewhere): ask with options
61
+ `["Yes", "No"]`:
62
+ "Would you like to pre-approve all syntica MCP tools so you are not asked for permission on every call?"
61
63
 
62
- **If Yes:** Read `~/.claude/settings.json` using the Read tool. Add `"mcp__syntica__*"` to the `permissions.allow` array (create the `permissions` key and `allow` array if they don't exist). Write the updated file back. Tell the user: "syntica tools pre-approved. You won't be prompted again."
64
+ **If Yes:** read `~/.claude/settings.json`. Add `"mcp__syntica__*"` to the `permissions.allow` array (create the `permissions` key and `allow` array if they don't exist). Write the updated file back. Tell the user: "syntica tools pre-approved. You won't be prompted again."
63
65
 
64
66
  Use the AskUserQuestion tool with options `["Login", "Register"]` to ask:
65
67
  "Do you already have a syntica account, or are you signing up for the first time?"
@@ -267,7 +269,7 @@ Save `"upstream"` as `remote` in `.syntica/config.json` so later steps know not
267
269
 
268
270
  ## Step 4 — docker-compose.yml
269
271
 
270
- Check whether `docker-compose.yml` or `compose.yaml` exists in the project root using the Read tool.
272
+ Check whether `docker-compose.yml` or `compose.yaml` exists in the project root by reading it.
271
273
 
272
274
  **If found:** tell the user "Found docker-compose.yml." Continue to Step 5.
273
275
 
@@ -453,7 +455,7 @@ If Yes, add `NODE_ENV=production` under the `environment:` key of the first serv
453
455
 
454
456
  ### Check 5 — .dockerignore audit
455
457
 
456
- Check whether `.dockerignore` exists using the Read tool. If it does not exist, skip this check.
458
+ Check whether `.dockerignore` exists by reading it. If it does not exist, skip this check.
457
459
 
458
460
  If it exists, read it and flag any line that would exclude a file critical to the build. Dangerous patterns include:
459
461
  - `package.json`, `**/package.json`, or `*.json` globs at any path level
@@ -559,9 +561,11 @@ Tell the user: "✅ Your code is on syntica. Run `/syntica-deploy` to trigger yo
559
561
 
560
562
  ---
561
563
 
562
- ## Step 7 — Write CLAUDE.md
564
+ ## Step 7 — Write the agent instructions file
563
565
 
564
- Check whether `CLAUDE.md` exists in the project root using the Read tool.
566
+ Find the project's agent instructions file: `AGENTS.md` if it exists, otherwise
567
+ `CLAUDE.md`, otherwise whichever your agent reads by convention. If none exists,
568
+ create `AGENTS.md` — most agents read it, and Claude Code reads it too.
565
569
 
566
570
  If it exists, read it and check whether it already contains a "Syntica" section. If it does, skip this step.
567
571
 
@@ -573,14 +577,15 @@ If it does not exist, or exists but has no Syntica section, append the following
573
577
  This project is deployed on Syntica. The `docker-compose.yml` defines how the application runs **in the cloud** — you do not need Docker locally and should never run `docker compose up`.
574
578
 
575
579
  Use the Syntica MCP skills to work with the project:
576
- - Push code and deploy: `/vibe`
577
- - Debug running services: `/syntica-debug`
580
+ - Push code and deploy: the syntica-deploy skill
581
+ - Debug running services: the syntica-debug skill
578
582
 
579
583
  All interaction with running containers happens through the MCP tools, not locally.
580
584
  ```
581
585
 
582
- Commit the CLAUDE.md if it was created or changed:
586
+ Commit the instructions file if it was created or changed (use whichever name
587
+ you wrote — `AGENTS.md` or `CLAUDE.md`):
583
588
  ```bash
584
- git add CLAUDE.md
585
- git diff --cached --quiet || git commit -m "chore: add Syntica development instructions to CLAUDE.md"
589
+ git add AGENTS.md CLAUDE.md 2>/dev/null || true
590
+ git diff --cached --quiet || git commit -m "chore: add Syntica development instructions"
586
591
  ```