agent-config-mcp 1.0.0 → 1.0.2

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/index.js +10 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -90,8 +90,11 @@ server.tool(
90
90
  server.tool(
91
91
  "ac_push",
92
92
  "Create a branch, commit changes, push, and open a PR",
93
- { message: z.string().optional().describe("Commit/PR message (auto-generated if omitted)") },
94
- async ({ message }) => {
93
+ {
94
+ message: z.string().optional().describe("PR title / commit message (auto-generated if omitted)"),
95
+ body: z.string().optional().describe("PR body - human-readable summary of changes")
96
+ },
97
+ async ({ message, body }) => {
95
98
  const dir = configPath();
96
99
  if (!isGitRepo(dir)) {
97
100
  return { content: [{ type: "text", text: JSON.stringify({ success: false, error: ".kiro/ is not a git repository" }) }] };
@@ -104,13 +107,17 @@ server.tool(
104
107
  }
105
108
  const files = status.split("\n").map(l => l.trim());
106
109
  const msg = message || `sync: ${files.map(f => f.slice(3)).join(", ")}`;
110
+ // Get diff summary before commit
111
+ const diffStat = await git(["diff", "--cached", "--stat"], dir);
112
+ const diffSummary = await git(["diff", "--cached", "--shortstat"], dir);
107
113
  // Create branch, commit, push
108
114
  const branch = `update/${Date.now()}`;
109
115
  await git(["checkout", "-b", branch], dir);
110
116
  await git(["commit", "-m", msg], dir);
111
117
  await git(["push", "-u", "origin", branch], dir);
112
118
  // Create PR via gh CLI
113
- const { stdout: prUrl } = await exec("gh", ["pr", "create", "--title", msg, "--body", files.map(f => `- ${f.slice(3)}`).join("\n"), "--base", "main"], { cwd: dir });
119
+ const prBody = body || files.map(f => `- ${f.slice(3)}`).join("\n");
120
+ const { stdout: prUrl } = await exec("gh", ["pr", "create", "--title", msg, "--body", prBody, "--base", "main", "--assignee", "@me"], { cwd: dir });
114
121
  // Return to main
115
122
  await git(["checkout", "main"], dir);
116
123
  return { content: [{ type: "text", text: JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-config-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "agent-config-mcp": "./index.js"