@dudamel/mcp-agents 2026.1008.1 → 2026.1016.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 +7 -7
- package/dist/skill-bundle.d.ts +1 -1
- package/dist/stdio-server.js +8 -8
- package/dist/tools/agent-mcp.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -58,22 +58,22 @@ var DudamelApiClient = class {
|
|
|
58
58
|
const url = this.buildUrl(path, params);
|
|
59
59
|
return this.request(url, { method: "GET" });
|
|
60
60
|
}
|
|
61
|
-
async post(path, body) {
|
|
62
|
-
const url = this.buildUrl(path);
|
|
61
|
+
async post(path, body, params) {
|
|
62
|
+
const url = this.buildUrl(path, params);
|
|
63
63
|
return this.request(url, {
|
|
64
64
|
method: "POST",
|
|
65
65
|
body: body !== void 0 ? JSON.stringify(body) : void 0
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
async put(path, body) {
|
|
69
|
-
const url = this.buildUrl(path);
|
|
68
|
+
async put(path, body, params) {
|
|
69
|
+
const url = this.buildUrl(path, params);
|
|
70
70
|
return this.request(url, {
|
|
71
71
|
method: "PUT",
|
|
72
72
|
body: body !== void 0 ? JSON.stringify(body) : void 0
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
async delete(path) {
|
|
76
|
-
const url = this.buildUrl(path);
|
|
75
|
+
async delete(path, params) {
|
|
76
|
+
const url = this.buildUrl(path, params);
|
|
77
77
|
return this.request(url, { method: "DELETE" });
|
|
78
78
|
}
|
|
79
79
|
buildUrl(path, params) {
|
|
@@ -921,7 +921,7 @@ function registerAgentMcpTools(server, client, ctx) {
|
|
|
921
921
|
function createServer(config) {
|
|
922
922
|
return createSurfaceServer({
|
|
923
923
|
name: "dudamel-agents",
|
|
924
|
-
instructions: `Dudamel Agents MCP \u2014 manage agents, skills, and their skill/MCP
|
|
924
|
+
instructions: `Dudamel Agents MCP \u2014 manage agents, skills, and their skill/MCP/sub-agent assignments. Running as role=${config.role}, readOnly=${config.readOnly ?? false}.`,
|
|
925
925
|
registrars: [registerAgentTools, registerSkillTools, registerAgentMcpTools],
|
|
926
926
|
config
|
|
927
927
|
});
|
package/dist/skill-bundle.d.ts
CHANGED
package/dist/stdio-server.js
CHANGED
|
@@ -63,22 +63,22 @@ var DudamelApiClient = class {
|
|
|
63
63
|
const url = this.buildUrl(path, params);
|
|
64
64
|
return this.request(url, { method: "GET" });
|
|
65
65
|
}
|
|
66
|
-
async post(path, body) {
|
|
67
|
-
const url = this.buildUrl(path);
|
|
66
|
+
async post(path, body, params) {
|
|
67
|
+
const url = this.buildUrl(path, params);
|
|
68
68
|
return this.request(url, {
|
|
69
69
|
method: "POST",
|
|
70
70
|
body: body !== void 0 ? JSON.stringify(body) : void 0
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
async put(path, body) {
|
|
74
|
-
const url = this.buildUrl(path);
|
|
73
|
+
async put(path, body, params) {
|
|
74
|
+
const url = this.buildUrl(path, params);
|
|
75
75
|
return this.request(url, {
|
|
76
76
|
method: "PUT",
|
|
77
77
|
body: body !== void 0 ? JSON.stringify(body) : void 0
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
async delete(path) {
|
|
81
|
-
const url = this.buildUrl(path);
|
|
80
|
+
async delete(path, params) {
|
|
81
|
+
const url = this.buildUrl(path, params);
|
|
82
82
|
return this.request(url, { method: "DELETE" });
|
|
83
83
|
}
|
|
84
84
|
buildUrl(path, params) {
|
|
@@ -182,7 +182,7 @@ function resolveStdioContext() {
|
|
|
182
182
|
apiUrl: process.env["DUDAMEL_API_URL"] ?? "http://localhost:3000",
|
|
183
183
|
apiKey: process.env["DUDAMEL_API_KEY"],
|
|
184
184
|
envRole: process.env["DUDAMEL_USER_ROLE"],
|
|
185
|
-
// read/write access is per agent-assignment
|
|
185
|
+
// read/write access is per agent-assignment; the spawner injects the mode.
|
|
186
186
|
readOnly: process.env["DUDAMEL_MCP_MODE"] === "readonly",
|
|
187
187
|
agentName: process.env["DUDAMEL_AGENT_NAME"]
|
|
188
188
|
};
|
|
@@ -964,7 +964,7 @@ function registerAgentMcpTools(server2, client, ctx2) {
|
|
|
964
964
|
function createServer(config) {
|
|
965
965
|
return createSurfaceServer({
|
|
966
966
|
name: "dudamel-agents",
|
|
967
|
-
instructions: `Dudamel Agents MCP \u2014 manage agents, skills, and their skill/MCP
|
|
967
|
+
instructions: `Dudamel Agents MCP \u2014 manage agents, skills, and their skill/MCP/sub-agent assignments. Running as role=${config.role}, readOnly=${config.readOnly ?? false}.`,
|
|
968
968
|
registrars: [registerAgentTools, registerSkillTools, registerAgentMcpTools],
|
|
969
969
|
config
|
|
970
970
|
});
|
|
@@ -3,7 +3,7 @@ import type { DudamelApiClient } from '@dudamel/mcp-common';
|
|
|
3
3
|
import type { ToolContext } from '@dudamel/mcp-common';
|
|
4
4
|
/**
|
|
5
5
|
* Agent↔MCP assignment tools. Split out of the old `mcp-servers` tool group into
|
|
6
|
-
* the `agents` surface
|
|
6
|
+
* the `agents` surface: assigning which MCP servers an agent may
|
|
7
7
|
* use is agent management, not MCP-server administration.
|
|
8
8
|
*/
|
|
9
9
|
export declare function registerAgentMcpTools(server: McpServer, client: DudamelApiClient, ctx: ToolContext): void;
|
package/package.json
CHANGED