ralph-hero-mcp-server 2.5.193 → 2.5.194

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.
@@ -668,8 +668,9 @@ export function registerIssueTools(server, client, fieldCache) {
668
668
  .describe("GitHub usernames to assign"),
669
669
  workflowState: z
670
670
  .string()
671
+ .min(1, 'workflowState must be a non-empty state name; omit it to default to "Backlog"')
671
672
  .optional()
672
- .describe("Initial Workflow State name"),
673
+ .describe('Initial Workflow State name (defaults to "Backlog")'),
673
674
  estimate: z.string().optional().describe("Estimate (XS, S, M, L, XL)"),
674
675
  priority: z.string().optional().describe("Priority (P0, P1, P2, P3)"),
675
676
  }, async (args) => {
@@ -688,6 +689,7 @@ export function registerIssueTools(server, client, fieldCache) {
688
689
  let effectiveLabels = args.labels;
689
690
  let effectiveAssignees = args.assignees;
690
691
  let effectiveEstimate = args.estimate;
692
+ const effectiveState = args.workflowState ?? "Backlog";
691
693
  if (registry) {
692
694
  const repoLookup = lookupRepo(registry, repo);
693
695
  if (repoLookup) {
@@ -773,10 +775,8 @@ export function registerIssueTools(server, client, fieldCache) {
773
775
  .getCache()
774
776
  .set(`project-item-id:${owner}/${repo}#${issue.number}`, projectItemId, 30 * 60 * 1000);
775
777
  // Step 5: Set field values
776
- if (args.workflowState) {
777
- await updateProjectItemField(client, fieldCache, projectItemId, "Workflow State", args.workflowState, projectNumber);
778
- await syncStatusField(client, fieldCache, projectItemId, args.workflowState, projectNumber);
779
- }
778
+ await updateProjectItemField(client, fieldCache, projectItemId, "Workflow State", effectiveState, projectNumber);
779
+ await syncStatusField(client, fieldCache, projectItemId, effectiveState, projectNumber);
780
780
  if (effectiveEstimate) {
781
781
  await updateProjectItemField(client, fieldCache, projectItemId, "Estimate", effectiveEstimate, projectNumber);
782
782
  }
@@ -790,7 +790,7 @@ export function registerIssueTools(server, client, fieldCache) {
790
790
  url: issue.url,
791
791
  projectItemId,
792
792
  fieldsSet: {
793
- workflowState: args.workflowState || null,
793
+ workflowState: effectiveState,
794
794
  estimate: effectiveEstimate || null,
795
795
  priority: args.priority || null,
796
796
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ralph-hero-mcp-server",
3
- "version": "2.5.193",
3
+ "version": "2.5.194",
4
4
  "description": "MCP server for GitHub Projects V2 - Ralph workflow automation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",