@transcend-io/mcp 2.4.0 → 2.5.1
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 +21 -19
- package/dist/cli.mjs +8 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{oauth-scopes-WCeJ2itg.mjs → oauth-scopes-D9TxgLT-.mjs} +4 -2
- package/dist/oauth-scopes-D9TxgLT-.mjs.map +1 -0
- package/package.json +8 -8
- package/dist/oauth-scopes-WCeJ2itg.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ OAuth stdio is the recommended path for MCP clients. Requires **org admin** acce
|
|
|
48
48
|
2. Choose an available localhost port number, then register `http://127.0.0.1:{port}/callback` on the OAuth client (`{port}` is the number you chose). Use **`127.0.0.1`, not `localhost`**, and ensure the path is `/callback`.
|
|
49
49
|
3. Set `TRANSCEND_OAUTH_REDIRECT_PORT` to the same port number.
|
|
50
50
|
|
|
51
|
-
At startup the server verifies client ID, secret, and redirect URI against Transcend's API. On first tool call it opens a browser for login.
|
|
51
|
+
At startup the server verifies client ID, secret, and redirect URI against Transcend's API. On first tool call it opens a browser for login. The login is saved and reused after a restart. Run `npx -y @transcend-io/mcp status` to see where it is saved, and `npx -y @transcend-io/mcp logout` to sign out. See [Saved login](../README.md#saved-login) for the storage options.
|
|
52
52
|
|
|
53
53
|
**OAuth scopes:** this server requests the union of all domain scopes (see the [scopes table](../README.md#oauth-scopes) in the MCP root README). The signed-in user must hold these permissions.
|
|
54
54
|
|
|
@@ -58,24 +58,26 @@ Full setup, troubleshooting, and multi-server guidance: [MCP root README](../REA
|
|
|
58
58
|
|
|
59
59
|
### Environment variables
|
|
60
60
|
|
|
61
|
-
| Variable
|
|
62
|
-
|
|
|
63
|
-
| `TRANSCEND_OAUTH_CLIENT_ID`
|
|
64
|
-
| `TRANSCEND_OAUTH_CLIENT_SECRET`
|
|
65
|
-
| `TRANSCEND_OAUTH_REDIRECT_PORT`
|
|
66
|
-
| `TRANSCEND_OAUTH_REDIRECT_HOST`
|
|
67
|
-
| `TRANSCEND_OAUTH_ISSUER`
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
73
|
-
| `
|
|
74
|
-
| `
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
78
|
-
| `
|
|
61
|
+
| Variable | Required (stdio OAuth) | Default | Description |
|
|
62
|
+
| -------------------------------- | ---------------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
|
+
| `TRANSCEND_OAUTH_CLIENT_ID` | Yes | — | Client ID from [app.transcend.io/admin/oauth-clients](https://app.transcend.io/admin/oauth-clients) |
|
|
64
|
+
| `TRANSCEND_OAUTH_CLIENT_SECRET` | Yes | — | Client secret from the same OAuth clients page |
|
|
65
|
+
| `TRANSCEND_OAUTH_REDIRECT_PORT` | Yes | — | Port number you choose for the OAuth callback server (must be available on your machine); **must match the port in your registered redirect URI** |
|
|
66
|
+
| `TRANSCEND_OAUTH_REDIRECT_HOST` | No | `127.0.0.1` | Loopback host for the OAuth callback (`127.0.0.1` or `::1` for `http://[::1]:{port}/callback`) |
|
|
67
|
+
| `TRANSCEND_OAUTH_ISSUER` | No | auto-detected | OAuth issuer URL; production auto-detects region. Test-only override |
|
|
68
|
+
| `TRANSCEND_MCP_CREDENTIAL_STORE` | No | `auto` | Where the OAuth login is saved: `auto`, `keyring`, `file`, or `memory`. See [Saved login](../README.md#saved-login) |
|
|
69
|
+
| `TRANSCEND_MCP_CONFIG_DIR` | No | `~/.transcend/mcp` | Directory for the saved login file and its lock files |
|
|
70
|
+
| `TRANSCEND_API_KEY` | No | — | API key for stdio (alternative to OAuth) or HTTP default auth. Disables OAuth when set alongside client ID |
|
|
71
|
+
| `TRANSCEND_API_URL` | No | `https://api.transcend.io` | GraphQL backend API URL (org lookup, non-create tools) |
|
|
72
|
+
| `SOMBRA_URL` | No | _(lazy GraphQL resolve)_ | Sticky **customer ingress** base URL for DSR create and other Sombra REST tools. When unset, resolves `organization.sombra.customerUrl` |
|
|
73
|
+
| `SOMBRA_CUSTOMER_KEY` | No | — | Optional self-hosted customer-ingress key. Sent as `X-Sombra-Authorization: Bearer …`. Not needed on multi-tenant Transcend-hosted Sombra |
|
|
74
|
+
| `TRANSCEND_DASHBOARD_URL` | No | `https://app.transcend.io` | Override the admin-dashboard base URL used for deep links returned by tool responses. Intended for local development against staging / fake hosts |
|
|
75
|
+
| `TRANSCEND_HTTP_PORT` | No | `3000` | HTTP listen port |
|
|
76
|
+
| `TRANSCEND_HTTP_HOST` | No | `127.0.0.1` | HTTP listen host |
|
|
77
|
+
| `TRANSCEND_MCP_CORS_ORIGINS` | No | — | Comma-separated allowed CORS origins |
|
|
78
|
+
| `TRANSCEND_MCP_SESSION_TTL_MS` | No | `1800000` | Idle session timeout (ms) |
|
|
79
|
+
| `TRANSCEND_MCP_SERVERS` | No | _(all domains + docs)_ | Comma-separated domain allowlist: `admin`, `assessment`, `config`, `consent`, `customFunctions`, `discovery`, `dsr`, `inventory`, `policy`, `preferences`, `privacyCenter`, `workflows`, and `docs`. Unset keeps the full unified server. Invalid names fail at startup. Pair with `TRANSCEND_CONFIG_RESOURCES` to cap config OAuth scopes. |
|
|
80
|
+
| `TRANSCEND_CONFIG_RESOURCES` | No | _(full config server)_ | When `config` is in `TRANSCEND_MCP_SERVERS`, caps config pull/push sections and OAuth scopes (same as `@transcend-io/mcp-server-config`). |
|
|
79
81
|
|
|
80
82
|
### MCP client configuration (stdio)
|
|
81
83
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as TranscendMcpServer, f as TranscendGraphQLClient, l as parseMcpServerAllowlistFromEnv, n as resolveUmbrellaOAuthScopes, o as allowlistIncludesDocs, r as ToolRegistry, s as allowlistIncludesServer, u as resolveMcpServerAllowlist } from "./oauth-scopes-
|
|
3
|
-
import { McpTransport, SimpleLogger, buildMcpServer, configureOAuthScopes, createTranscendRestClient, isOAuthModeEnabled, parseTransportArgs, readSombraEnvConfig, resolveMcpDashboardUrl, resolveMcpGraphqlUrl, resolveStdioStartupAuthOptional, runMcpHttp } from "@transcend-io/mcp-server-base";
|
|
2
|
+
import { d as TranscendMcpServer, f as TranscendGraphQLClient, l as parseMcpServerAllowlistFromEnv, n as resolveUmbrellaOAuthScopes, o as allowlistIncludesDocs, r as ToolRegistry, s as allowlistIncludesServer, u as resolveMcpServerAllowlist } from "./oauth-scopes-D9TxgLT-.mjs";
|
|
3
|
+
import { McpTransport, SimpleLogger, buildMcpServer, configureOAuthScopes, createTranscendRestClient, isOAuthModeEnabled, parseTransportArgs, readSombraEnvConfig, resolveMcpDashboardUrl, resolveMcpGraphqlUrl, resolveStdioStartupAuthOptional, runMcpHttp, runOAuthLoginCommand } from "@transcend-io/mcp-server-base";
|
|
4
4
|
import { getDsrPrompts } from "@transcend-io/mcp-server-dsr";
|
|
5
5
|
import { parseConfigResourceAllowlistFromEnv } from "@transcend-io/mcp-server-config";
|
|
6
6
|
import { getConsentPrompts } from "@transcend-io/mcp-server-consent";
|
|
7
7
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
8
8
|
//#region package.json
|
|
9
|
-
var version = "2.
|
|
9
|
+
var version = "2.5.1";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/server-instructions.ts
|
|
12
12
|
/** MCP initialize instructions for the unified @transcend-io/mcp server. */
|
|
@@ -48,6 +48,11 @@ function resolveStartupAllowlist() {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
async function main() {
|
|
51
|
+
const loginCommandExitCode = await runOAuthLoginCommand();
|
|
52
|
+
if (loginCommandExitCode !== void 0) {
|
|
53
|
+
process.exitCode = loginCommandExitCode;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
51
56
|
const allowlist = resolveStartupAllowlist();
|
|
52
57
|
const serverOptions = buildServerOptions(allowlist);
|
|
53
58
|
const config = parseTransportArgs();
|
package/dist/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.mjs","names":["packageJson.version"],"sources":["../package.json","../src/server-instructions.ts","../src/cli.ts"],"mappings":";;;;;;;;;;;;ACCA,MAAa,oCACX;;AAQF,MAAa,+BACX;;;
|
|
1
|
+
{"version":3,"file":"cli.mjs","names":["packageJson.version"],"sources":["../package.json","../src/server-instructions.ts","../src/cli.ts"],"mappings":";;;;;;;;;;;;ACCA,MAAa,oCACX;;AAQF,MAAa,+BACX;;;AC6BF,MAAM,UAAUA;AAEhB,SAAS,mBAAmB,WAA+B;CACzD,MAAM,UAAU,CACd,GAAI,wBAAwB,WAAW,mBAAmB,QAAQ,GAAG,mBAAmB,GAAG,EAAE,EAC7F,GAAI,wBAAwB,WAAW,mBAAmB,IAAI,GAAG,eAAe,GAAG,EAAE,CACtF;AAED,QAAO;EACL,MAAM;EACN,SAAS;EACT,cAAc,sBAAsB,UAAU,GAC1C,oCACA;EACJ;EACD;;AAGH,SAAS,mBACP,MACA,WACA,mBACA,0BACA,YACA,cACA,WACc;CACd,MAAM,gBAAgB,IAAI,uBAAuB,MAAM,WAAW;AAMlE,QAAO,IAAI,aACT;EACE,MAPe,0BAA0B,MAAM,eAAe;GAChE;GACA;GACA;GACD,CAGmB;EAChB,SAAS;EACT;EACA,iBAAiB;EACjB;EACD,EACD,UACD;;AAGH,SAAS,0BAA8C;AACrD,KAAI;AACF,SAAO,2BAA2B;UAC3B,OAAO;AAEd,MADmB,cACb,CAAC,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,MAAM,CAAC;AACpE,UAAQ,KAAK,EAAE;;;AAInB,eAAe,OAAsB;CACnC,MAAM,uBAAuB,MAAM,sBAAsB;AACzD,K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