@mushi-mushi/mcp 0.24.0 → 0.24.1

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/catalog.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  TOOL_CATALOG,
9
9
  USE_MUSHI_INTENTS,
10
10
  routeUseMushiIntent
11
- } from "./chunk-2NW2VVWV.js";
11
+ } from "./chunk-IC7PPRRZ.js";
12
12
  export {
13
13
  ALL_SCOPES,
14
14
  CODEBASE_TOOL_CATALOG,
@@ -491,7 +491,7 @@ var TOOL_CATALOG = [
491
491
  {
492
492
  name: "dispatch_fix",
493
493
  title: "Dispatch Mushi fix agent",
494
- description: 'Start a Mushi fix agent for a classified report; it writes a branch and opens a signed draft PR. Set agent="cursor_cloud" to dispatch a Cursor Cloud Agent (default uses the in-repo worker). Requires GitHub connected + an LLM key (run diagnose_setup mode=dispatch first). Returns { fixId, status } (fixId is the dispatch id; get_fix_timeline accepts it immediately); poll get_fix_timeline for progress and merge_fix when CI is green. Write; pass the same idempotencyKey to retry safely \u2014 without it each call starts a new attempt. Report must be classified \u2014 run triage_issue if not.',
494
+ description: 'Start a Mushi fix agent for a classified report; it writes a branch and opens a signed draft PR. Set agent="cursor_cloud" to dispatch a Cursor Cloud Agent (default uses the in-repo worker). For a project with several linked repos, set targetRepoId (a project_repos.id) to choose the repo the PR opens against; omit it for the primary repo. Requires GitHub connected + an LLM key (run diagnose_setup mode=dispatch first). Returns { fixId, status } (fixId is the dispatch id; get_fix_timeline accepts it immediately); poll get_fix_timeline for progress and merge_fix when CI is green. Write; pass the same idempotencyKey to retry safely \u2014 without it each call starts a new attempt. Report must be classified \u2014 run triage_issue if not.',
495
495
  scope: "mcp:write",
496
496
  hints: { readOnly: false, destructive: false, idempotent: false, openWorld: true },
497
497
  useCase: "Let the in-repo agent attempt this fix for me (or: dispatch a Cursor Cloud Agent)."
package/dist/clients.d.ts CHANGED
@@ -46,7 +46,7 @@ import { FeatureGroup } from './feature-groups.js';
46
46
  * editor launch. Synced to package.json by `scripts/sync-mcp-pin.mjs` — never
47
47
  * hand-edit the version.
48
48
  */
49
- declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@0.24.0";
49
+ declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@0.24.1";
50
50
  interface StdioConfig {
51
51
  command: string;
52
52
  args: string[];
package/dist/clients.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-F65T4IGT.js";
9
9
 
10
10
  // src/clients.ts
11
- var MCP_PIN_SPEC = "@mushi-mushi/mcp@0.24.0";
11
+ var MCP_PIN_SPEC = "@mushi-mushi/mcp@0.24.1";
12
12
  function projectServerName(projectId, projectName) {
13
13
  const nameSlug = projectName.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 22);
14
14
  const idSuffix = projectId.replace(/-/g, "").slice(0, 6);
package/dist/index.js CHANGED
@@ -567,7 +567,7 @@ var TOOL_CATALOG = [
567
567
  {
568
568
  name: "dispatch_fix",
569
569
  title: "Dispatch Mushi fix agent",
570
- description: 'Start a Mushi fix agent for a classified report; it writes a branch and opens a signed draft PR. Set agent="cursor_cloud" to dispatch a Cursor Cloud Agent (default uses the in-repo worker). Requires GitHub connected + an LLM key (run diagnose_setup mode=dispatch first). Returns { fixId, status } (fixId is the dispatch id; get_fix_timeline accepts it immediately); poll get_fix_timeline for progress and merge_fix when CI is green. Write; pass the same idempotencyKey to retry safely \u2014 without it each call starts a new attempt. Report must be classified \u2014 run triage_issue if not.',
570
+ description: 'Start a Mushi fix agent for a classified report; it writes a branch and opens a signed draft PR. Set agent="cursor_cloud" to dispatch a Cursor Cloud Agent (default uses the in-repo worker). For a project with several linked repos, set targetRepoId (a project_repos.id) to choose the repo the PR opens against; omit it for the primary repo. Requires GitHub connected + an LLM key (run diagnose_setup mode=dispatch first). Returns { fixId, status } (fixId is the dispatch id; get_fix_timeline accepts it immediately); poll get_fix_timeline for progress and merge_fix when CI is green. Write; pass the same idempotencyKey to retry safely \u2014 without it each call starts a new attempt. Report must be classified \u2014 run triage_issue if not.',
571
571
  scope: "mcp:write",
572
572
  hints: { readOnly: false, destructive: false, idempotent: false, openWorld: true },
573
573
  useCase: "Let the in-repo agent attempt this fix for me (or: dispatch a Cursor Cloud Agent)."
@@ -5797,6 +5797,9 @@ function createMushiServer(config) {
5797
5797
  ),
5798
5798
  inventoryActionNodeId: z.string().uuid().optional().describe(
5799
5799
  "Optional inventory Action node UUID for spec-traceability (\xA72.10). When provided, the fix-worker embeds the expected_outcome contract in the LLM prompt and runs validateAgainstSpec before opening the PR."
5800
+ ),
5801
+ targetRepoId: z.string().uuid().optional().describe(
5802
+ "Optional linked repo id (project_repos.id) to open the fix PR against, for a project with several repos. Omit for the project's primary repo. Another project's repo id is rejected with 400 TARGET_REPO_NOT_IN_PROJECT."
5800
5803
  )
5801
5804
  }),
5802
5805
  outputSchema: z.object({
@@ -5827,6 +5830,7 @@ function createMushiServer(config) {
5827
5830
  reportId: args.reportId,
5828
5831
  agent: args.agent,
5829
5832
  inventoryActionNodeId: args.inventoryActionNodeId,
5833
+ ...args.targetRepoId ? { targetRepoId: args.targetRepoId } : {},
5830
5834
  ...pid ? { projectId: pid } : {}
5831
5835
  })
5832
5836
  });
package/dist/server.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  TDD_TOOL_CATALOG,
5
5
  TOOL_CATALOG,
6
6
  routeUseMushiIntent
7
- } from "./chunk-2NW2VVWV.js";
7
+ } from "./chunk-IC7PPRRZ.js";
8
8
  import {
9
9
  MUSHI_SERVER_METADATA
10
10
  } from "./chunk-FJRPC4VR.js";
@@ -4473,6 +4473,9 @@ function createMushiServer(config) {
4473
4473
  ),
4474
4474
  inventoryActionNodeId: z.string().uuid().optional().describe(
4475
4475
  "Optional inventory Action node UUID for spec-traceability (\xA72.10). When provided, the fix-worker embeds the expected_outcome contract in the LLM prompt and runs validateAgainstSpec before opening the PR."
4476
+ ),
4477
+ targetRepoId: z.string().uuid().optional().describe(
4478
+ "Optional linked repo id (project_repos.id) to open the fix PR against, for a project with several repos. Omit for the project's primary repo. Another project's repo id is rejected with 400 TARGET_REPO_NOT_IN_PROJECT."
4476
4479
  )
4477
4480
  }),
4478
4481
  outputSchema: z.object({
@@ -4503,6 +4506,7 @@ function createMushiServer(config) {
4503
4506
  reportId: args.reportId,
4504
4507
  agent: args.agent,
4505
4508
  inventoryActionNodeId: args.inventoryActionNodeId,
4509
+ ...args.targetRepoId ? { targetRepoId: args.targetRepoId } : {},
4506
4510
  ...pid ? { projectId: pid } : {}
4507
4511
  })
4508
4512
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mushi-mushi/mcp",
3
3
  "mcpName": "io.github.kensaurus/mushi-mushi",
4
- "version": "0.24.0",
4
+ "version": "0.24.1",
5
5
  "license": "MIT",
6
6
  "description": "MCP server for Cursor, Claude Code and Copilot. The bug mediator for AI-built apps: plain-English diagnosis + a ready fix, in your editor.",
7
7
  "type": "module",