@dudamel/mcp-integrations 2026.929.1 → 2026.930.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/dist/index.js CHANGED
@@ -214,14 +214,22 @@ function registerMcpServerTools(server, client, ctx) {
214
214
  server.registerTool(
215
215
  "list-mcp-servers",
216
216
  {
217
- description: "List all configured MCP server instances. Returns id, name, description, serverType, authMode, and OAuth status.",
217
+ description: "List the MCP server instances available to you. Admins see every configured server (id, name, description, serverType, authMode, OAuth status); other users see only the servers their roles grant plus the system ones, so the list may be empty.",
218
218
  annotations: { readOnlyHint: true }
219
219
  },
220
220
  async () => {
221
- const page = await client.get("/api/mcp-servers");
222
- return jsonResult({ items: page.items, total: page.total });
221
+ if (ctx.role === "admin") {
222
+ const page2 = await client.get("/api/mcp-servers");
223
+ return jsonResult({ items: page2.items, total: page2.total });
224
+ }
225
+ const page = await client.get(
226
+ "/api/account/mcp-servers"
227
+ );
228
+ const items = page.items.filter((s) => s.canUse || s.system);
229
+ return jsonResult({ items, total: items.length });
223
230
  }
224
231
  );
232
+ if (ctx.role !== "admin") return;
225
233
  server.registerTool(
226
234
  "get-mcp-server-secrets",
227
235
  {
@@ -236,7 +244,7 @@ function registerMcpServerTools(server, client, ctx) {
236
244
  return jsonResult(secrets);
237
245
  }
238
246
  );
239
- if (ctx.readOnly || ctx.role !== "admin") return;
247
+ if (ctx.readOnly) return;
240
248
  server.registerTool(
241
249
  "set-mcp-server-secrets",
242
250
  {
@@ -257,14 +257,22 @@ function registerMcpServerTools(server2, client, ctx2) {
257
257
  server2.registerTool(
258
258
  "list-mcp-servers",
259
259
  {
260
- description: "List all configured MCP server instances. Returns id, name, description, serverType, authMode, and OAuth status.",
260
+ description: "List the MCP server instances available to you. Admins see every configured server (id, name, description, serverType, authMode, OAuth status); other users see only the servers their roles grant plus the system ones, so the list may be empty.",
261
261
  annotations: { readOnlyHint: true }
262
262
  },
263
263
  async () => {
264
- const page = await client.get("/api/mcp-servers");
265
- return jsonResult({ items: page.items, total: page.total });
264
+ if (ctx2.role === "admin") {
265
+ const page2 = await client.get("/api/mcp-servers");
266
+ return jsonResult({ items: page2.items, total: page2.total });
267
+ }
268
+ const page = await client.get(
269
+ "/api/account/mcp-servers"
270
+ );
271
+ const items = page.items.filter((s) => s.canUse || s.system);
272
+ return jsonResult({ items, total: items.length });
266
273
  }
267
274
  );
275
+ if (ctx2.role !== "admin") return;
268
276
  server2.registerTool(
269
277
  "get-mcp-server-secrets",
270
278
  {
@@ -279,7 +287,7 @@ function registerMcpServerTools(server2, client, ctx2) {
279
287
  return jsonResult(secrets);
280
288
  }
281
289
  );
282
- if (ctx2.readOnly || ctx2.role !== "admin") return;
290
+ if (ctx2.readOnly) return;
283
291
  server2.registerTool(
284
292
  "set-mcp-server-secrets",
285
293
  {
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-servers.d.ts","sourceRoot":"","sources":["../../src/tools/mcp-servers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,WAAW,GACf,IAAI,CAiDN"}
1
+ {"version":3,"file":"mcp-servers.d.ts","sourceRoot":"","sources":["../../src/tools/mcp-servers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGvD;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,gBAAgB,EACxB,GAAG,EAAE,WAAW,GACf,IAAI,CAgEN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudamel/mcp-integrations",
3
- "version": "2026.929.1",
3
+ "version": "2026.930.1",
4
4
  "description": "Dudamel integrations MCP — stdio client for Dudamel's integrations management surface over its REST API.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "module",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "esbuild": "^0.25.0",
35
- "@dudamel/mcp-common": "0.1.0",
36
35
  "@dudamel/contracts": "0.1.0",
36
+ "@dudamel/mcp-common": "0.1.0",
37
37
  "@dudamel/mcp-tool-contract": "0.1.0"
38
38
  },
39
39
  "scripts": {