@syntica/mcp 2.2.1 → 2.3.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntica/mcp",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
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": {
@@ -30,7 +30,7 @@
30
30
  "//deps": "Runtime deps of the DOCKER entrypoint, which runs the unbundled nest build (see infra/docker/mcp-server.Dockerfile — its runtime stage installs with --prod, so devDependencies are absent there). The published npm tarball does not need them: bundle.mjs inlines everything and `files` ships only dist/. Keep @vibetocloud/shared in devDependencies — `workspace:*` in dependencies makes the tarball uninstallable (EUNSUPPORTEDPROTOCOL).",
31
31
  "dependencies": {
32
32
  "@modelcontextprotocol/sdk": "^1.0.0",
33
- "express": "^4.21.2"
33
+ "express": "^5.2.1"
34
34
  },
35
35
  "devDependencies": {
36
36
  "esbuild": "^0.28.0",
@@ -40,7 +40,7 @@
40
40
  "dev": "pnpm -w exec tsx apps/mcp-server/src/index.ts",
41
41
  "dev:http": "pnpm -w exec tsx apps/mcp-server/src/index.ts http",
42
42
  "build": "pnpm -w exec nest build mcp-server && node scripts/generate-mcp-json.mjs",
43
- "build:npm": "node apps/mcp-server/scripts/bundle.mjs",
43
+ "build:npm": "node scripts/bundle.mjs",
44
44
  "lint": "pnpm -w exec eslint apps/mcp-server libs/shared"
45
45
  }
46
46
  }
@@ -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.2.1",
11
+ "version": "2.3.0",
12
12
  "source": "./"
13
13
  }
14
14
  ]
