@syntica/mcp 2.4.0 → 2.5.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 +9 -4
- package/dist/index.js +737 -120
- package/package.json +3 -3
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/README.md +21 -12
- package/skills/skills/debug/SKILL.md +6 -6
- package/skills/skills/deploy/SKILL.md +11 -11
- package/skills/skills/manage/SKILL.md +15 -15
- package/skills/skills/onboard/SKILL.md +18 -18
- package/skills/skills/pre-commit-validation/SKILL.md +12 -6
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syntica/mcp",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "MCP server and skills for deploying applications on Syntica from your coding agent (Claude Code,
|
|
3
|
+
"version": "2.5.0",
|
|
4
|
+
"description": "MCP server and skills for deploying applications on Syntica from your coding agent (Claude Code, OpenCode, Codex CLI, Gemini CLI, Copilot CLI, Cursor)",
|
|
5
5
|
"mcpName": "io.syntica/mcp",
|
|
6
6
|
"bin": {
|
|
7
7
|
"syntica-mcp": "./dist/index.js"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"claude-code",
|
|
15
15
|
"codex",
|
|
16
16
|
"cursor",
|
|
17
|
-
"
|
|
17
|
+
"opencode",
|
|
18
18
|
"deployment",
|
|
19
19
|
"docker-compose",
|
|
20
20
|
"paas",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "syntica",
|
|
3
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.
|
|
4
|
+
"version": "2.5.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Syntica",
|
|
7
7
|
"email": "support@syntica.io",
|
package/skills/README.md
CHANGED
|
@@ -17,19 +17,22 @@ Restart your agent afterwards and you're connected.
|
|
|
17
17
|
|
|
18
18
|
### Best with Claude Code
|
|
19
19
|
|
|
20
|
-
The same command works with
|
|
21
|
-
is the one to pick if you have the choice**.
|
|
22
|
-
|
|
23
|
-
`/syntica:deploy`
|
|
24
|
-
In practice that means it knows the whole deploy flow without being reminded, and
|
|
20
|
+
The same command works with OpenCode, Codex CLI, Gemini CLI, GitHub Copilot CLI
|
|
21
|
+
and Cursor, but **Claude Code is the one to pick if you have the choice**. The
|
|
22
|
+
skills install there as a plugin, as actual commands (`/syntica:onboard`,
|
|
23
|
+
`/syntica:deploy`), so it knows the whole deploy flow without being reminded, and
|
|
25
24
|
it is the combination this integration is tested against first.
|
|
26
25
|
|
|
27
|
-
|
|
26
|
+
OpenCode runs the skills natively too: setup copies them into its skills folder,
|
|
27
|
+
and it loads each one when a task calls for it. The other agents get the same
|
|
28
|
+
tools plus instructions that point at the skill files.
|
|
29
|
+
|
|
30
|
+
Everywhere else the tools are identical. Only the way you reach the skills differs.
|
|
28
31
|
|
|
29
32
|
Pick explicitly if you would rather:
|
|
30
33
|
|
|
31
34
|
```bash
|
|
32
|
-
npx @syntica/mcp setup --agent claude # or codex,
|
|
35
|
+
npx @syntica/mcp setup --agent claude # or opencode, codex, gemini, copilot, cursor
|
|
33
36
|
npx @syntica/mcp setup --all
|
|
34
37
|
```
|
|
35
38
|
|
|
@@ -37,14 +40,18 @@ npx @syntica/mcp setup --all
|
|
|
37
40
|
|
|
38
41
|
| Agent | MCP server | Skills |
|
|
39
42
|
|---|---|---|
|
|
40
|
-
| **Claude Code** | the Syntica plugin, which carries both | `/syntica
|
|
43
|
+
| **Claude Code** | the Syntica plugin, which carries both | `/syntica:*` slash commands |
|
|
44
|
+
| **OpenCode** | a `syntica` server under `mcp` in `~/.config/opencode/opencode.json` | the seven skills in `~/.config/opencode/skills/syntica-<name>/SKILL.md`, run natively |
|
|
41
45
|
| **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
46
|
| **Gemini CLI** | a `syntica` entry in `~/.gemini/settings.json` | a marked section in `~/.gemini/GEMINI.md` |
|
|
47
|
+
| **GitHub Copilot CLI** | a `syntica` entry in `~/.copilot/mcp-config.json` | a marked section in `~/.copilot/copilot-instructions.md` |
|
|
48
|
+
| **Cursor** | a `syntica` entry in `~/.cursor/mcp.json` | a rules file naming each skill and where to read it |
|
|
45
49
|
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
If you keep OpenCode's config as `opencode.jsonc`, setup leaves it alone and
|
|
51
|
+
prints the snippet to paste in instead.
|
|
52
|
+
|
|
53
|
+
Gemini and Copilot keep their instructions in a document you also write in, so
|
|
54
|
+
we add one delimited section there and update that section in place. Your own
|
|
48
55
|
text is never touched, and a second run does not leave a second copy.
|
|
49
56
|
|
|
50
57
|
Your existing configuration is merged, never replaced: anything we cannot parse
|
|
@@ -57,6 +64,8 @@ To remove everything we wrote:
|
|
|
57
64
|
npx @syntica/mcp teardown
|
|
58
65
|
```
|
|
59
66
|
|
|
67
|
+
Teardown also removes a previous Windsurf install, from before Windsurf support was dropped.
|
|
68
|
+
|
|
60
69
|
**You will need:** Node.js 18+, one of the agents above, a Syntica account
|
|
61
70
|
([syntica.io](https://syntica.io) — currently in closed beta), and a
|
|
62
71
|
`docker-compose.yml` in your project. If you don't have one, the onboarding skill
|
|
@@ -57,14 +57,14 @@ it in a minute.
|
|
|
57
57
|
## Step 1 — Load config and sign in
|
|
58
58
|
|
|
59
59
|
Read `.syntica/config.json` (project state) by reading it. It holds no token — see
|
|
60
|
-
|
|
60
|
+
the onboard skill (#488).
|
|
61
61
|
|
|
62
62
|
If `.syntica/config.json` still has a `token` field, or a `.vibetocloud.json` file exists in the
|
|
63
63
|
project root, it is an older setup that left a session token in the repository: tell the user to
|
|
64
|
-
run `/syntica:onboard` once, which removes it. Do not use that token.
|
|
64
|
+
run the onboard skill (`/syntica:onboard` in Claude Code) once, which removes it. Do not use that token.
|
|
65
65
|
|
|
66
66
|
If `appId` or `orgId` is empty, stop and tell the user:
|
|
67
|
-
"Run `/syntica:onboard` first to set up your project."
|
|
67
|
+
"Run the onboard skill (`/syntica:onboard` in Claude Code) first to set up your project."
|
|
68
68
|
|
|
69
69
|
**Sign in:** call `org_authenticate` (no arguments). It returns
|
|
70
70
|
`{ userId, orgId, userName, orgName, platformRole }` when you are signed in. The Syntica MCP
|
|
@@ -76,8 +76,8 @@ If it fails with a 401 ("not signed in", or an expired session), sign in again:
|
|
|
76
76
|
1. Ask the user for their email address and call `org_request_otp` with `{ "email": "<email>" }`.
|
|
77
77
|
2. Ask the user for the code from that email and call `org_verify_otp` with
|
|
78
78
|
`{ "email": "<email>", "code": "<code>" }`.
|
|
79
|
-
3. If it returns `pendingOrgSelection: true` with an `orgs` list,
|
|
80
|
-
|
|
79
|
+
3. If it returns `pendingOrgSelection: true` with an `orgs` list, ask the user which organisation
|
|
80
|
+
to use (with AskUserQuestion in Claude Code), then call `org_select` with `{ "orgId": "<chosen orgId>" }`.
|
|
81
81
|
|
|
82
82
|
Do not try to refresh the session by hand — refresh is automatic. Any later call that fails
|
|
83
83
|
with a 401 means the session has ended: run this sign-in again, then retry the call.
|
|
@@ -103,7 +103,7 @@ api running 2.1% 128 MB 2h 14m
|
|
|
103
103
|
worker stopped — — —
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
If no services are returned, tell the user: "No services are running in this environment. Try deploying first with `/syntica:deploy
|
|
106
|
+
If no services are returned, tell the user: "No services are running in this environment. Try deploying first with the deploy skill (`/syntica:deploy` in Claude Code)."
|
|
107
107
|
|
|
108
108
|
---
|
|
109
109
|
|
|
@@ -12,14 +12,14 @@ Announce at start: "I'm using deploy to deploy your application."
|
|
|
12
12
|
## Step 1 — Load config and sign in
|
|
13
13
|
|
|
14
14
|
Read `.syntica/config.json` (project state) by reading it. It holds no token — see
|
|
15
|
-
|
|
15
|
+
the onboard skill (#488).
|
|
16
16
|
|
|
17
17
|
If `.syntica/config.json` still has a `token` field, or a `.vibetocloud.json` file exists in the
|
|
18
18
|
project root, it is an older setup that left a session token in the repository: tell the user to
|
|
19
|
-
run `/syntica:onboard` once, which removes it. Do not use that token.
|
|
19
|
+
run the onboard skill (`/syntica:onboard` in Claude Code) once, which removes it. Do not use that token.
|
|
20
20
|
|
|
21
21
|
If `appId` or `orgId` is empty, stop and tell the user:
|
|
22
|
-
"Run `/syntica:onboard` first to set up your project."
|
|
22
|
+
"Run the onboard skill (`/syntica:onboard` in Claude Code) first to set up your project."
|
|
23
23
|
|
|
24
24
|
**Sign in:** call `org_authenticate` (no arguments). It returns
|
|
25
25
|
`{ userId, orgId, userName, orgName, platformRole }` when you are signed in. The Syntica MCP
|
|
@@ -31,8 +31,8 @@ If it fails with a 401 ("not signed in", or an expired session), sign in again:
|
|
|
31
31
|
1. Ask the user for their email address and call `org_request_otp` with `{ "email": "<email>" }`.
|
|
32
32
|
2. Ask the user for the code from that email and call `org_verify_otp` with
|
|
33
33
|
`{ "email": "<email>", "code": "<code>" }`.
|
|
34
|
-
3. If it returns `pendingOrgSelection: true` with an `orgs` list,
|
|
35
|
-
|
|
34
|
+
3. If it returns `pendingOrgSelection: true` with an `orgs` list, ask the user which organisation
|
|
35
|
+
to use (with AskUserQuestion in Claude Code), then call `org_select` with `{ "orgId": "<chosen orgId>" }`.
|
|
36
36
|
|
|
37
37
|
Do not try to refresh the session by hand — refresh is automatic. Any later call that fails
|
|
38
38
|
with a 401 means the session has ended: run this sign-in again, then retry the call.
|
|
@@ -41,7 +41,7 @@ with a 401 means the session has ended: run this sign-in again, then retry the c
|
|
|
41
41
|
|
|
42
42
|
## Step 2 — Confirm environment
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
Offer the options `["dev", "staging", "production"]` (with AskUserQuestion in Claude Code) and ask:
|
|
45
45
|
"Which environment would you like to deploy to?" (pre-select the value from config).
|
|
46
46
|
|
|
47
47
|
If the selected environment differs from config, update `environment` in `.syntica/config.json`.
|
|
@@ -134,13 +134,13 @@ The `failureReason` for the "Deploying your application" step contains the `dock
|
|
|
134
134
|
- **Image pull failure** (e.g. private registry, image not found): remind the user that syntica builds from source — the `image:` key must reference a public image or use `build: .` with a local Dockerfile.
|
|
135
135
|
- **SSM agent never started** (`failureReason` contains "SSM agent never started"): tell the user "The deployment agent on your instance never started — this is a platform issue, not your code. Try re-deploying; if it persists, contact support."
|
|
136
136
|
- **Build stalled** (`failureReason` contains "EC2 deploy stalled" and "no build output"): tell the user "The build ran but stalled — likely a slow package install or large layer download. Consider: (1) adding `node_modules` to `.dockerignore`; (2) ordering `COPY package.json` + `RUN npm install` before `COPY . .` in your Dockerfile to maximise layer cache hits."
|
|
137
|
-
- **Health check failure** (failed step name contains "health" or "live"): the platform performs `GET /` on your app's public URL and expects HTTP 2xx or 3xx within 2 minutes. A 404 at the root path is treated as an application error — ensure your app serves a response at `/` in production mode. If `NODE_ENV=production` is not set, many frameworks disable their default routes. Suggest running `/syntica:onboard` to check and set `NODE_ENV`.
|
|
137
|
+
- **Health check failure** (failed step name contains "health" or "live"): the platform performs `GET /` on your app's public URL and expects HTTP 2xx or 3xx within 2 minutes. A 404 at the root path is treated as an application error — ensure your app serves a response at `/` in production mode. If `NODE_ENV=production` is not set, many frameworks disable their default routes. Suggest running the onboard skill (`/syntica:onboard` in Claude Code) to check and set `NODE_ENV`.
|
|
138
138
|
|
|
139
|
-
After explaining the failure,
|
|
139
|
+
After explaining the failure, offer the options `["Yes — help me fix it", "No — I'll investigate myself"]` (with AskUserQuestion in Claude Code) and ask: "Would you like me to help fix the issue now?"
|
|
140
140
|
|
|
141
|
-
If yes: read the relevant file (`Dockerfile`, `docker-compose.yml`, or a source file), propose a fix, and tell the user to run `/syntica:deploy` again once the fix is applied.
|
|
141
|
+
If yes: read the relevant file (`Dockerfile`, `docker-compose.yml`, or a source file), propose a fix, and tell the user to run the deploy skill (`/syntica:deploy` in Claude Code) again once the fix is applied.
|
|
142
142
|
|
|
143
|
-
If no, or the failure does not match the above categories: tell the user: "Run `/syntica:debug` to tail live logs and diagnose further."
|
|
143
|
+
If no, or the failure does not match the above categories: tell the user: "Run the debug skill (`/syntica:debug` in Claude Code) to tail live logs and diagnose further."
|
|
144
144
|
|
|
145
145
|
**On `cancelled`:**
|
|
146
146
|
|
|
@@ -151,7 +151,7 @@ Tell the user: "Deployment was cancelled."
|
|
|
151
151
|
The environment has no node tier set, so there is nothing to deploy to. The error
|
|
152
152
|
payload carries `environment` and a `tiers` array of the selectable tiers.
|
|
153
153
|
|
|
154
|
-
Do not guess a tier.
|
|
154
|
+
Do not guess a tier. Have the user choose (with AskUserQuestion in Claude Code) from
|
|
155
155
|
`tiers` (show `name`, and `instanceType`/`storageGb` where present), then call
|
|
156
156
|
`app_set_node_tier` with `{ applicationId, environment, nodeTierId }` and
|
|
157
157
|
retry the deploy once.
|
|
@@ -14,9 +14,9 @@ Maintenance operations on syntica. Today this covers **view billing**, **delete*
|
|
|
14
14
|
## Step 1 — Load config and sign in
|
|
15
15
|
|
|
16
16
|
Read `.syntica/config.json` (project state) if it exists. It holds no token — see
|
|
17
|
-
|
|
17
|
+
the onboard skill (#488). If it still has a `token` field, or a `.vibetocloud.json` file exists
|
|
18
18
|
in the project root, it is an older setup that left a session token in the repository: tell the
|
|
19
|
-
user to run `/syntica:onboard` once, which removes it. Do not use that token.
|
|
19
|
+
user to run the onboard skill (`/syntica:onboard` in Claude Code) once, which removes it. Do not use that token.
|
|
20
20
|
|
|
21
21
|
**Sign in:** call `org_authenticate` (no arguments). It returns
|
|
22
22
|
`{ userId, orgId, userName, orgName, platformRole }` when you are signed in. The Syntica MCP
|
|
@@ -28,8 +28,8 @@ If it fails with a 401 ("not signed in", or an expired session), sign in again:
|
|
|
28
28
|
1. Ask the user for their email address and call `org_request_otp` with `{ "email": "<email>" }`.
|
|
29
29
|
2. Ask the user for the code from that email and call `org_verify_otp` with
|
|
30
30
|
`{ "email": "<email>", "code": "<code>" }`.
|
|
31
|
-
3. If it returns `pendingOrgSelection: true` with an `orgs` list,
|
|
32
|
-
|
|
31
|
+
3. If it returns `pendingOrgSelection: true` with an `orgs` list, ask the user which organisation
|
|
32
|
+
to use (with AskUserQuestion in Claude Code), then call `org_select` with `{ "orgId": "<chosen orgId>" }`.
|
|
33
33
|
|
|
34
34
|
Do not try to refresh the session by hand — refresh is automatic. Any later call that fails
|
|
35
35
|
with a 401 means the session has ended: run this sign-in again, then retry the call.
|
|
@@ -58,9 +58,9 @@ still exists there before acting on it.
|
|
|
58
58
|
|
|
59
59
|
## Step 2 — Choose the operation
|
|
60
60
|
|
|
61
|
-
If the user's request already makes the operation clear (e.g. "show my bill", "resize prod", "enable staging", "delete this app", "restore my app", "rename it to X"), skip straight to that operation. Otherwise
|
|
61
|
+
If the user's request already makes the operation clear (e.g. "show my bill", "resize prod", "enable staging", "delete this app", "restore my app", "rename it to X"), skip straight to that operation. Otherwise offer the options `["View billing", "Resize an environment", "Enable an environment or change billing", "Delete, restore or rename an app"]` (with AskUserQuestion in Claude Code) and ask: "What would you like to do?"
|
|
62
62
|
|
|
63
|
-
If they pick **"Delete, restore or rename an app"**,
|
|
63
|
+
If they pick **"Delete, restore or rename an app"**, ask a follow-up question with the options `["Delete", "Restore", "Rename"]` (with AskUserQuestion in Claude Code) and go to that section.
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -90,7 +90,7 @@ Changing an environment's node tier changes the instance size **and the monthly
|
|
|
90
90
|
2. **List tiers.** Call `app_list_node_tiers` with `{ orgId }`. It returns the available tiers (name, instance type, storage, price) and the org's plan key.
|
|
91
91
|
- If the plan is `free`: tell the user only the free tier is available and larger sizes require Pay-as-you-go — point them at **Enable an environment or change billing** — then stop.
|
|
92
92
|
|
|
93
|
-
3. **Confirm the cost.**
|
|
93
|
+
3. **Confirm the cost.** Offer the options `["Yes — resize", "No — cancel"]` (with AskUserQuestion in Claude Code) and ask: "Resize <app>/<env> to <tier> at €X/mo? This changes your bill." Show the chosen tier's monthly price. If the user cancels, stop.
|
|
94
94
|
|
|
95
95
|
4. **Set the tier.** Call `app_set_node_tier` with `{ applicationId, environment, nodeTierId }`.
|
|
96
96
|
|
|
@@ -116,21 +116,21 @@ Then tell them what to do there:
|
|
|
116
116
|
|
|
117
117
|
## Delete an application
|
|
118
118
|
|
|
119
|
-
1. **Identify the app.** If the target is not obvious, call `app_list` with `{ orgId }` and
|
|
119
|
+
1. **Identify the app.** If the target is not obvious, call `app_list` with `{ orgId }` and let the user pick (with AskUserQuestion in Claude Code) which application to delete (show `name`). Never guess — deletion is destructive.
|
|
120
120
|
|
|
121
121
|
2. **Show the disclaimer** verbatim, filling in the app name:
|
|
122
122
|
|
|
123
123
|
> ⚠️ Deleting **<name>** will:
|
|
124
|
-
> - Move its repository to trash. You can restore it for about **30 days** with `/syntica:manage` → Restore.
|
|
124
|
+
> - Move its repository to trash. You can restore it for about **30 days** with the manage skill (`/syntica:manage` in Claude Code) → Restore.
|
|
125
125
|
> - After that window it is **permanently purged and cannot be recovered**.
|
|
126
126
|
> - Free the application's billing slot.
|
|
127
|
-
> - **NOT** stop or destroy any deployed environments/instances — if you no longer want to be billed for them, stop them first (
|
|
127
|
+
> - **NOT** stop or destroy any deployed environments/instances — if you no longer want to be billed for them, stop them first (the debug skill or the dashboard).
|
|
128
128
|
|
|
129
|
-
3. **Confirm.**
|
|
129
|
+
3. **Confirm.** Offer the options `["Yes — delete it", "No — cancel"]` (with AskUserQuestion in Claude Code) and ask: "Delete application <name>? This can be undone within ~30 days." If the user cancels, stop and confirm nothing was changed.
|
|
130
130
|
|
|
131
131
|
4. **Delete.** Call `app_delete` with `{ applicationId }`.
|
|
132
132
|
|
|
133
|
-
5. **Report.** On success tell the user: "🗑️ **<name>** deleted. Restore it within ~30 days with `/syntica:manage` → Restore; after that it is permanently purged." If the call fails, show the error and stop.
|
|
133
|
+
5. **Report.** On success tell the user: "🗑️ **<name>** deleted. Restore it within ~30 days with the manage skill (`/syntica:manage` in Claude Code) → Restore; after that it is permanently purged." If the call fails, show the error and stop.
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
@@ -140,12 +140,12 @@ Then tell them what to do there:
|
|
|
140
140
|
|
|
141
141
|
- If the list is empty, tell the user: "You have no deleted applications to restore." and stop.
|
|
142
142
|
|
|
143
|
-
2. **Pick one.**
|
|
143
|
+
2. **Pick one.** Let the user choose (with AskUserQuestion in Claude Code) which to restore, showing each `name` with its `approxDaysLeftToRestore` (e.g. "my-app — ~12 days left"). Warn on any with a low or zero count that they may already be past the window.
|
|
144
144
|
|
|
145
145
|
3. **Restore.** Call `app_restore` with `{ applicationId }` for the chosen app.
|
|
146
146
|
|
|
147
147
|
4. **Report.**
|
|
148
|
-
- On success: "♻️ **<name>** restored." (The repository and app are back; redeploy with
|
|
148
|
+
- On success: "♻️ **<name>** restored." (The repository and app are back; redeploy with the deploy skill if needed.)
|
|
149
149
|
- If the error is `RESTORE_WINDOW_ELAPSED`: tell the user the recovery window has passed and the app was permanently purged — it cannot be recovered, they'll need to create a new application.
|
|
150
150
|
- If the error is `DELETED_APP_NOT_FOUND`: it may already be restored or purged; re-run the list.
|
|
151
151
|
|
|
@@ -161,7 +161,7 @@ Then tell them what to do there:
|
|
|
161
161
|
|
|
162
162
|
> ⚠️ Renaming changes the repository path, so **existing git clone/remote URLs stop working**. Anyone with a local clone (including this project, if its remote points at syntica) must update their remote to the new clone URL afterwards.
|
|
163
163
|
|
|
164
|
-
4. **Confirm.**
|
|
164
|
+
4. **Confirm.** Offer the options `["Yes — rename it", "No — cancel"]` (with AskUserQuestion in Claude Code) and ask: "Rename <old name> to <new name>? Existing clone remotes will break."
|
|
165
165
|
|
|
166
166
|
5. **Rename.** Call `app_rename` with `{ applicationId, name }`.
|
|
167
167
|
|
|
@@ -60,7 +60,7 @@ their own way, so skip this step silently elsewhere): ask with options
|
|
|
60
60
|
|
|
61
61
|
**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."
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
Offer the options `["Login", "Register"]` (with AskUserQuestion in Claude Code) and ask:
|
|
64
64
|
"Do you already have a syntica account, or are you signing up for the first time?"
|
|
65
65
|
|
|
66
66
|
**If Login:**
|
|
@@ -121,7 +121,7 @@ On success the response contains `{ userId, orgId, userName, orgName }` — no t
|
|
|
121
121
|
stored the session itself.
|
|
122
122
|
|
|
123
123
|
If it instead returns `pendingOrgSelection: true` with an `orgs` list, the account belongs to more
|
|
124
|
-
than one organisation.
|
|
124
|
+
than one organisation. Ask the user which one (with AskUserQuestion in Claude Code), showing each `name`, then
|
|
125
125
|
call `org_select` with `{ "orgId": "<chosen orgId>" }`. Use that `orgId` from here on.
|
|
126
126
|
|
|
127
127
|
Write `.syntica/config.json` using the Write tool — project state only, **no token**:
|
|
@@ -151,7 +151,7 @@ Call `app_list` with:
|
|
|
151
151
|
|
|
152
152
|
Build an options list from the response: one option per existing app (label = app name), plus a final option `"Create new app"`.
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
Offer those options (with AskUserQuestion in Claude Code) and ask:
|
|
155
155
|
"Is this project already registered on syntica, or should I create a new one?"
|
|
156
156
|
|
|
157
157
|
**If an existing app is selected:** save its `id` as `appId` in `.syntica/config.json`.
|
|
@@ -184,8 +184,8 @@ Save `"origin"` as `remote` in `.syntica/config.json`. Tell the user: "syntica s
|
|
|
184
184
|
|
|
185
185
|
Three options here. The first keeps their repository as the source of truth and needs no pushes to syntica at all; the other two push to the platform-hosted repository.
|
|
186
186
|
|
|
187
|
-
|
|
188
|
-
`["Deploy from my existing repository (paid feature)", "Make syntica my new origin", "Keep my current origin and push to syntica too"]`
|
|
187
|
+
Offer the options
|
|
188
|
+
`["Deploy from my existing repository (paid feature)", "Make syntica my new origin", "Keep my current origin and push to syntica too"]` (with AskUserQuestion in Claude Code) and ask:
|
|
189
189
|
"Your origin points to an external host. How should syntica get your code?"
|
|
190
190
|
|
|
191
191
|
If **Deploy from my existing repository**: go to *Step 3b* below. Do **not** add a syntica remote.
|
|
@@ -260,7 +260,7 @@ Detect project type by checking for these files in order:
|
|
|
260
260
|
1. `package.json` → Node.js
|
|
261
261
|
2. `requirements.txt` or `pyproject.toml` → Python
|
|
262
262
|
3. `Dockerfile` → custom image
|
|
263
|
-
4. None of the above →
|
|
263
|
+
4. None of the above → offer the options `["Node.js", "Python", "Other (Dockerfile)"]` (with AskUserQuestion in Claude Code) and ask: "What runtime does your application use?"
|
|
264
264
|
|
|
265
265
|
Generate a `docker-compose.yml` appropriate for the detected type.
|
|
266
266
|
|
|
@@ -309,7 +309,7 @@ services:
|
|
|
309
309
|
restart: unless-stopped
|
|
310
310
|
```
|
|
311
311
|
|
|
312
|
-
Show the generated file to the user
|
|
312
|
+
Show the generated file to the user, offer the options `["Looks good", "I want to make changes"]` (with AskUserQuestion in Claude Code) and ask: "Does this docker-compose.yml look correct?"
|
|
313
313
|
|
|
314
314
|
If **"I want to make changes"**: ask the user to describe the changes and update the file accordingly before writing.
|
|
315
315
|
|
|
@@ -323,7 +323,7 @@ Read `docker-compose.yml` (or `compose.yaml`) and run both checks before pushing
|
|
|
323
323
|
|
|
324
324
|
> **How secrets reach your containers:** at deploy time syntica writes all configured secrets to a `.env` file in your app directory. Docker Compose loads this file automatically when each service declares `env_file: - .env`. This means you do **not** need `${VAR}` references in your compose file — just add `env_file: - .env` to each service and the variables will be available at runtime.
|
|
325
325
|
|
|
326
|
-
If `docker-compose.yml` does not already have `env_file: - .env` on each service, tell the user
|
|
326
|
+
If `docker-compose.yml` does not already have `env_file: - .env` on each service, tell the user, offer the options `["Yes — add it now", "No — I'll add it manually"]` (with AskUserQuestion in Claude Code) and ask: "Would you like me to add `env_file: - .env` to your docker-compose.yml services now?"
|
|
327
327
|
|
|
328
328
|
If Yes, add `env_file:\n - .env` under each service in `docker-compose.yml`.
|
|
329
329
|
|
|
@@ -341,7 +341,7 @@ For each service, inspect the `image:` and `build:` keys.
|
|
|
341
341
|
- `image:` containing `${...}` — image name uses an unresolved environment variable ❌
|
|
342
342
|
- `image:` referencing a private registry — any URL containing `.dkr.ecr.`, `gcr.io`, `ghcr.io`, `azurecr.io`, or any hostname-style prefix ❌
|
|
343
343
|
|
|
344
|
-
If any service uses an unsupported build method, **stop** and tell the user what was found, then
|
|
344
|
+
If any service uses an unsupported build method, **stop** and tell the user what was found, then offer the options `["Yes — create a Dockerfile", "No — I'll handle it myself"]` (with AskUserQuestion in Claude Code) and ask:
|
|
345
345
|
"syntica cannot pull this image. Would you like me to create a Dockerfile so syntica can build it directly?"
|
|
346
346
|
|
|
347
347
|
If Yes, help them create a suitable Dockerfile and update the service in `docker-compose.yml` to use `build: .` instead. Then re-run both checks. If No, stop — do not push until this is resolved.
|
|
@@ -354,7 +354,7 @@ Remove from the list:
|
|
|
354
354
|
- Variables that have an inline default in the compose file (`${VAR:-default}`)
|
|
355
355
|
- Common platform-provided variables: `PORT`, `NODE_ENV`, `PYTHONUNBUFFERED`, `HOST`, `TZ`
|
|
356
356
|
|
|
357
|
-
If any variables remain unaccounted for, tell the user which ones, then
|
|
357
|
+
If any variables remain unaccounted for, tell the user which ones, then offer the options `["Yes — add them now", "No — continue anyway"]` (with AskUserQuestion in Claude Code) and ask:
|
|
358
358
|
"These environment variables are referenced in docker-compose.yml but not configured as secrets. The application may fail to start if they are required. Would you like to add them now?"
|
|
359
359
|
|
|
360
360
|
If Yes, collect the values one at a time as `NAME=value`. For each, ask whether it is sensitive, then call `app_create_config` with:
|
|
@@ -415,7 +415,7 @@ If any dynamic references are found, warn the user:
|
|
|
415
415
|
- Variables with inline defaults in docker-compose (`${VAR:-default}`)
|
|
416
416
|
- Common platform-provided variables: `PORT`, `NODE_ENV`, `PYTHONUNBUFFERED`, `HOST`, `TZ`, `PATH`, `HOME`, `USER`
|
|
417
417
|
|
|
418
|
-
If any variables remain, tell the user which ones were found and in which files (re-run grep without `-h` to get filenames), then
|
|
418
|
+
If any variables remain, tell the user which ones were found and in which files (re-run grep without `-h` to get filenames), then offer the options `["Yes — add them now", "No — continue anyway"]` (with AskUserQuestion in Claude Code) and ask:
|
|
419
419
|
"These environment variables are used in your application code but not configured as secrets. Would you like to add them now?"
|
|
420
420
|
|
|
421
421
|
If Yes, collect the values one at a time as `NAME=value` and call `app_create_config` for each (same call as in Check 2 above). For any entry stored with `"kind": "secret"`, tell the user: "⚠️ Secret values are encrypted and cannot be retrieved — make sure you have them saved elsewhere." If No, continue with a warning.
|
|
@@ -432,7 +432,7 @@ If `NODE_ENV=production` is not present in any service's `environment:` block, w
|
|
|
432
432
|
|
|
433
433
|
> "⚠️ `NODE_ENV=production` is not set in your docker-compose.yml. Node.js apps often disable static file serving, enable production error handling, and trust proxies only when this variable is set. Without it your app may fail the health check or behave unexpectedly in production."
|
|
434
434
|
|
|
435
|
-
|
|
435
|
+
Offer the options `["Yes — add it now", "No — I'll add it manually"]` (with AskUserQuestion in Claude Code) and ask: "Would you like me to add `NODE_ENV=production` to your main app service?"
|
|
436
436
|
|
|
437
437
|
If Yes, add `NODE_ENV=production` under the `environment:` key of the first service that has a `build:` directive in `docker-compose.yml`. If no `environment:` key exists on that service, add one.
|
|
438
438
|
|
|
@@ -450,7 +450,7 @@ If it exists, read it and flag any line that would exclude a file critical to th
|
|
|
450
450
|
|
|
451
451
|
For each flagged line, explain the risk. For example: "`client/*.json` would exclude `client/package.json` from the build context, causing any `COPY client/package.json` instruction in your Dockerfile to fail."
|
|
452
452
|
|
|
453
|
-
|
|
453
|
+
Offer the options `["Yes — remove flagged lines", "No — I know what I'm doing"]` (with AskUserQuestion in Claude Code) and ask: "These .dockerignore patterns may exclude files needed during the Docker build. Would you like me to remove them?"
|
|
454
454
|
|
|
455
455
|
If Yes, remove the flagged lines from `.dockerignore` and write the file back using the Write tool.
|
|
456
456
|
|
|
@@ -482,8 +482,8 @@ For each flagged service, propose remapping the host side only and leaving the c
|
|
|
482
482
|
port untouched, e.g. `"13000:3000"` → `"3000:3000"`. Keep the container port as-is so
|
|
483
483
|
nothing inside the image has to change.
|
|
484
484
|
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
Offer the options `["Yes — remap to a port below 10000", "No — I'll fix it myself"]` (with AskUserQuestion in Claude Code)
|
|
486
|
+
and ask: "Service `<name>` publishes host port `<port>`, which the platform cannot route. Remap it?"
|
|
487
487
|
|
|
488
488
|
If Yes, edit `docker-compose.yml` and update any `vtc.config` route or health-check port
|
|
489
489
|
that referenced the old host port. If No, **stop** — do not push, because the first deploy
|
|
@@ -507,7 +507,7 @@ Call `app_list_node_tiers` with `{ "orgId": "<orgId>" }`.
|
|
|
507
507
|
- If `mustAsk` is `false` (free plan), the free tier is the only option. Set it
|
|
508
508
|
without asking and tell the user which one you used.
|
|
509
509
|
- If `mustAsk` is `true` (Pay-as-you-go, or the plan could not be determined),
|
|
510
|
-
|
|
510
|
+
have the user choose (with AskUserQuestion in Claude Code) from the `selectable` tiers by `name`, with
|
|
511
511
|
`instanceType` and `storageGb` as the description so the user can compare. Do
|
|
512
512
|
not offer the free tier — it is not selectable on a paid plan, and the
|
|
513
513
|
organisation is allowed only one free instance in total.
|
|
@@ -549,7 +549,7 @@ git rev-parse --abbrev-ref HEAD
|
|
|
549
549
|
|
|
550
550
|
**If the current branch is not `main` or `master`:**
|
|
551
551
|
|
|
552
|
-
|
|
552
|
+
Offer the options `["Yes — merge into main", "No — push this branch as-is"]` (with AskUserQuestion in Claude Code) and ask:
|
|
553
553
|
"You're on branch `<branch>`. syntica deploys from `main`. Would you like to merge this branch into `main` now?"
|
|
554
554
|
|
|
555
555
|
**If Yes:**
|
|
@@ -576,7 +576,7 @@ If the push fails due to no upstream tracking branch, run:
|
|
|
576
576
|
git push --set-upstream <remote from config> <current branch>
|
|
577
577
|
```
|
|
578
578
|
|
|
579
|
-
Tell the user: "✅ Your code is on syntica. Run `/syntica:deploy` to trigger your first deployment."
|
|
579
|
+
Tell the user: "✅ Your code is on syntica. Run the deploy skill (`/syntica:deploy` in Claude Code) to trigger your first deployment."
|
|
580
580
|
|
|
581
581
|
---
|
|
582
582
|
|
|
@@ -21,14 +21,20 @@ Run `git diff --cached` (staged changes). If nothing is staged, run
|
|
|
21
21
|
`git diff` (unstaged working tree) instead, and say which one you reviewed.
|
|
22
22
|
If both are empty, report "nothing to validate" and stop.
|
|
23
23
|
|
|
24
|
-
## Step 2 — Fetch the
|
|
24
|
+
## Step 2 — Fetch the prompts
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
If the session is tied to a specific application and you know its
|
|
27
|
+
`applicationId` (for example from `.syntica/config.json`), call
|
|
28
|
+
`app_get_prevalidation_prompts` with it. It returns the platform-standard set,
|
|
29
|
+
your organisation's own org-wide prompts, **and** the prompts set on that
|
|
30
|
+
application and its environments.
|
|
31
|
+
|
|
32
|
+
Otherwise call `validation_get_generic_prompts`. It returns the
|
|
33
|
+
platform-standard set plus your organisation's own org-wide prompts.
|
|
34
|
+
|
|
35
|
+
Both return a list of `{ id, name, scope, content }`. Run every one of them,
|
|
36
|
+
your organisation's own prompts included.
|
|
28
37
|
|
|
29
|
-
- If the session is tied to a specific application and you know its
|
|
30
|
-
`applicationId`, call `app_get_prevalidation_prompts` instead — it returns the
|
|
31
|
-
generic set **plus** prompts matched to that app's technologies.
|
|
32
38
|
- If the tool returns an empty list, say so and stop — the registry has no
|
|
33
39
|
prompts seeded.
|
|
34
40
|
|