@azerate/claudette-mcp 1.5.0 → 1.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/README.md CHANGED
@@ -81,6 +81,7 @@ Add to `~/.claude.json`:
81
81
  | `approve_commit` | Stage and commit with the provided message |
82
82
  | `approve_push` | Push committed changes to remote |
83
83
  | `approve_write_tests` | Mark the write tests step as complete |
84
+ | `create_pr` | Create a pull request using gh CLI |
84
85
  | `approve_code_review` | Mark the code review step as complete |
85
86
 
86
87
  ### Project Memory
package/dist/index.js CHANGED
@@ -557,6 +557,28 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
557
557
  required: ["workspace_path"],
558
558
  },
559
559
  },
560
+ {
561
+ name: "create_pr",
562
+ description: "Create a pull request for the current branch. Uses gh CLI to create the PR and updates workflow status.",
563
+ inputSchema: {
564
+ type: "object",
565
+ properties: {
566
+ workspace_path: {
567
+ type: "string",
568
+ description: "Path to the workspace directory",
569
+ },
570
+ title: {
571
+ type: "string",
572
+ description: "PR title",
573
+ },
574
+ body: {
575
+ type: "string",
576
+ description: "PR description/body",
577
+ },
578
+ },
579
+ required: ["workspace_path", "title"],
580
+ },
581
+ },
560
582
  {
561
583
  name: "get_branch_info",
562
584
  description: "Get current git branch information including branch name, whether it's main/master, and behind/ahead counts relative to origin and main branch.",
@@ -1483,6 +1505,34 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
1483
1505
  return { content: [{ type: "text", text: `Error: ${err.message}` }] };
1484
1506
  }
1485
1507
  }
1508
+ case "create_pr": {
1509
+ const workspacePath = args?.workspace_path;
1510
+ const title = args?.title;
1511
+ const body = args?.body ?? '';
1512
+ if (!workspacePath) {
1513
+ return { content: [{ type: "text", text: "Error: workspace_path is required" }] };
1514
+ }
1515
+ if (!title) {
1516
+ return { content: [{ type: "text", text: "Error: title is required" }] };
1517
+ }
1518
+ try {
1519
+ const response = await fetch(`${CLAUDETTE_API}/api/workflow/pr`, {
1520
+ method: "POST",
1521
+ headers: { "Content-Type": "application/json" },
1522
+ body: JSON.stringify({ path: workspacePath, title, body }),
1523
+ });
1524
+ const result = await response.json();
1525
+ if (result.status === 'passed' || result.url) {
1526
+ return { content: [{ type: "text", text: `✅ Pull Request created!\n\nURL: ${result.url}\nPR #${result.prNumber}\n\nWorkflow advanced to code review.` }] };
1527
+ }
1528
+ else {
1529
+ return { content: [{ type: "text", text: `❌ Failed to create PR: ${result.error}` }] };
1530
+ }
1531
+ }
1532
+ catch (err) {
1533
+ return { content: [{ type: "text", text: `Error: ${err.message}` }] };
1534
+ }
1535
+ }
1486
1536
  case "get_branch_info": {
1487
1537
  const workspacePath = args?.workspace_path;
1488
1538
  const doFetch = args?.fetch ?? false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azerate/claudette-mcp",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "MCP server for Claudette IDE - TypeScript errors, git changes, checkpoints, memory, and script management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",