@@ -1,7 +1,12 @@
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.1",
4
+ "version": "2.3.0",
5
+ "author": {
6
+ "name": "Syntica",
7
+ "email": "support@syntica.io",
8
+ "url": "https://syntica.io"
9
+ },
5
10
  "mcpServers": {
6
11
  "syntica": {
7
12
  "command": "npx",
@@ -53,6 +53,13 @@ for credentials. A grant deliberately absent in `dev` usually means someone
53
53
  decided a preview must not touch the real system, so say what you are about to
54
54
  request before requesting it.
55
55
 
56
+ **Mail is not only a credential question.** Without an SMTP grant the node drops
57
+ outbound connections to ports 25, 465 and 587 from containers, so an application
58
+ that brings its own SMTP password does not merely go unconfigured — it hangs at
59
+ the TCP stage and times out, against every provider. Writing mail code without
60
+ the grant produces an application that cannot send, and the reason is invisible
61
+ from inside it. Ask for the grant first.
62
+
56
63
  ## Step 3 — Write against the injected variables
57
64
 
58
65
  Read them from the environment. Use the ordinary library for the language and the
@@ -65,7 +72,9 @@ Two that are worth knowing:
65
72
  client-credentials token from `login.microsoftonline.com`, then a POST to
66
73
  `https://graph.microsoft.com/v1.0/users/{MAIL_FROM}/sendMail`.
67
74
  - **SMTP** takes `SMTP_SECURE` as the string `"true"` or `"false"` — implicit TLS
68
- on 465, STARTTLS otherwise.
75
+ on 465, STARTTLS otherwise. Unlike every other connector, SMTP code does not
76
+ work at all without the grant — the node drops the connection (see Step 2).
77
+ Do not write it until the environment holds an SMTP grant.
69
78
 
70
79
  Send, post or authenticate only as the identity the connection carries
71
80
  (`MAIL_FROM`, the granted channel, the granted site). Pin it: read the identity
@@ -9,6 +9,51 @@ Announce at start: "I'm using debug to inspect your application."
9
9
 
10
10
  ---
11
11
 
12
+ ## Read this first — symptoms the platform itself explains
13
+
14
+ Some failures are the platform doing something deliberate. Recognise these
15
+ before spending an afternoon ruling out AWS, and never work around one.
16
+
17
+ ### Outbound SMTP times out
18
+
19
+ **Fingerprint:** connecting to a mail server hangs and fails at the TCP stage —
20
+ `ETIMEDOUT` at `CONN` in nodemailer, before TLS and before authentication.
21
+
22
+ It is this if **all** of the following hold:
23
+
24
+ - every *public* mail host fails, `smtp.gmail.com` included — so it is not the
25
+ provider (a relay on a private address — in-VPC, a sidecar, another
26
+ container — is not blocked, so a failure there is something else)
27
+ - ports 25, 465 and 587 all fail, while 443 to the same internet is fine
28
+ - it is a timeout, not `ECONNREFUSED`
29
+ - the mail server accepts connections from anywhere else
30
+
31
+ If the application *used* to send mail and stopped at a redeploy, that
32
+ corroborates it. A newly written mail feature that has never sent anything is
33
+ equally this — the redeploy signal is not required.
34
+
35
+ **Cause:** the node drops outbound SMTP from containers unless that environment
36
+ holds an **SMTP connection grant**. The rule matches the destination *port*, so
37
+ the mail provider is irrelevant, and it is re-asserted on **every deploy** — an
38
+ application deployed before its grant existed keeps working until the next
39
+ deploy, which is why this looks like "the redeploy broke it".
40
+
41
+ It is not AWS, not the security group, not the mail provider, and not the
42
+ application's code. Do not go looking there.
43
+
44
+ **Fix:** an organisation admin grants an SMTP connection on that environment —
45
+ `app_request_connection` with `connectorId: "smtp"` — and then the environment
46
+ is redeployed. The grant is read during the deploy and fails closed, so it must
47
+ exist *before* the deploy that follows it. The connector injects `SMTP_HOST`,
48
+ `SMTP_PORT`, `SMTP_SECURE`, `SMTP_USER`, `SMTP_PASS` and `MAIL_FROM`, so remove
49
+ the application's hardcoded equivalents. Note `SMTP_SECURE` arrives as a string.
50
+
51
+ **Do not** work around this by moving the application to a different transport.
52
+ The block is deliberate; the grant is the supported path, and an admin can add
53
+ it in a minute.
54
+
55
+ ---
56
+
12
57
  ## Step 1 — Load config
13
58
 
14
59
  Read `~/.syntica/credentials.json` (session `token` and `orgId`) and
@@ -165,3 +165,19 @@ retry the deploy once.
165
165
 
166
166
  If `tiers` is empty, tell the user no tier is available for their plan and stop —
167
167
  retrying will not help.
168
+
169
+ ### If the deploy fails with `exceeds tenant SG range`
170
+
171
+ ```
172
+ tlsPort 23000 for localPort 13000 exceeds tenant SG range 13000–19999. Use a hostPort below 10000.
173
+ ```
174
+
175
+ The routed service in `docker-compose.yml` publishes a host port of 10000 or higher.
176
+ The platform exposes each routed service at `hostPort + 10000` and the tenant security
177
+ group only opens `13000–19999`.
178
+
179
+ `localPort` in the message is the offending host port. Remap the host side of that
180
+ service's `ports:` entry to a port below 10000, leaving the container port unchanged
181
+ (`"13000:3000"` → `"3000:3000"`), update any `vtc.config` route that referenced the old
182
+ host port, then push and redeploy. Do not retry without changing the compose file — it
183
+ will fail identically.
@@ -283,6 +283,11 @@ Detect project type by checking for these files in order:
283
283
 
284
284
  Generate a `docker-compose.yml` appropriate for the detected type.
285
285
 
286
+ > **Host ports must be below 10000.** The platform exposes each routed service at
287
+ > `hostPort + 10000` and the tenant security group only opens `13000–19999`, so a web
288
+ > service published on 10000 or above cannot be reached and the deploy fails. Keep the
289
+ > host side of every routed `ports:` entry under 10000 (the templates below already do).
290
+
286
291
  **Node.js template:**
287
292
  ```yaml
288
293
  services:
@@ -471,7 +476,42 @@ If Yes, remove the flagged lines from `.dockerignore` and write the file back us
471
476
 
472
477
  ---
473
478
 
474
- If all checks pass with no issues, tell the user: "✅ Pre-flight check passed — build method is supported, environment variables are accounted for, and your Docker configuration looks clean."
479
+ ### Check 6 — Published host ports
480
+
481
+ A routed (web) service must publish a host port **below 10000**. The platform gives
482
+ each node a TLS listener at `hostPort + 10000`, and the tenant security group only
483
+ opens `13000–19999` — so a host port of 10000 or higher is unreachable and the first
484
+ deploy fails with:
485
+
486
+ ```
487
+ tlsPort 23000 for localPort 13000 exceeds tenant SG range 13000–19999. Use a hostPort below 10000.
488
+ ```
489
+
490
+ Read every `ports:` entry in `docker-compose.yml`. The host port is the **left** side
491
+ of `"HOST:CONTAINER"`. Flag any service whose host port is `>= 10000` **and** that is
492
+ web-facing — that means it is either:
493
+ - listed under `proxy.routes` in `vtc.config.json`/`vtc.config.yaml` if that file exists, or
494
+ - the service the platform would route by default when no `proxy.routes` exist: the first
495
+ service publishing host port 3000, 4200 or 8080, and otherwise the **first** service in
496
+ the `ports:` list.
497
+
498
+ Databases and other internal services that are not routed never get a TLS listener, so a
499
+ high host port on e.g. `mongo` (`27017:27017`) is fine — do not flag it.
500
+
501
+ For each flagged service, propose remapping the host side only and leaving the container
502
+ port untouched, e.g. `"13000:3000"` → `"3000:3000"`. Keep the container port as-is so
503
+ nothing inside the image has to change.
504
+
505
+ Use the AskUserQuestion tool with options `["Yes — remap to a port below 10000", "No — I'll fix it myself"]`
506
+ to ask: "Service `<name>` publishes host port `<port>`, which the platform cannot route. Remap it?"
507
+
508
+ If Yes, edit `docker-compose.yml` and update any `vtc.config` route or health-check port
509
+ that referenced the old host port. If No, **stop** — do not push, because the first deploy
510
+ will fail.
511
+
512
+ ---
513
+
514
+ If all checks pass with no issues, tell the user: "✅ Pre-flight check passed — build method is supported, environment variables are accounted for, published ports are routable, and your Docker configuration looks clean."
475
515
 
476
516
  ---
477
517