@lonca/baron-mcp-server 0.1.0 → 0.2.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-MUGSC3EW.js → chunk-NLMBVIWL.js} +43 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/bin.js
CHANGED
|
@@ -65,13 +65,15 @@ var MCP_TOOL_NAMES = {
|
|
|
65
65
|
transition: "baron_issue_transition",
|
|
66
66
|
comment: "baron_issue_comment",
|
|
67
67
|
link: "baron_issue_link",
|
|
68
|
+
assign: "baron_issue_assign",
|
|
68
69
|
query: "baron_issue_query"
|
|
69
70
|
};
|
|
70
71
|
var SCM_TOOL_NAMES = {
|
|
71
72
|
branchCreate: "baron_scm_branch_create",
|
|
72
73
|
prCreate: "baron_scm_pr_create",
|
|
73
74
|
prThread: "baron_scm_pr_thread",
|
|
74
|
-
prStatus: "baron_scm_pr_status"
|
|
75
|
+
prStatus: "baron_scm_pr_status",
|
|
76
|
+
prForBranch: "baron_scm_pr_for_branch"
|
|
75
77
|
};
|
|
76
78
|
var CI_TOOL_NAMES = {
|
|
77
79
|
pipelines: "baron_ci_pipelines",
|
|
@@ -194,6 +196,23 @@ var TOOL_DEFINITIONS = [
|
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
198
|
},
|
|
199
|
+
{
|
|
200
|
+
name: MCP_TOOL_NAMES.assign,
|
|
201
|
+
description: "Assign an issue to a user by their provider-native handle (Azure DevOps: email; GitHub: login). Providers without assignment negotiate the gap per policy.",
|
|
202
|
+
inputSchema: {
|
|
203
|
+
type: "object",
|
|
204
|
+
additionalProperties: false,
|
|
205
|
+
required: ["id", "assignee"],
|
|
206
|
+
properties: {
|
|
207
|
+
id: { type: "string", minLength: 1 },
|
|
208
|
+
assignee: {
|
|
209
|
+
type: "string",
|
|
210
|
+
minLength: 1,
|
|
211
|
+
description: "Provider-native user handle (email on Azure DevOps, login on GitHub)."
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
197
216
|
{
|
|
198
217
|
name: MCP_TOOL_NAMES.query,
|
|
199
218
|
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.",
|
|
@@ -276,6 +295,22 @@ var SCM_TOOL_DEFINITIONS = [
|
|
|
276
295
|
required: ["pullRequestId"],
|
|
277
296
|
properties: { pullRequestId: { type: "string", minLength: 1 } }
|
|
278
297
|
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: SCM_TOOL_NAMES.prForBranch,
|
|
301
|
+
description: "Find the OPEN pull request whose source is the given branch (null when none). Check this BEFORE opening a PR for a branch so a re-run updates/reports instead of duplicating.",
|
|
302
|
+
inputSchema: {
|
|
303
|
+
type: "object",
|
|
304
|
+
additionalProperties: false,
|
|
305
|
+
required: ["sourceBranch"],
|
|
306
|
+
properties: {
|
|
307
|
+
sourceBranch: {
|
|
308
|
+
type: "string",
|
|
309
|
+
minLength: 1,
|
|
310
|
+
description: "Branch name (no refs/heads/)."
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
279
314
|
}
|
|
280
315
|
];
|
|
281
316
|
var CI_TOOL_DEFINITIONS = [
|
|
@@ -662,6 +697,8 @@ function callTool(port, name, args) {
|
|
|
662
697
|
requireLinkType(args)
|
|
663
698
|
)
|
|
664
699
|
);
|
|
700
|
+
case MCP_TOOL_NAMES.assign:
|
|
701
|
+
return run(() => port.assign(requireString(args, "id"), requireString(args, "assignee")));
|
|
665
702
|
case MCP_TOOL_NAMES.query:
|
|
666
703
|
return run(() => port.query(toQuery(args)));
|
|
667
704
|
default:
|
|
@@ -703,6 +740,11 @@ function callScmTool(port, name, args) {
|
|
|
703
740
|
});
|
|
704
741
|
case SCM_TOOL_NAMES.prStatus:
|
|
705
742
|
return run(() => port.prStatus(requireString(args, "pullRequestId")));
|
|
743
|
+
case SCM_TOOL_NAMES.prForBranch:
|
|
744
|
+
return run(async () => {
|
|
745
|
+
const pr = await port.prForBranch(requireString(args, "sourceBranch"));
|
|
746
|
+
return pr ?? null;
|
|
747
|
+
});
|
|
706
748
|
case SCM_TOOL_NAMES.prThread:
|
|
707
749
|
return run(
|
|
708
750
|
() => port.addPullRequestThread(
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare const MCP_TOOL_NAMES: {
|
|
|
26
26
|
readonly transition: "baron_issue_transition";
|
|
27
27
|
readonly comment: "baron_issue_comment";
|
|
28
28
|
readonly link: "baron_issue_link";
|
|
29
|
+
readonly assign: "baron_issue_assign";
|
|
29
30
|
readonly query: "baron_issue_query";
|
|
30
31
|
};
|
|
31
32
|
declare const SCM_TOOL_NAMES: {
|
|
@@ -33,6 +34,7 @@ declare const SCM_TOOL_NAMES: {
|
|
|
33
34
|
readonly prCreate: "baron_scm_pr_create";
|
|
34
35
|
readonly prThread: "baron_scm_pr_thread";
|
|
35
36
|
readonly prStatus: "baron_scm_pr_status";
|
|
37
|
+
readonly prForBranch: "baron_scm_pr_for_branch";
|
|
36
38
|
};
|
|
37
39
|
declare const CI_TOOL_NAMES: {
|
|
38
40
|
readonly pipelines: "baron_ci_pipelines";
|
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.2.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-
|
|
23
|
-
"@lonca/baron-
|
|
24
|
-
"@lonca/baron-
|
|
25
|
-
"@lonca/baron-
|
|
22
|
+
"@lonca/baron-knowledge-loop": "0.2.0",
|
|
23
|
+
"@lonca/baron-recipes": "0.2.0",
|
|
24
|
+
"@lonca/baron-core": "0.2.0",
|
|
25
|
+
"@lonca/baron-providers": "0.2.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.2.0",
|
|
30
|
+
"@lonca/baron-conformance": "0.2.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": [
|