@syntica/mcp 2.7.0 → 2.8.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/dist/index.js CHANGED
@@ -68496,6 +68496,10 @@ var CONNECTOR_CATEGORIES = Array.from(new Set(CONNECTORS.filter((c) => c.hidden
68496
68496
  function connector(id) {
68497
68497
  return CONNECTORS.find((c) => c.id === id);
68498
68498
  }
68499
+ var DEFAULT_PROFILE = "default";
68500
+ function profileLabel(name, profile) {
68501
+ return profile === DEFAULT_PROFILE ? name : `${name} \xB7 ${profile}`;
68502
+ }
68499
68503
 
68500
68504
  // libs/shared/src/types/custom-integration.ts
68501
68505
  var CUSTOM_CONNECTOR_ID = "custom";
@@ -72907,7 +72911,7 @@ var tools6 = [
72907
72911
  // apps/mcp-server/src/tools/connections.ts
72908
72912
  var appDescribeConnectionsTool = {
72909
72913
  name: "app_describe_connections",
72910
- description: `Describe the platform connections granted to an application environment \u2014 mail, storage, databases, payments, AI and the rest of the connector catalogue. Returns each granted connection's connector, its name, and the environment variable NAMES the platform injects at deploy time. Never returns a credential. ALWAYS call this before writing or changing code that talks to an external system: write against the injected variables, never hardcode a credential or a vendor host (an AI SDK reads its base URL from OPENAI_BASE_URL, ANTHROPIC_BASE_URL or GOOGLE_GEMINI_BASE_URL), and never add a client library that contradicts the granted connector. If nothing is granted, say so and point the user at Connections rather than inventing a path of your own. A grant with connectorId "custom" is an integration the organisation defined itself: its custom object gives the hosts and TCP ports it may reach, its credential shape (bearer, basic or a named header) and its variable prefix, so the variables are <PREFIX>_URL, <PREFIX>_TOKEN and, for basic auth, <PREFIX>_USER. A connection with a network object reaches its system through a proxy or with its own CA, handled by the gateway: write no proxy or CA code for it. Where a connection carries baseUrl, call the vendor through baseUrl.variable, never through another URL variable: in gateway mode only that one reaches the gateway. Use the fallback only when the variable is unset.`,
72914
+ description: `Describe the platform connections granted to an application environment \u2014 mail, storage, databases, payments, AI and the rest of the connector catalogue. Returns each granted connection's connector, its name ("Stripe \xB7 live" for a named profile, with the profile apart in profile), and the environment variable NAMES the platform injects at deploy time. Never returns a credential. Every profile of one integration injects the same variable names, so a different target per environment (sandbox in dev, live in production) is a profile an admin assigns, never a second integration or environment-specific variable names in the code. ALWAYS call this before writing or changing code that talks to an external system: write against the injected variables, never hardcode a credential or a vendor host (an AI SDK reads its base URL from OPENAI_BASE_URL, ANTHROPIC_BASE_URL or GOOGLE_GEMINI_BASE_URL), and never add a client library that contradicts the granted connector. If nothing is granted, say so and point the user at Connections rather than inventing a path of your own. A grant with connectorId "custom" is an integration the organisation defined itself: its custom object gives the hosts and TCP ports it may reach, its credential shape (bearer, basic or a named header) and its variable prefix, so the variables are <PREFIX>_URL, <PREFIX>_TOKEN and, for basic auth, <PREFIX>_USER. A connection with a network object reaches its system through a proxy or with its own CA, handled by the gateway: write no proxy or CA code for it. Where a connection carries baseUrl, call the vendor through baseUrl.variable, never through another URL variable: in gateway mode only that one reaches the gateway. Use the fallback only when the variable is unset.`,
72911
72915
  annotations: { readOnlyHint: true, destructiveHint: false },
72912
72916
  inputSchema: {
72913
72917
  type: "object",
@@ -72937,7 +72941,7 @@ async function handleAppDescribeConnections(args) {
72937
72941
  if (!res.ok) {
72938
72942
  return { content: [{ type: "text", text: `Error: ${json.error ?? res.statusText}` }], isError: true };
72939
72943
  }
72940
- const connections = Array.isArray(json.data) ? json.data.map((c) => withNetwork(withBaseUrl(c))) : json.data;
72944
+ const connections = Array.isArray(json.data) ? json.data.map((c) => withLabel(withNetwork(withBaseUrl(c)))) : json.data;
72941
72945
  return { content: [{ type: "text", text: JSON.stringify({ connections }, null, 2) }] };
72942
72946
  } catch (err) {
72943
72947
  return fromCatch(err);
@@ -72964,6 +72968,9 @@ function withNetwork(c) {
72964
72968
  }
72965
72969
  };
72966
72970
  }
72971
+ function withLabel(c) {
72972
+ return typeof c["name"] === "string" && typeof c["profile"] === "string" ? { ...c, name: profileLabel(c["name"], c["profile"]) } : c;
72973
+ }
72967
72974
  function withBaseUrl(c) {
72968
72975
  const def = typeof c.connectorId === "string" ? connectorOf({ connectorId: c.connectorId, name: typeof c.name === "string" ? c.name : "", custom: c.custom ?? null }) : void 0;
72969
72976
  if (def?.gateway === void 0 || def.vars.includes(def.gateway.baseUrlVar)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntica/mcp",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
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": {
@@ -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.7.0",
11
+ "version": "2.8.0",
12
12
  "source": "./"
13
13
  }
14
14
  ]
@@ -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.7.0",
4
+ "version": "2.8.0",
5
5
  "author": {
6
6
  "name": "Syntica",
7
7
  "email": "support@syntica.io",
@@ -34,6 +34,17 @@ Note the names carefully. A grant may carry a **prefix**, so a second mailbox
34
34
  arrives as `SUPPORT_SMTP_HOST` rather than `SMTP_HOST`. Use exactly what the tool
35
35
  returns.
36
36
 
37
+ An integration can have several **profiles** ("sandbox", "live"), each with its
38
+ own URL, credentials, network settings and cloud account. `name` reads
39
+ "Stripe · live" for a named profile, with the profile apart in `profile`; a plain
40
+ name is the "default" profile. Every profile of one integration injects the
41
+ **same variable names**, so the code you write against dev's "sandbox" runs
42
+ unchanged in production once an admin assigns "live" there. Never derive
43
+ variable names from the environment (`TEST_DEV_URL`, `TEST_MAIN_URL`), and never
44
+ ask for a second integration to reach a different target per environment: that
45
+ is a profile an admin adds and assigns under Connections. Which profile an
46
+ environment holds is nothing the code reads or branches on.
47
+
37
48
  A connection to an HTTP API, such as OpenAI or Anthropic, may also carry
38
49
  `baseUrl`: the variable to call the vendor through, such as `OPENAI_BASE_URL`.
39
50
  A grant with `connectorId: "custom"` is an integration the organisation defined
@@ -63,6 +74,12 @@ platform and by email, and decides which of their connections satisfies it. Then
63
74
  write the code against the variable names the connector declares — they arrive at
64
75
  the next deploy once it is granted.
65
76
 
77
+ A system that **is** granted but points at the wrong target for this environment
78
+ (production still on a vendor's sandbox) is not a missing connection. It is a
79
+ profile change: an admin adds or switches the profile on this app environment
80
+ under Connections. Do not request a second connection for it, and do not change
81
+ the variable names in the code.
82
+
66
83
  Do **not** install a client library speculatively, invent variable names, or ask
67
84
  for credentials. A grant deliberately absent in `dev` usually means someone
68
85
  decided a preview must not touch the real system, so say what you are about to
@@ -173,6 +190,12 @@ at api.partner.example (HTTPS, bearer token, base URL https://api.partner.exampl
173
190
  to fetch order status". Then write the code against `<PREFIX>_URL` /
174
191
  `<PREFIX>_TOKEN` with the prefix the admin confirms.
175
192
 
193
+ When the organisation already has the integration and this environment only
194
+ needs another endpoint or credential of the same partner (their test system for
195
+ dev, the live one for production), say so in the purpose line: the admin then adds
196
+ a profile to the existing integration instead of a new one, and the prefix and
197
+ variable names stay the same.
198
+
176
199
  ## Step 4 — Fail loudly when the variables are absent
177
200
 
178
201
  Check for them at startup and fail with a clear message: