@topolo/mcp 0.11.8 → 0.11.9

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1601,7 +1601,7 @@ var TopoloClient = class _TopoloClient {
1601
1601
  }
1602
1602
  const mapped = mapActionInput(entry, input);
1603
1603
  const service = entry.appSlug || entry.appId;
1604
- return this.request({
1604
+ const result = await this.request({
1605
1605
  service,
1606
1606
  ...entry.apiBaseUrl ? { baseUrl: entry.apiBaseUrl } : {},
1607
1607
  method: entry.method,
@@ -1615,6 +1615,7 @@ var TopoloClient = class _TopoloClient {
1615
1615
  },
1616
1616
  confirm: options.confirm === true || entry.readOnly && !entry.destructive && !entry.requiresConfirmation
1617
1617
  });
1618
+ return redactActionResult(result);
1618
1619
  }
1619
1620
  /**
1620
1621
  * Introspect the current credential. Returns the caller's resolved identity,
@@ -1738,6 +1739,18 @@ function readOptionalString(value) {
1738
1739
  function isRecord3(value) {
1739
1740
  return typeof value === "object" && value !== null && !Array.isArray(value);
1740
1741
  }
1742
+ function redactActionResult(value) {
1743
+ if (Array.isArray(value)) return value.map(redactActionResult);
1744
+ if (!isRecord3(value)) return value;
1745
+ return Object.fromEntries(Object.entries(value).map(([key, item]) => [
1746
+ key,
1747
+ isSensitiveActionResultKey(key) ? "[REDACTED]" : redactActionResult(item)
1748
+ ]));
1749
+ }
1750
+ function isSensitiveActionResultKey(key) {
1751
+ const normalized = key.toLowerCase().replace(/[^a-z0-9]/g, "");
1752
+ return ["authorization", "cookie", "setcookie", "proxyauthorization", "capability"].includes(normalized) || /(token|secret|password|privatekey|apikey)$/.test(normalized);
1753
+ }
1741
1754
  function resolveConfiguredServiceUrl(slug, serviceUrls) {
1742
1755
  for (const serviceKey of serviceKeyCandidates2(slug)) {
1743
1756
  const configured = serviceUrls?.[serviceKey];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@topolo/mcp",
3
- "version": "0.11.8",
4
- "topoloPublishedVersion": "0.11.8",
3
+ "version": "0.11.9",
4
+ "topoloPublishedVersion": "0.11.9",
5
5
  "description": "Model Context Protocol server for the Topolo platform. Exposes scope-gated tools that third-party agents (Claude, Codex, etc.) can call natively.",
6
6
  "license": "UNLICENSED",
7
7
  "author": "Topolo",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@modelcontextprotocol/sdk": "^1.0.0",
38
- "@topolo/sdk": "0.11.8"
38
+ "@topolo/sdk": "0.11.9"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^20.12.0",