@syntica/mcp 2.2.0 → 2.2.2
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 +26 -16
- package/dist/index.js +102 -21
- package/package.json +2 -2
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/README.md +12 -12
- package/skills/skills/{syntica-connections → connections}/SKILL.md +2 -2
- package/skills/skills/{syntica-debug → debug}/SKILL.md +7 -7
- package/skills/skills/{syntica-deploy → deploy}/SKILL.md +11 -11
- package/skills/skills/{syntica-manage → manage}/SKILL.md +10 -10
- package/skills/skills/{syntica-onboard → onboard}/SKILL.md +6 -6
- package/skills/skills/{syntica-security → security}/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ The MCP server and Claude Code plugin for [**Syntica**](https://syntica.io), the
|
|
|
16
16
|
|
|
17
17
|
You keep using the coding agent you already have. Syntica handles the repository, the machine, the certificate, the domain and the secrets.
|
|
18
18
|
|
|
19
|
-
**Works with [Claude Code](https://claude.com/claude-code), Codex, and Copilot CLI.** One MCP server, the same tools in each.
|
|
19
|
+
**Works with [Claude Code](https://claude.com/claude-code), Codex, Cursor, Windsurf, Gemini CLI and Copilot CLI.** One MCP server, the same tools in each.
|
|
20
20
|
|
|
21
21
|
[Website](https://syntica.io) · [Getting started](https://syntica.io/docs/getting-started) · [Agent setup guides](https://syntica.io/agents) · [Docs](https://syntica.io/docs) · [Pricing](https://syntica.io/pricing)
|
|
22
22
|
|
|
@@ -31,8 +31,8 @@ npx @syntica/mcp setup
|
|
|
31
31
|
Restart Claude Code, then:
|
|
32
32
|
|
|
33
33
|
```
|
|
34
|
-
/syntica
|
|
35
|
-
/syntica
|
|
34
|
+
/syntica:onboard # sign up or log in, create the application, push the first version
|
|
35
|
+
/syntica:deploy # deploy and get the live URL
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
That is the whole path from an empty folder to a running HTTPS application. Signing up happens inside the conversation: the onboard skill asks for your name, email and an organisation name, then verifies with a one-time email code. New to Syntica? The [getting started guide](https://syntica.io/docs/getting-started) walks it end to end, no coding experience needed.
|
|
@@ -56,9 +56,9 @@ Use something else when you need autoscaling, high availability, multi-region de
|
|
|
56
56
|
## Requirements
|
|
57
57
|
|
|
58
58
|
- **Node.js 18 or later**
|
|
59
|
-
- A **coding agent**: Claude Code, Codex, or Copilot CLI
|
|
60
|
-
- A **Syntica account**. Sign up at [syntica.io](https://syntica.io), or let `/syntica
|
|
61
|
-
- Your application needs a **`docker-compose.yml`** at the repository root. If you do not have one, the `/syntica
|
|
59
|
+
- A **coding agent**: Claude Code, Codex, Cursor, Windsurf, Gemini CLI or Copilot CLI
|
|
60
|
+
- A **Syntica account**. Sign up at [syntica.io](https://syntica.io), or let `/syntica:onboard` register you from the conversation. The platform is currently in closed beta, so access is granted per organisation.
|
|
61
|
+
- Your application needs a **`docker-compose.yml`** at the repository root. If you do not have one, the `/syntica:onboard` skill will scaffold it for you.
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
@@ -90,11 +90,21 @@ owner-only), removes the old `vibetocloud` plugin and marketplace registration,
|
|
|
90
90
|
`syntica` plugin in their place. It is safe to run more than once, and does nothing destructive
|
|
91
91
|
if it finds no old install.
|
|
92
92
|
|
|
93
|
-
### Using
|
|
93
|
+
### Using another agent
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
`setup` installs into every agent it finds, and each one can be named explicitly:
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
```bash
|
|
98
|
+
npx @syntica/mcp setup --agent copilot
|
|
99
|
+
npx @syntica/mcp setup --agent claude|codex|cursor|windsurf|gemini|copilot
|
|
100
|
+
npx @syntica/mcp setup --all
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
It merges into the agent's own MCP config rather than replacing it, backs up anything it
|
|
104
|
+
changes, and is safe to re-run. `npx @syntica/mcp teardown` removes it again.
|
|
105
|
+
|
|
106
|
+
If you would rather register the server by hand, it is plain stdio in every agent — for example
|
|
107
|
+
Codex (`~/.codex/config.toml`):
|
|
98
108
|
|
|
99
109
|
```toml
|
|
100
110
|
[mcp_servers.syntica]
|
|
@@ -102,7 +112,7 @@ command = "npx"
|
|
|
102
112
|
args = ["-y", "@syntica/mcp"]
|
|
103
113
|
```
|
|
104
114
|
|
|
105
|
-
|
|
115
|
+
or Copilot CLI (`~/.copilot/mcp-config.json`):
|
|
106
116
|
|
|
107
117
|
```json
|
|
108
118
|
{
|
|
@@ -140,7 +150,7 @@ npx @syntica/mcp generate-mcp-json # regenerate the tool manifest
|
|
|
140
150
|
The shortest path, once the plugin is installed:
|
|
141
151
|
|
|
142
152
|
```
|
|
143
|
-
/syntica
|
|
153
|
+
/syntica:onboard
|
|
144
154
|
```
|
|
145
155
|
|
|
146
156
|
The skill walks through it. Under the hood the sequence is:
|
|
@@ -153,7 +163,7 @@ The skill walks through it. Under the hood the sequence is:
|
|
|
153
163
|
6. `org_deploy` — returns a build ID.
|
|
154
164
|
7. `org_deploy_status` — poll until `success` or `failed`. On success you get the live URL.
|
|
155
165
|
|
|
156
|
-
Afterwards, `/syntica
|
|
166
|
+
Afterwards, `/syntica:deploy` redeploys and `/syntica:debug` inspects a running application.
|
|
157
167
|
|
|
158
168
|
---
|
|
159
169
|
|
|
@@ -163,10 +173,10 @@ Installed alongside the MCP server:
|
|
|
163
173
|
|
|
164
174
|
| Command | What it does |
|
|
165
175
|
|---|---|
|
|
166
|
-
| `/syntica
|
|
167
|
-
| `/syntica
|
|
168
|
-
| `/syntica
|
|
169
|
-
| `/syntica
|
|
176
|
+
| `/syntica:onboard` | Log in, create or connect an application, set up the git remote, scaffold `docker-compose.yml`, configure secrets and instance size, push |
|
|
177
|
+
| `/syntica:deploy` | Push the current branch, deploy, poll until finished, report the live URL or the failure |
|
|
178
|
+
| `/syntica:manage` | View the bill, resize an environment, delete, restore or rename an application |
|
|
179
|
+
| `/syntica:debug` | List running services, tail logs, restart a service |
|
|
170
180
|
|
|
171
181
|
---
|
|
172
182
|
|
package/dist/index.js
CHANGED
|
@@ -57629,17 +57629,46 @@ var gemini = {
|
|
|
57629
57629
|
return removed.ok ? { ok: true, detail: "MCP server and instructions removed" } : removed;
|
|
57630
57630
|
}
|
|
57631
57631
|
};
|
|
57632
|
-
var
|
|
57632
|
+
var COPILOT_CONFIG = (0, import_path.join)(HOME, ".copilot", "mcp-config.json");
|
|
57633
|
+
var COPILOT_RULES = (0, import_path.join)(HOME, ".copilot", "copilot-instructions.md");
|
|
57634
|
+
var copilot = {
|
|
57635
|
+
name: "copilot",
|
|
57636
|
+
label: "GitHub Copilot CLI",
|
|
57637
|
+
detect: () => onPath("copilot") || (0, import_fs.existsSync)((0, import_path.join)(HOME, ".copilot")),
|
|
57638
|
+
install: () => {
|
|
57639
|
+
const merged = applyMerge(
|
|
57640
|
+
COPILOT_CONFIG,
|
|
57641
|
+
mergeJsonServer(readIfExists(COPILOT_CONFIG), SERVER_KEY, "mcpServers", SERVER),
|
|
57642
|
+
"MCP server"
|
|
57643
|
+
);
|
|
57644
|
+
if (!merged.ok) {
|
|
57645
|
+
return merged;
|
|
57646
|
+
}
|
|
57647
|
+
const rules = applyMerge(COPILOT_RULES, upsertMarkdownSection(readIfExists(COPILOT_RULES), skillPointerMarkdown()), "skill instructions");
|
|
57648
|
+
return rules.ok ? { ok: true, detail: `${merged.detail}; ${rules.detail}` } : rules;
|
|
57649
|
+
},
|
|
57650
|
+
teardown: () => {
|
|
57651
|
+
const removed = applyMerge(
|
|
57652
|
+
COPILOT_CONFIG,
|
|
57653
|
+
removeJsonServer(readIfExists(COPILOT_CONFIG), SERVER_KEY, "mcpServers"),
|
|
57654
|
+
"MCP server"
|
|
57655
|
+
);
|
|
57656
|
+
applyMerge(COPILOT_RULES, removeMarkdownSection(readIfExists(COPILOT_RULES)), "skill instructions");
|
|
57657
|
+
return removed.ok ? { ok: true, detail: "MCP server and instructions removed" } : removed;
|
|
57658
|
+
}
|
|
57659
|
+
};
|
|
57660
|
+
var ADAPTERS = [claude, codex, cursor, windsurf, gemini, copilot];
|
|
57633
57661
|
function detectAgents() {
|
|
57634
57662
|
return ADAPTERS.filter((a) => a.detect());
|
|
57635
57663
|
}
|
|
57664
|
+
var POINTER_PREFIX = "syntica-";
|
|
57636
57665
|
var SKILLS = [
|
|
57637
|
-
{ name: "
|
|
57638
|
-
{ name: "
|
|
57639
|
-
{ name: "
|
|
57640
|
-
{ name: "
|
|
57641
|
-
{ name: "
|
|
57642
|
-
{ name: "
|
|
57666
|
+
{ name: "onboard", summary: "set an existing project up on Syntica for the first time" },
|
|
57667
|
+
{ name: "deploy", summary: "push code and deploy an application" },
|
|
57668
|
+
{ name: "debug", summary: "inspect a running application: logs, containers, database" },
|
|
57669
|
+
{ name: "connections", summary: "connect third-party services to an application" },
|
|
57670
|
+
{ name: "manage", summary: "manage applications, environments and machine sizes" },
|
|
57671
|
+
{ name: "security", summary: "review an application for security problems before shipping" },
|
|
57643
57672
|
{ name: "pre-commit-validation", summary: "run the platform validation prompts against staged changes" }
|
|
57644
57673
|
];
|
|
57645
57674
|
function writeSkillPointers(dir, extension) {
|
|
@@ -57657,14 +57686,14 @@ function writeSkillPointers(dir, extension) {
|
|
|
57657
57686
|
"It uses the syntica MCP tools, which are registered in this agent already.",
|
|
57658
57687
|
""
|
|
57659
57688
|
].join("\n");
|
|
57660
|
-
(0, import_fs.writeFileSync)((0, import_path.join)(dir, `${skill.name}${extension}`), body, "utf8");
|
|
57689
|
+
(0, import_fs.writeFileSync)((0, import_path.join)(dir, `${POINTER_PREFIX}${skill.name}${extension}`), body, "utf8");
|
|
57661
57690
|
written += 1;
|
|
57662
57691
|
}
|
|
57663
57692
|
return written;
|
|
57664
57693
|
}
|
|
57665
57694
|
function removeSkillPointers(dir, extension) {
|
|
57666
57695
|
for (const skill of SKILLS) {
|
|
57667
|
-
(0, import_fs.rmSync)((0, import_path.join)(dir, `${skill.name}${extension}`), { force: true });
|
|
57696
|
+
(0, import_fs.rmSync)((0, import_path.join)(dir, `${POINTER_PREFIX}${skill.name}${extension}`), { force: true });
|
|
57668
57697
|
}
|
|
57669
57698
|
}
|
|
57670
57699
|
function skillPointerMarkdown() {
|
|
@@ -57764,12 +57793,12 @@ function runSetup(argv = []) {
|
|
|
57764
57793
|
console.log("");
|
|
57765
57794
|
console.log(failures === 0 ? "Setup complete. Restart your agent to pick up the tools." : "Setup finished with warnings above.");
|
|
57766
57795
|
if (chosen.some((a) => a.name === "claude")) {
|
|
57767
|
-
console.log("In Claude Code, start with /syntica
|
|
57796
|
+
console.log("In Claude Code, start with /syntica:onboard.");
|
|
57768
57797
|
} else {
|
|
57769
|
-
console.log("Then ask it to set your project up on Syntica \u2014 it will use the
|
|
57798
|
+
console.log("Then ask it to set your project up on Syntica \u2014 it will use the onboard skill.");
|
|
57770
57799
|
console.log("");
|
|
57771
57800
|
console.log("Tip: Claude Code gets the fullest version of this \u2014 the skills become real");
|
|
57772
|
-
console.log(" commands there (/syntica
|
|
57801
|
+
console.log(" commands there (/syntica:onboard, /syntica:deploy) rather than files your");
|
|
57773
57802
|
console.log(" agent has to be pointed at. Install it and re-run setup to add it.");
|
|
57774
57803
|
}
|
|
57775
57804
|
console.log("To remove everything later: npx @syntica/mcp teardown");
|
|
@@ -58008,7 +58037,11 @@ function orgIdOfToken(token) {
|
|
|
58008
58037
|
return null;
|
|
58009
58038
|
}
|
|
58010
58039
|
}
|
|
58011
|
-
|
|
58040
|
+
var ORG_SWITCHING_TOOLS = /* @__PURE__ */ new Set(["org_select"]);
|
|
58041
|
+
function orgScopeMismatch(toolName, args) {
|
|
58042
|
+
if (ORG_SWITCHING_TOOLS.has(toolName)) {
|
|
58043
|
+
return null;
|
|
58044
|
+
}
|
|
58012
58045
|
const token = args["token"];
|
|
58013
58046
|
const requestedOrgId = args["orgId"];
|
|
58014
58047
|
if (typeof token !== "string" || typeof requestedOrgId !== "string" || requestedOrgId === "") {
|
|
@@ -59061,6 +59094,24 @@ var ApplicationClient = class {
|
|
|
59061
59094
|
get internalHeaders() {
|
|
59062
59095
|
return this.internalKey ? { "x-internal-secret": this.internalKey } : {};
|
|
59063
59096
|
}
|
|
59097
|
+
/**
|
|
59098
|
+
* The machine sizes, so callers can say "Small" where a row says "t3.micro".
|
|
59099
|
+
*
|
|
59100
|
+
* A tier's `name` is its Stripe join key and appears in every limit and
|
|
59101
|
+
* count; `displayName` is the only form a customer should ever be shown.
|
|
59102
|
+
* Returns [] on failure — a caller that cannot get the friendly name should
|
|
59103
|
+
* fall back to the key, not fail.
|
|
59104
|
+
*/
|
|
59105
|
+
async listNodeTiers() {
|
|
59106
|
+
const res = await fetch(`${this.baseUrl}/node-tiers`, {
|
|
59107
|
+
headers: { ...this.authHeaders, ...this.internalHeaders }
|
|
59108
|
+
});
|
|
59109
|
+
if (!res.ok) {
|
|
59110
|
+
return [];
|
|
59111
|
+
}
|
|
59112
|
+
const json = await res.json();
|
|
59113
|
+
return json.data ?? [];
|
|
59114
|
+
}
|
|
59064
59115
|
async listApplications(orgId) {
|
|
59065
59116
|
const res = await fetch(`${this.baseUrl}/applications?orgId=${encodeURIComponent(orgId)}`, {
|
|
59066
59117
|
headers: this.authHeaders
|
|
@@ -59406,6 +59457,20 @@ var AccountClient = class {
|
|
|
59406
59457
|
(d) => d !== null
|
|
59407
59458
|
);
|
|
59408
59459
|
}
|
|
59460
|
+
/**
|
|
59461
|
+
* Re-confirms a billing lapse directly against Stripe/payment-method state,
|
|
59462
|
+
* bypassing every persisted status flag — for a destructive automated caller
|
|
59463
|
+
* (deploy-service's suspension-termination sweep, #666) that must not trust
|
|
59464
|
+
* a possibly-stale local status before destroying infrastructure. Returns
|
|
59465
|
+
* null on any request failure — callers must treat that the same as an
|
|
59466
|
+
* unconfirmed lapse (refuse to act), never as confirmation.
|
|
59467
|
+
*/
|
|
59468
|
+
getLiveBillingLapse(orgId) {
|
|
59469
|
+
return this.request(
|
|
59470
|
+
"GET",
|
|
59471
|
+
`/subscription/internal/live-billing-lapse/${encodeURIComponent(orgId)}`
|
|
59472
|
+
);
|
|
59473
|
+
}
|
|
59409
59474
|
/**
|
|
59410
59475
|
* GDPR org erasure. Cancels the subscription and anonymises the Stripe customer
|
|
59411
59476
|
* (name/email scrubbed) but **retains** the customer + its invoices (NL tax law,
|
|
@@ -59660,6 +59725,22 @@ var NOTIFICATION_TYPES = {
|
|
|
59660
59725
|
body: (x) => v(x, "summary"),
|
|
59661
59726
|
target: () => null
|
|
59662
59727
|
},
|
|
59728
|
+
// The welcome for an organisation an admin opened on somebody's behalf. Its
|
|
59729
|
+
// job is to be the mail that arrives before the person has any reason to
|
|
59730
|
+
// expect one: it has to say who made it, what it allows and when it ends,
|
|
59731
|
+
// because the recipient never filled in a signup form to learn any of that.
|
|
59732
|
+
"beta.granted": {
|
|
59733
|
+
key: "beta.granted",
|
|
59734
|
+
category: "billing",
|
|
59735
|
+
severity: "info",
|
|
59736
|
+
audience: "admins",
|
|
59737
|
+
inAppDefault: true,
|
|
59738
|
+
emailDefault: true,
|
|
59739
|
+
emailTemplateId: "beta-granted",
|
|
59740
|
+
title: (x) => `Your ${v(x, "orgName")} beta account is ready`,
|
|
59741
|
+
body: (x) => `A beta account has been set up for you on Syntica. It runs until ${v(x, "endsOn")} and can run ${v(x, "allowance")}. Sign in with this email address to get started.`,
|
|
59742
|
+
target: () => "/"
|
|
59743
|
+
},
|
|
59663
59744
|
// A demo that stops without warning reads as the platform breaking, and the
|
|
59664
59745
|
// person who could have renewed it hears about it from a colleague asking why
|
|
59665
59746
|
// the site is down.
|
|
@@ -59668,12 +59749,12 @@ var NOTIFICATION_TYPES = {
|
|
|
59668
59749
|
category: "billing",
|
|
59669
59750
|
severity: "warning",
|
|
59670
59751
|
audience: "admins",
|
|
59671
|
-
//
|
|
59672
|
-
//
|
|
59673
|
-
//
|
|
59752
|
+
// Email as well as in-app: the person who can renew a demo is often not
|
|
59753
|
+
// the person sitting in the console, and a warning nobody sees is the same
|
|
59754
|
+
// as no warning. The template ships in scripts/contentful/email-templates.json.
|
|
59674
59755
|
inAppDefault: true,
|
|
59675
|
-
emailDefault:
|
|
59676
|
-
emailTemplateId:
|
|
59756
|
+
emailDefault: true,
|
|
59757
|
+
emailTemplateId: "beta-ending",
|
|
59677
59758
|
title: (x) => `Your beta ends in ${v(x, "days")} days`,
|
|
59678
59759
|
body: (x) => `On ${v(x, "endsOn")} your applications stop and your data is kept for two months. Contact us to keep going.`,
|
|
59679
59760
|
target: () => "/settings/billing"
|
|
@@ -61262,7 +61343,7 @@ async function handleAppRestartInstance(args) {
|
|
|
61262
61343
|
return failFromResponse(res, "Instance restart failed");
|
|
61263
61344
|
}
|
|
61264
61345
|
return {
|
|
61265
|
-
content: [{ type: "text", text: "Instance restart initiated. Containers will be up shortly. Run /syntica
|
|
61346
|
+
content: [{ type: "text", text: "Instance restart initiated. Containers will be up shortly. Run /syntica:deploy to deploy your latest code once the instance is running." }]
|
|
61266
61347
|
};
|
|
61267
61348
|
}
|
|
61268
61349
|
var NODE_ACTION_SCHEMA = {
|
|
@@ -62149,7 +62230,7 @@ var orgListTemplatesTool = {
|
|
|
62149
62230
|
var orgApplyTemplateTool = {
|
|
62150
62231
|
name: "org_apply_template",
|
|
62151
62232
|
description: "Overwrite an existing application repository with a fresh template scaffold. All existing code in the repository will be replaced.",
|
|
62152
|
-
annotations: { readOnlyHint: false, destructiveHint:
|
|
62233
|
+
annotations: { readOnlyHint: false, destructiveHint: true },
|
|
62153
62234
|
inputSchema: {
|
|
62154
62235
|
type: "object",
|
|
62155
62236
|
properties: {
|
|
@@ -62676,7 +62757,7 @@ function createServer() {
|
|
|
62676
62757
|
hint: "Check the arguments against the tool schema and try again."
|
|
62677
62758
|
});
|
|
62678
62759
|
}
|
|
62679
|
-
const scopeMismatch = orgScopeMismatch(args);
|
|
62760
|
+
const scopeMismatch = orgScopeMismatch(name, args);
|
|
62680
62761
|
if (scopeMismatch) {
|
|
62681
62762
|
return fail({
|
|
62682
62763
|
code: "ORG_SCOPE_MISMATCH",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syntica/mcp",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "MCP server and skills for deploying applications on Syntica from your coding agent (Claude Code, Codex, Cursor, Windsurf, Gemini)",
|
|
3
|
+
"version": "2.2.2",
|
|
4
|
+
"description": "MCP server and skills for deploying applications on Syntica from your coding agent (Claude Code, Codex, Cursor, Windsurf, Gemini, Copilot CLI)",
|
|
5
5
|
"mcpName": "io.syntica/mcp",
|
|
6
6
|
"bin": {
|
|
7
7
|
"syntica-mcp": "./dist/index.js"
|
|
@@ -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.2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"mcpServers": {
|
|
6
6
|
"syntica": {
|
|
7
7
|
"command": "npx",
|
package/skills/README.md
CHANGED
|
@@ -19,8 +19,8 @@ Restart your agent afterwards and you're connected.
|
|
|
19
19
|
|
|
20
20
|
The same command works with Codex, Cursor, Windsurf and Gemini, but **Claude Code
|
|
21
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
|
|
23
|
-
`/syntica
|
|
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
24
|
In practice that means it knows the whole deploy flow without being reminded, and
|
|
25
25
|
it is the combination this integration is tested against first.
|
|
26
26
|
|
|
@@ -66,20 +66,20 @@ writes it for you.
|
|
|
66
66
|
|
|
67
67
|
| Command | Use it when |
|
|
68
68
|
|---|---|
|
|
69
|
-
| `/syntica
|
|
70
|
-
| `/syntica
|
|
71
|
-
| `/syntica
|
|
72
|
-
| `/syntica
|
|
73
|
-
| `/syntica
|
|
69
|
+
| `/syntica:onboard` | You have a project on your machine and want it online for the first time. Logs you in, creates the application, sets up the git remote, scaffolds `docker-compose.yml` if it's missing, configures secrets and instance size, and pushes |
|
|
70
|
+
| `/syntica:deploy` | You've changed something and want it live. Pushes the current branch, deploys, waits, and tells you the URL or what failed |
|
|
71
|
+
| `/syntica:debug` | Something is broken. Lists running services with their status, tails logs, restarts a service |
|
|
72
|
+
| `/syntica:connections` | Your app needs to reach something outside itself — mail, payments, chat, files, sign-in. Fetches what your organisation granted this environment and writes the code against the injected credentials, so you never handle a key |
|
|
73
|
+
| `/syntica:manage` | Housekeeping: check the bill, resize an environment, rename an application, delete one (recoverable for about 30 days), or restore one you deleted |
|
|
74
74
|
|
|
75
75
|
Destructive and billing actions always confirm before doing anything.
|
|
76
76
|
|
|
77
77
|
## Typical workflow
|
|
78
78
|
|
|
79
79
|
```
|
|
80
|
-
/syntica
|
|
81
|
-
/syntica
|
|
82
|
-
/syntica
|
|
80
|
+
/syntica:onboard # once per project
|
|
81
|
+
/syntica:deploy # every time you want your changes live
|
|
82
|
+
/syntica:debug # when something isn't working
|
|
83
83
|
```
|
|
84
84
|
|
|
85
85
|
Between deployments you can ask in plain language — "restart the api service", "show me the last 200 log lines from the worker", "what is this costing me" — and the MCP tools handle it without a slash command.
|
|
@@ -91,9 +91,9 @@ The skills split their state in two:
|
|
|
91
91
|
- `~/.syntica/credentials.json` (mode `0600`, outside any repository) — your session token and org ID.
|
|
92
92
|
- `.syntica/config.json` in your project root (gitignored) — which application, environment and git remote this project uses. No secret is written here.
|
|
93
93
|
|
|
94
|
-
The token is kept out of the project directory on purpose: that directory is the one an agent reads on every invocation, so a token stored in it is one prompt-injected "read this file" away from being exfiltrated (#488). Running `/syntica
|
|
94
|
+
The token is kept out of the project directory on purpose: that directory is the one an agent reads on every invocation, so a token stored in it is one prompt-injected "read this file" away from being exfiltrated (#488). Running `/syntica:onboard` once on an older setup migrates an existing token out of `.syntica/config.json` for you.
|
|
95
95
|
|
|
96
|
-
**This file is a credential.** `/syntica
|
|
96
|
+
**This file is a credential.** `/syntica:onboard` adds it to `.gitignore` automatically — leave that in place and never commit it. Run `/syntica:onboard` again to re-authenticate or switch application.
|
|
97
97
|
|
|
98
98
|
## What Syntica runs
|
|
99
99
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: connections
|
|
3
3
|
description: Use BEFORE writing or changing any code that talks to a system outside the application — sending email, taking a payment, posting to a chat channel, reading or writing files, signing users in, or calling any vendor API. Also use whenever you are about to ask the user for an API key, a token, a client secret, a webhook URL or an SMTP password, or to add one to a .env file. A Syntica-hosted application receives those credentials as environment variables injected at deploy time and must never hold one itself; this skill fetches what this environment was actually granted so you write against it instead of inventing your own configuration.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Talking to an external system from a Syntica application
|
|
7
7
|
|
|
8
|
-
Announce at start: "I'm using
|
|
8
|
+
Announce at start: "I'm using connections to check what this app is connected to."
|
|
9
9
|
|
|
10
10
|
The organisation registers each system once — a mailbox, a Stripe account, a Slack
|
|
11
11
|
workspace, a SharePoint site — and grants it to an application **per environment**.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: debug
|
|
3
3
|
description: Diagnose a deployed application on Syntica — list running services with status and resource use, search retained logs and read errors from after a crash or restart, tail live output, restart a service. Use when an app deployed to Syntica is down, erroring, returning 500s, crash-looping or behaving unexpectedly, or when the user asks to check logs or restart a service.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Syntica Debug
|
|
7
7
|
|
|
8
|
-
Announce at start: "I'm using
|
|
8
|
+
Announce at start: "I'm using debug to inspect your application."
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -13,20 +13,20 @@ Announce at start: "I'm using syntica-debug to inspect your application."
|
|
|
13
13
|
|
|
14
14
|
Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
|
|
15
15
|
`.syntica/config.json` (project state) by reading it. The token is deliberately kept
|
|
16
|
-
out of the project directory — see `/syntica
|
|
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
|
|
19
19
|
`token` field, it is an older setup: use that token for this run and tell the user to run
|
|
20
|
-
`/syntica
|
|
20
|
+
`/syntica:onboard` once, which moves it out of the repository.
|
|
21
21
|
|
|
22
22
|
If neither file yields a `token`, or `appId`/`orgId` are empty, stop and tell the user:
|
|
23
|
-
"Run `/syntica
|
|
23
|
+
"Run `/syntica:onboard` first to set up your project."
|
|
24
24
|
|
|
25
25
|
Verify the token is still valid by calling `org_authenticate` with:
|
|
26
26
|
```json
|
|
27
27
|
{ "token": "<token>" }
|
|
28
28
|
```
|
|
29
|
-
If it fails, tell the user: "Your session has expired. Run `/syntica
|
|
29
|
+
If it fails, tell the user: "Your session has expired. Run `/syntica:onboard` to sign in again."
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
@@ -50,7 +50,7 @@ api running 2.1% 128 MB 2h 14m
|
|
|
50
50
|
worker stopped — — —
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
If no services are returned, tell the user: "No services are running in this environment. Try deploying first with `/syntica
|
|
53
|
+
If no services are returned, tell the user: "No services are running in this environment. Try deploying first with `/syntica:deploy`."
|
|
54
54
|
|
|
55
55
|
---
|
|
56
56
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: deploy
|
|
3
3
|
description: Deploy an application to Syntica — push the current branch, trigger the build, poll until it finishes, and report the live URL or the failure. Use when the user wants to deploy, ship, release, publish or push changes live for a project already onboarded to Syntica.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Syntica Deploy
|
|
7
7
|
|
|
8
|
-
Announce at start: "I'm using
|
|
8
|
+
Announce at start: "I'm using deploy to deploy your application."
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -13,14 +13,14 @@ Announce at start: "I'm using syntica-deploy to deploy your application."
|
|
|
13
13
|
|
|
14
14
|
Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
|
|
15
15
|
`.syntica/config.json` (project state) by reading it. The token is deliberately kept
|
|
16
|
-
out of the project directory — see `/syntica
|
|
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
|
|
19
19
|
`token` field, it is an older setup: use that token for this run and tell the user to run
|
|
20
|
-
`/syntica
|
|
20
|
+
`/syntica:onboard` once, which moves it out of the repository.
|
|
21
21
|
|
|
22
22
|
If neither file yields a `token`, or `appId`/`orgId` are empty, stop and tell the user:
|
|
23
|
-
"Run `/syntica
|
|
23
|
+
"Run `/syntica:onboard` first to set up your project."
|
|
24
24
|
|
|
25
25
|
**Token freshness check:**
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ Decode the JWT payload to check expiry: split the token by `.`, take the second
|
|
|
28
28
|
|
|
29
29
|
If `exp - (Date.now() / 1000) < 3600` (less than 1 hour remaining):
|
|
30
30
|
1. Call `org_refresh_token` with `{ "token": "<current token>" }`.
|
|
31
|
-
2. If successful: write the new token back to `~/.syntica/credentials.json` (keep `orgId` as it is) and use it for all subsequent calls. Use Bash with `umask 077`, as `/syntica
|
|
31
|
+
2. If successful: write the new token back to `~/.syntica/credentials.json` (keep `orgId` as it is) and use it for all subsequent calls. Use Bash with `umask 077`, as `/syntica:onboard` does, so the refreshed file keeps the same private permissions:
|
|
32
32
|
```bash
|
|
33
33
|
(umask 077 && cat > ~/.syntica/credentials.json <<'JSON'
|
|
34
34
|
{ "token": "<new token>", "orgId": "<orgId>" }
|
|
@@ -36,11 +36,11 @@ If `exp - (Date.now() / 1000) < 3600` (less than 1 hour remaining):
|
|
|
36
36
|
)
|
|
37
37
|
```
|
|
38
38
|
If the write fails, warn the user and carry on with the new token in memory for this run.
|
|
39
|
-
3. If it fails: warn the user — "Could not refresh your session token. If API calls fail with an auth error, run `/syntica
|
|
39
|
+
3. If it fails: warn the user — "Could not refresh your session token. If API calls fail with an auth error, run `/syntica:onboard` to sign in again."
|
|
40
40
|
|
|
41
41
|
If more than 1 hour remains, or if the token cannot be decoded, proceed without refreshing.
|
|
42
42
|
|
|
43
|
-
Do **not** call `org_authenticate` here. The token will be validated by the first real API call; if it is expired the call will return an error, at which point tell the user: "Your session has expired. Run `/syntica
|
|
43
|
+
Do **not** call `org_authenticate` here. The token will be validated by the first real API call; if it is expired the call will return an error, at which point tell the user: "Your session has expired. Run `/syntica:onboard` to sign in again."
|
|
44
44
|
|
|
45
45
|
---
|
|
46
46
|
|
|
@@ -141,13 +141,13 @@ The `failureReason` for the "Deploying your application" step contains the `dock
|
|
|
141
141
|
- **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.
|
|
142
142
|
- **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."
|
|
143
143
|
- **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."
|
|
144
|
-
- **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
|
|
144
|
+
- **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`.
|
|
145
145
|
|
|
146
146
|
After explaining the failure, use the AskUserQuestion tool with options `["Yes — help me fix it", "No — I'll investigate myself"]` to ask: "Would you like me to help fix the issue now?"
|
|
147
147
|
|
|
148
|
-
If yes: read the relevant file (`Dockerfile`, `docker-compose.yml`, or a source file), propose a fix, and tell the user to run `/syntica
|
|
148
|
+
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.
|
|
149
149
|
|
|
150
|
-
If no, or the failure does not match the above categories: tell the user: "Run `/syntica
|
|
150
|
+
If no, or the failure does not match the above categories: tell the user: "Run `/syntica:debug` to tail live logs and diagnose further."
|
|
151
151
|
|
|
152
152
|
**On `cancelled`:**
|
|
153
153
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: manage
|
|
3
3
|
description: Maintenance for your Syntica organisation — use when the user wants to check what they are being charged, resize or change an environment's machine, or delete, restore or rename an application. Covers: view the current bill, resize an environment's EC2, delete an application (with a recovery window), restore a deleted app, or rename an app. Enabling paid environments and billing changes link out to the web. Destructive and billing actions always confirm first.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Syntica Manage
|
|
7
7
|
|
|
8
|
-
Announce at start: "I'm using
|
|
8
|
+
Announce at start: "I'm using manage."
|
|
9
9
|
|
|
10
10
|
Maintenance operations on syntica. Today this covers **view billing**, **delete**, **restore**, and **rename**. (Adding/removing paid environments is planned but not yet here — for now use the dashboard for that.)
|
|
11
11
|
|
|
@@ -15,16 +15,16 @@ Maintenance operations on syntica. Today this covers **view billing**, **delete*
|
|
|
15
15
|
|
|
16
16
|
Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
|
|
17
17
|
`.syntica/config.json` (project state) by reading it. The token is deliberately kept
|
|
18
|
-
out of the project directory — see `/syntica
|
|
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
|
|
21
21
|
`token` field, it is an older setup: use that token for this run and tell the user to run
|
|
22
|
-
`/syntica
|
|
22
|
+
`/syntica:onboard` once, which moves it out of the repository.
|
|
23
23
|
|
|
24
24
|
If neither file yields a `token`, or `orgId` is empty, stop and tell the user:
|
|
25
|
-
"Run `/syntica
|
|
25
|
+
"Run `/syntica:onboard` first to set up your project."
|
|
26
26
|
|
|
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
|
|
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
29
|
### If the user has more than one organisation
|
|
30
30
|
|
|
@@ -118,16 +118,16 @@ Then tell them what to do there:
|
|
|
118
118
|
2. **Show the disclaimer** verbatim, filling in the app name:
|
|
119
119
|
|
|
120
120
|
> ⚠️ Deleting **<name>** will:
|
|
121
|
-
> - Move its repository to trash. You can restore it for about **30 days** with `/syntica
|
|
121
|
+
> - Move its repository to trash. You can restore it for about **30 days** with `/syntica:manage` → Restore.
|
|
122
122
|
> - After that window it is **permanently purged and cannot be recovered**.
|
|
123
123
|
> - Free the application's billing slot.
|
|
124
|
-
> - **NOT** stop or destroy any deployed environments/instances — if you no longer want to be billed for them, stop them first (`/syntica
|
|
124
|
+
> - **NOT** stop or destroy any deployed environments/instances — if you no longer want to be billed for them, stop them first (`/syntica:debug` or the dashboard).
|
|
125
125
|
|
|
126
126
|
3. **Confirm.** Use the AskUserQuestion tool with options `["Yes — delete it", "No — cancel"]` to ask: "Delete application <name>? This can be undone within ~30 days." If the user cancels, stop and confirm nothing was changed.
|
|
127
127
|
|
|
128
128
|
4. **Delete.** Call `app_delete` with `{ token, applicationId }`.
|
|
129
129
|
|
|
130
|
-
5. **Report.** On success tell the user: "🗑️ **<name>** deleted. Restore it within ~30 days with `/syntica
|
|
130
|
+
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.
|
|
131
131
|
|
|
132
132
|
---
|
|
133
133
|
|
|
@@ -142,7 +142,7 @@ Then tell them what to do there:
|
|
|
142
142
|
3. **Restore.** Call `app_restore` with `{ token, applicationId }` for the chosen app.
|
|
143
143
|
|
|
144
144
|
4. **Report.**
|
|
145
|
-
- On success: "♻️ **<name>** restored." (The repository and app are back; redeploy with `/syntica
|
|
145
|
+
- On success: "♻️ **<name>** restored." (The repository and app are back; redeploy with `/syntica:deploy` if needed.)
|
|
146
146
|
- 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.
|
|
147
147
|
- If the error is `DELETED_APP_NOT_FOUND`: it may already be restored or purged; re-run the list.
|
|
148
148
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description: "Set up an existing project on Syntica for the first time — authenticate by email code, create the application, add the git remote, scaffold docker-compose.yml if missing, configure secrets and instance size, and push. Use when the user wants to get a local project online, host or deploy it somewhere for the first time, or mentions Syntica setup. Run this before
|
|
2
|
+
name: onboard
|
|
3
|
+
description: "Set up an existing project on Syntica for the first time — authenticate by email code, create the application, add the git remote, scaffold docker-compose.yml if missing, configure secrets and instance size, and push. Use when the user wants to get a local project online, host or deploy it somewhere for the first time, or mentions Syntica setup. Run this before deploy."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Syntica Onboard
|
|
7
7
|
|
|
8
|
-
Announce at start: "I'm using
|
|
8
|
+
Announce at start: "I'm using onboard to set up your project on syntica."
|
|
9
9
|
|
|
10
10
|
## Prerequisites
|
|
11
11
|
|
|
@@ -557,7 +557,7 @@ If the push fails due to no upstream tracking branch, run:
|
|
|
557
557
|
git push --set-upstream <remote from config> <current branch>
|
|
558
558
|
```
|
|
559
559
|
|
|
560
|
-
Tell the user: "✅ Your code is on syntica. Run `/syntica
|
|
560
|
+
Tell the user: "✅ Your code is on syntica. Run `/syntica:deploy` to trigger your first deployment."
|
|
561
561
|
|
|
562
562
|
---
|
|
563
563
|
|
|
@@ -577,8 +577,8 @@ If it does not exist, or exists but has no Syntica section, append the following
|
|
|
577
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`.
|
|
578
578
|
|
|
579
579
|
Use the Syntica MCP skills to work with the project:
|
|
580
|
-
- Push code and deploy: the
|
|
581
|
-
- Debug running services: the
|
|
580
|
+
- Push code and deploy: the deploy skill
|
|
581
|
+
- Debug running services: the debug skill
|
|
582
582
|
|
|
583
583
|
All interaction with running containers happens through the MCP tools, not locally.
|
|
584
584
|
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: security
|
|
3
3
|
description: Manage your organisation's validation/security prompts on syntica — view what runs, and add/edit/delete your own custom prompts at organisation, application, or environment scope. Use when the user wants to see, add, change, or remove validation prompts (not to run them — that's pre-commit-validation).
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Syntica Security — Prompt Management
|
|
7
7
|
|
|
8
|
-
Announce at start: "I'm using
|
|
8
|
+
Announce at start: "I'm using security to manage your validation prompts."
|
|
9
9
|
|
|
10
10
|
This skill **manages** the prompt registry. To actually run the checks against a
|
|
11
11
|
diff, use `pre-commit-validation`.
|