@syntica/mcp 2.6.0 → 2.7.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
|
@@ -68037,6 +68037,24 @@ var UpstreamRequestError = class extends Error {
|
|
|
68037
68037
|
}
|
|
68038
68038
|
};
|
|
68039
68039
|
|
|
68040
|
+
// libs/shared/src/types/connector-network.ts
|
|
68041
|
+
function proxyVars(c) {
|
|
68042
|
+
const g = c?.gateway;
|
|
68043
|
+
if (g === void 0 || g.smtp !== void 0 || g.auth.includes("smtp")) {
|
|
68044
|
+
return null;
|
|
68045
|
+
}
|
|
68046
|
+
const prefix = g.baseUrlVar.replace(/(_BASE)?_URL$/, "");
|
|
68047
|
+
return { user: `${prefix}_PROXY_USER`, password: `${prefix}_PROXY_PASSWORD` };
|
|
68048
|
+
}
|
|
68049
|
+
function directNetworkVars(c) {
|
|
68050
|
+
const vars = proxyVars(c);
|
|
68051
|
+
if (vars === null) {
|
|
68052
|
+
return null;
|
|
68053
|
+
}
|
|
68054
|
+
const prefix = vars.user.slice(0, -"_PROXY_USER".length);
|
|
68055
|
+
return { proxyUrl: `${prefix}_PROXY_URL`, caPem: `${prefix}_CA_PEM` };
|
|
68056
|
+
}
|
|
68057
|
+
|
|
68040
68058
|
// libs/shared/src/types/connector.ts
|
|
68041
68059
|
var CONNECTOR_GATEWAY_HOST = "connectors.internal";
|
|
68042
68060
|
var CONNECTOR_GATEWAY_ORIGIN = `http://${CONNECTOR_GATEWAY_HOST}:9480`;
|
|
@@ -68156,11 +68174,12 @@ var CONNECTORS = [
|
|
|
68156
68174
|
category: "ERP",
|
|
68157
68175
|
tone: "blue",
|
|
68158
68176
|
blurb: "Read and write SAP business data over an OData service.",
|
|
68159
|
-
long: "Reads and writes business data in SAP through an OData service: sales orders, materials, business partners, whatever the endpoint exposes. This is the connector that turns a hosted app into something a functional consultant can actually deliver, because an application that cannot see the system of record is a demo. OData is self describing, so the service metadata tells you the real entity sets and field names rather than leaving you to guess them.
|
|
68177
|
+
long: "Reads and writes business data in SAP through an OData service: sales orders, materials, business partners, whatever the endpoint exposes. This is the connector that turns a hosted app into something a functional consultant can actually deliver, because an application that cannot see the system of record is a demo. OData is self describing, so the service metadata tells you the real entity sets and field names rather than leaving you to guess them. It reaches S/4HANA Cloud, Sales Cloud and Service Cloud over ordinary HTTPS, and a system behind your firewall too: in gateway mode a connection can go through your company proxy, use any HTTPS port and trust certificates from your own CA. Plain HTTP is not supported.",
|
|
68160
68178
|
vars: ["SAP_ODATA_URL", "SAP_CLIENT", "SAP_USER", "SAP_PASSWORD"],
|
|
68161
68179
|
steps: [
|
|
68162
68180
|
"Create a communication user restricted to the services you need.",
|
|
68163
|
-
"Expose the OData service and note its root URL.",
|
|
68181
|
+
"Expose the OData service and note its root URL and port.",
|
|
68182
|
+
"Behind a proxy? Add it, with its port, under Network.",
|
|
68164
68183
|
"Note the SAP client number, like 100.",
|
|
68165
68184
|
"Keep it read-only unless the app writes back."
|
|
68166
68185
|
],
|
|
@@ -68169,7 +68188,7 @@ var CONNECTORS = [
|
|
|
68169
68188
|
{ icon: "database", title: "The system of record", line: "Orders, materials, business partners" },
|
|
68170
68189
|
{ icon: "code", title: "Self-describing", line: "The metadata names every entity and field" },
|
|
68171
68190
|
{ icon: "shield", title: "A restricted user", line: "Only the services the app needs" },
|
|
68172
|
-
{ icon: "bolt", title: "
|
|
68191
|
+
{ icon: "bolt", title: "Behind your firewall too", line: "Through your proxy, in gateway mode" }
|
|
68173
68192
|
],
|
|
68174
68193
|
varDescriptions: {
|
|
68175
68194
|
SAP_ODATA_URL: "The service root URL",
|
|
@@ -68187,6 +68206,7 @@ var CONNECTORS = [
|
|
|
68187
68206
|
credentialVars: ["SAP_PASSWORD"],
|
|
68188
68207
|
auth: ["basic"],
|
|
68189
68208
|
basicUserVar: "SAP_USER",
|
|
68209
|
+
probePath: "$metadata",
|
|
68190
68210
|
credentialLocations: { headers: ["authorization"], query: [], form: [] }
|
|
68191
68211
|
}
|
|
68192
68212
|
},
|
|
@@ -72887,7 +72907,7 @@ var tools6 = [
|
|
|
72887
72907
|
// apps/mcp-server/src/tools/connections.ts
|
|
72888
72908
|
var appDescribeConnectionsTool = {
|
|
72889
72909
|
name: "app_describe_connections",
|
|
72890
|
-
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. 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.`,
|
|
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.`,
|
|
72891
72911
|
annotations: { readOnlyHint: true, destructiveHint: false },
|
|
72892
72912
|
inputSchema: {
|
|
72893
72913
|
type: "object",
|
|
@@ -72917,12 +72937,33 @@ async function handleAppDescribeConnections(args) {
|
|
|
72917
72937
|
if (!res.ok) {
|
|
72918
72938
|
return { content: [{ type: "text", text: `Error: ${json.error ?? res.statusText}` }], isError: true };
|
|
72919
72939
|
}
|
|
72920
|
-
const connections = Array.isArray(json.data) ? json.data.map(withBaseUrl) : json.data;
|
|
72940
|
+
const connections = Array.isArray(json.data) ? json.data.map((c) => withNetwork(withBaseUrl(c))) : json.data;
|
|
72921
72941
|
return { content: [{ type: "text", text: JSON.stringify({ connections }, null, 2) }] };
|
|
72922
72942
|
} catch (err) {
|
|
72923
72943
|
return fromCatch(err);
|
|
72924
72944
|
}
|
|
72925
72945
|
}
|
|
72946
|
+
function withNetwork(c) {
|
|
72947
|
+
const { caPems, proxyUrl, ...all } = c;
|
|
72948
|
+
const def = typeof c.connectorId === "string" ? connectorOf({ connectorId: c.connectorId, name: typeof c.name === "string" ? c.name : "", custom: c.custom ?? null }) : void 0;
|
|
72949
|
+
const vars = proxyVars(def);
|
|
72950
|
+
const rest = vars !== null && Array.isArray(all.filledVars) ? { ...all, filledVars: all.filledVars.filter((v2) => v2 !== vars.user && v2 !== vars.password) } : all;
|
|
72951
|
+
const count = Array.isArray(caPems) ? caPems.length : 0;
|
|
72952
|
+
if ((proxyUrl ?? null) === null && count === 0) {
|
|
72953
|
+
return rest;
|
|
72954
|
+
}
|
|
72955
|
+
const names = directNetworkVars(def);
|
|
72956
|
+
const directVars = names === null ? [] : [...(proxyUrl ?? null) === null ? [] : [names.proxyUrl], ...count === 0 ? [] : [names.caPem]];
|
|
72957
|
+
return {
|
|
72958
|
+
...rest,
|
|
72959
|
+
network: {
|
|
72960
|
+
proxyUrl: proxyUrl ?? null,
|
|
72961
|
+
caCertificates: count,
|
|
72962
|
+
directModeVariables: directVars,
|
|
72963
|
+
note: "In gateway mode the gateway reaches the upstream through this proxy and trusts these CAs, and the app needs no proxy or CA settings of its own. In direct mode the app gets directModeVariables (prefixed like the others) and must use them itself: the proxy URL holds the proxy user and password, so never log it, and the CA variable holds PEM certificates to trust besides the public roots."
|
|
72964
|
+
}
|
|
72965
|
+
};
|
|
72966
|
+
}
|
|
72926
72967
|
function withBaseUrl(c) {
|
|
72927
72968
|
const def = typeof c.connectorId === "string" ? connectorOf({ connectorId: c.connectorId, name: typeof c.name === "string" ? c.name : "", custom: c.custom ?? null }) : void 0;
|
|
72928
72969
|
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.
|
|
3
|
+
"version": "2.7.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": {
|
|
@@ -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.7.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Syntica",
|
|
7
7
|
"email": "support@syntica.io",
|
|
@@ -41,6 +41,13 @@ itself; its `custom` object says which hosts and ports it reaches and how it
|
|
|
41
41
|
authenticates (see "Custom integrations" below).
|
|
42
42
|
Its names are unprefixed like the others, so apply the grant's prefix to both
|
|
43
43
|
`baseUrl.variable` and `baseUrl.fallbackVariable`.
|
|
44
|
+
A connection with a `network` object reaches its system through a proxy, on another
|
|
45
|
+
port or with the organisation's own CA. In gateway mode the gateway handles all of
|
|
46
|
+
that: write no proxy or CA code for it, call `baseUrl.variable` as usual. In direct
|
|
47
|
+
mode the app gets `network.directModeVariables` (prefixed like the others) and must
|
|
48
|
+
use them itself: `<PREFIX>_PROXY_URL` is the proxy with its user and password in it,
|
|
49
|
+
so never log it, and `<PREFIX>_CA_PEM` holds PEM certificates to trust on top of the
|
|
50
|
+
public roots. Read both when set, so the same code works in either mode.
|
|
44
51
|
|
|
45
52
|
## Step 2 — If nothing is granted, stop and say so
|
|
46
53
|
|