@lonca/baron-mcp-server 0.5.0 → 0.6.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/bin.js +1 -1
- package/dist/{chunk-7KF4L47I.js → chunk-SR44CRXC.js} +37 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/bin.js
CHANGED
|
@@ -68,6 +68,8 @@ var MCP_TOOL_NAMES = {
|
|
|
68
68
|
comment: "baron_issue_comment",
|
|
69
69
|
link: "baron_issue_link",
|
|
70
70
|
assign: "baron_issue_assign",
|
|
71
|
+
iterations: "baron_issue_iterations",
|
|
72
|
+
setIteration: "baron_issue_set_iteration",
|
|
71
73
|
query: "baron_issue_query"
|
|
72
74
|
};
|
|
73
75
|
var SCM_TOOL_NAMES = {
|
|
@@ -216,6 +218,28 @@ var TOOL_DEFINITIONS = [
|
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
},
|
|
221
|
+
{
|
|
222
|
+
name: MCP_TOOL_NAMES.iterations,
|
|
223
|
+
description: "List the provider's iterations/sprints (each with a `current` flag). Empty when the provider has no sprints. Use it to find the active sprint or a target for set_iteration.",
|
|
224
|
+
inputSchema: { type: "object", additionalProperties: false, properties: {} }
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: MCP_TOOL_NAMES.setIteration,
|
|
228
|
+
description: "Move a work item to an iteration/sprint by path, or '@current' for the active sprint. Providers without sprints negotiate the gap per policy.",
|
|
229
|
+
inputSchema: {
|
|
230
|
+
type: "object",
|
|
231
|
+
additionalProperties: false,
|
|
232
|
+
required: ["id", "iteration"],
|
|
233
|
+
properties: {
|
|
234
|
+
id: { type: "string", minLength: 1 },
|
|
235
|
+
iteration: {
|
|
236
|
+
type: "string",
|
|
237
|
+
minLength: 1,
|
|
238
|
+
description: "Iteration path (from iterations) or '@current' for the active sprint."
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
219
243
|
{
|
|
220
244
|
name: MCP_TOOL_NAMES.query,
|
|
221
245
|
description: "List issues filtered by workflow role and/or type role (filters are AND-combined). Returns a lightweight projection (no body); fetch an issue with get for full detail.",
|
|
@@ -230,6 +254,11 @@ var TOOL_DEFINITIONS = [
|
|
|
230
254
|
minLength: 1,
|
|
231
255
|
description: "Filter by assignee: a provider-native handle (Azure: email; GitHub: login) or '@me' for the authenticated user."
|
|
232
256
|
},
|
|
257
|
+
iteration: {
|
|
258
|
+
type: "string",
|
|
259
|
+
minLength: 1,
|
|
260
|
+
description: "Filter by iteration path, or '@current' for the active sprint."
|
|
261
|
+
},
|
|
233
262
|
limit: {
|
|
234
263
|
type: "number",
|
|
235
264
|
minimum: 1,
|
|
@@ -638,10 +667,12 @@ function toQuery(args) {
|
|
|
638
667
|
throw new BaronError2("Argument 'limit' must be a positive number.", INVALID_ARGS);
|
|
639
668
|
}
|
|
640
669
|
const assignee = optionalString(args, "assignee");
|
|
670
|
+
const iteration = optionalString(args, "iteration");
|
|
641
671
|
return {
|
|
642
672
|
...roleRaw !== void 0 ? { role: roleRaw } : {},
|
|
643
673
|
...typeRoleRaw !== void 0 ? { typeRole: typeRoleRaw } : {},
|
|
644
674
|
...assignee !== void 0 ? { assignee } : {},
|
|
675
|
+
...iteration !== void 0 ? { iteration } : {},
|
|
645
676
|
limit: limit !== void 0 ? limit : DEFAULT_QUERY_LIMIT
|
|
646
677
|
};
|
|
647
678
|
}
|
|
@@ -714,6 +745,12 @@ function callTool(port, name, args) {
|
|
|
714
745
|
);
|
|
715
746
|
case MCP_TOOL_NAMES.assign:
|
|
716
747
|
return run(() => port.assign(requireString(args, "id"), requireString(args, "assignee")));
|
|
748
|
+
case MCP_TOOL_NAMES.iterations:
|
|
749
|
+
return run(() => port.iterations());
|
|
750
|
+
case MCP_TOOL_NAMES.setIteration:
|
|
751
|
+
return run(
|
|
752
|
+
() => port.setIteration(requireString(args, "id"), requireString(args, "iteration"))
|
|
753
|
+
);
|
|
717
754
|
case MCP_TOOL_NAMES.query:
|
|
718
755
|
return run(() => port.query(toQuery(args)));
|
|
719
756
|
default:
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ declare const MCP_TOOL_NAMES: {
|
|
|
27
27
|
readonly comment: "baron_issue_comment";
|
|
28
28
|
readonly link: "baron_issue_link";
|
|
29
29
|
readonly assign: "baron_issue_assign";
|
|
30
|
+
readonly iterations: "baron_issue_iterations";
|
|
31
|
+
readonly setIteration: "baron_issue_set_iteration";
|
|
30
32
|
readonly query: "baron_issue_query";
|
|
31
33
|
};
|
|
32
34
|
declare const SCM_TOOL_NAMES: {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lonca/baron-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
22
|
-
"@lonca/baron-core": "0.
|
|
23
|
-
"@lonca/baron-
|
|
24
|
-
"@lonca/baron-
|
|
25
|
-
"@lonca/baron-
|
|
22
|
+
"@lonca/baron-core": "0.6.0",
|
|
23
|
+
"@lonca/baron-knowledge-loop": "0.6.0",
|
|
24
|
+
"@lonca/baron-recipes": "0.6.0",
|
|
25
|
+
"@lonca/baron-providers": "0.6.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|
|
29
|
-
"@lonca/baron-
|
|
30
|
-
"@lonca/baron-
|
|
29
|
+
"@lonca/baron-adapter-github": "0.6.0",
|
|
30
|
+
"@lonca/baron-conformance": "0.6.0"
|
|
31
31
|
},
|
|
32
32
|
"description": "Baron MCP server: drive issues, scm, ci, deploy, and notify across providers from any MCP client.",
|
|
33
33
|
"keywords": [
|