@mushi-mushi/mcp 0.29.2 → 0.30.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 +2 -2
- package/dist/catalog.js +1 -1
- package/dist/{chunk-6SHKBN6R.js → chunk-MQFZGJ72.js} +56 -2
- package/dist/{chunk-7RWHDJPZ.js → chunk-YOLJIBQR.js} +32 -2
- package/dist/clients.d.ts +1 -1
- package/dist/clients.js +2 -2
- package/dist/feature-groups.d.ts +10 -2
- package/dist/feature-groups.js +3 -1
- package/dist/index.js +294 -38
- package/dist/server.js +209 -36
- package/package.json +2 -2
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-
|
|
7
|
+
} from "./chunk-MQFZGJ72.js";
|
|
8
8
|
import {
|
|
9
9
|
MUSHI_SERVER_METADATA
|
|
10
10
|
} from "./chunk-FJRPC4VR.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
DEPRECATED_TOOL_ALIASES,
|
|
13
13
|
TOOL_FEATURE_MAP,
|
|
14
14
|
toolMatchesFeatures
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YOLJIBQR.js";
|
|
16
16
|
|
|
17
17
|
// src/server.ts
|
|
18
18
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -32,7 +32,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
32
32
|
route: "/",
|
|
33
33
|
markdown: "index.md",
|
|
34
34
|
keywords: ["know", "ai-built", "app", "broke", "fix", "ready"],
|
|
35
|
-
headings: ["
|
|
35
|
+
headings: ["What it takes", "What this is (and is not)"],
|
|
36
36
|
excerpt: "Your AI shipped it. Mushi tells you why it broke: a plain-English diagnosis and a ready fix in your editor. Open source, Sentry optional."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -41,7 +41,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
41
41
|
route: "/admin",
|
|
42
42
|
markdown: "admin/index.md",
|
|
43
43
|
keywords: ["admin", "console"],
|
|
44
|
-
headings: ["Day-to-day", "Deeper surfaces"],
|
|
44
|
+
headings: ["See it", "Day-to-day", "Deeper surfaces"],
|
|
45
45
|
excerpt: "Guide to the Mushi admin console \u2014 the reports inbox, fix drafts and PRs, plain-English queries, and a link to every deeper page of the console."
|
|
46
46
|
},
|
|
47
47
|
{
|
|
@@ -86,7 +86,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
86
86
|
route: "/admin/billing",
|
|
87
87
|
markdown: "admin/billing.md",
|
|
88
88
|
keywords: ["admin", "billing"],
|
|
89
|
-
headings: ["Reading your usage card", "Usage breakdown", "Predictability controls", "Upgrading your plan", "Changing plan", "Managing payment and invoices", "CLI parity"
|
|
89
|
+
headings: ["Reading your usage card", "Usage breakdown", "Predictability controls", "Apps on your plan", "Upgrading your plan", "Changing plan", "Managing payment and invoices", "CLI parity"],
|
|
90
90
|
excerpt: "The Billing page shows your diagnosis quota, usage alerts at 50% and 80%, your projected bill, and spend caps for your Mushi plan."
|
|
91
91
|
},
|
|
92
92
|
{
|
|
@@ -95,8 +95,8 @@ var MUSHI_DOCS_INDEX = [
|
|
|
95
95
|
route: "/admin/checks",
|
|
96
96
|
markdown: "admin/checks.md",
|
|
97
97
|
keywords: ["admin", "checks"],
|
|
98
|
-
headings: ["App checks", "AI quality"],
|
|
99
|
-
excerpt: "The Checks page
|
|
98
|
+
headings: ["The checks", "App checks", "AI quality"],
|
|
99
|
+
excerpt: "The Checks page shows every automatic check on this app with its state, when it last ran and its open count, failing checks first."
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
title: "CI runners",
|
|
@@ -104,7 +104,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
104
104
|
route: "/admin/ci",
|
|
105
105
|
markdown: "admin/ci.md",
|
|
106
106
|
keywords: ["admin", "ci", "runners"],
|
|
107
|
-
headings: ["Test machine or your code", "Queue and wait", "Runner map", "What would make fixes land sooner", "
|
|
107
|
+
headings: ["Spend less on CI", "How it reads your runs", "Test machine or your code", "Queue and wait", "Runner map", "What would make fixes land sooner", "Your real bill", "Cost advice that reads your workflows"],
|
|
108
108
|
excerpt: "The console CI runners page shows where tests run, how long they wait for a machine, and whether a red check was your code or the test machine."
|
|
109
109
|
},
|
|
110
110
|
{
|
|
@@ -176,8 +176,8 @@ var MUSHI_DOCS_INDEX = [
|
|
|
176
176
|
route: "/admin/dashboard",
|
|
177
177
|
markdown: "admin/dashboard.md",
|
|
178
178
|
keywords: ["admin", "dashboard"],
|
|
179
|
-
headings: ["
|
|
180
|
-
excerpt: "
|
|
179
|
+
headings: ["App card", "Health lights", "Needs you", "Release", "Pages", "Access and details", "This week vs last week", "Recent activity"],
|
|
180
|
+
excerpt: "Home in the Mushi console shows how one app is doing \u2014 is it up, what needs you, what is shipping, which pages have bugs and who can reach it."
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
title: "Design system",
|
|
@@ -279,13 +279,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
279
279
|
excerpt: "The Knowledge graph page draws your project's bugs, components and fixes as an interactive graph, so you can see which areas cluster problems."
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
|
-
title: "
|
|
282
|
+
title: "Mushi health",
|
|
283
283
|
url: docUrl("/admin/health"),
|
|
284
284
|
route: "/admin/health",
|
|
285
285
|
markdown: "admin/health.md",
|
|
286
|
-
keywords: ["admin", "health"
|
|
286
|
+
keywords: ["admin", "health"],
|
|
287
287
|
headings: ["Time window", "LLM health summary", "Provider probes", "Cron job health", "Recent LLM calls log", "Recommended actions", "Related pages"],
|
|
288
|
-
excerpt: "The
|
|
288
|
+
excerpt: "The Mushi health page shows whether Mushi itself is working (its AI calls, background jobs and provider connections), so you catch a degraded integration early."
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
title: "To-do",
|
|
@@ -320,7 +320,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
320
320
|
route: "/admin/inventory",
|
|
321
321
|
markdown: "admin/inventory.md",
|
|
322
322
|
keywords: ["admin", "inventory", "user", "stories"],
|
|
323
|
-
headings: ["What you see", "
|
|
323
|
+
headings: ["What you see", "Check every action / Crawl the app", "SDK-driven discovery", "Surface mode in the graph", "Five gates", "Watch your live site", "Synthetic monitor", "Spec traceability \u2014 every fix carries the originating Action"],
|
|
324
324
|
excerpt: "The User stories page manages your inventory.yaml \u2014 every page, action and story your app should have \u2014 and shows which of them the gates cover."
|
|
325
325
|
},
|
|
326
326
|
{
|
|
@@ -347,7 +347,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
347
347
|
route: "/admin/lessons",
|
|
348
348
|
markdown: "admin/lessons.md",
|
|
349
349
|
keywords: ["admin", "lessons"],
|
|
350
|
-
headings: ["The lifecycle: how a report becomes a rule", "Tab:
|
|
350
|
+
headings: ["The lifecycle: how a report becomes a rule", "Tab: Recurring patterns (?tab=clusters)", "Tab: Rules in use (?tab=lessons)", "When to retire a lesson", "Tab: Try a change (?tab=query)", "Common tasks", "Reviewing new patterns (weekly)", "After fixing a recurring bug"],
|
|
351
351
|
excerpt: "The Lessons page turns repeat fixes into rules \u2014 when the same root cause keeps returning, Mushi records it so your editor sees it on the next PR."
|
|
352
352
|
},
|
|
353
353
|
{
|
|
@@ -410,7 +410,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
410
410
|
route: "/admin/pipeline",
|
|
411
411
|
markdown: "admin/pipeline.md",
|
|
412
412
|
keywords: ["admin", "pipeline"],
|
|
413
|
-
headings: ["Stages", "Who opens fixes", "Stuck groups", "Release trains", "Intake and deploys"],
|
|
413
|
+
headings: ["Stages", "Who opens fixes", "Stuck groups", "Release trains", "Intake and deploys", "Workers", "When a worker stops doing useful work", "Send to my local worker"],
|
|
414
414
|
excerpt: "The console Pipeline page shows every bug from report to deploy, where it is stuck and why, with one-click fixes."
|
|
415
415
|
},
|
|
416
416
|
{
|
|
@@ -491,7 +491,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
491
491
|
route: "/admin/releases",
|
|
492
492
|
markdown: "admin/releases.md",
|
|
493
493
|
keywords: ["admin", "releases"],
|
|
494
|
-
headings: ["What it generates", "Creating a release", "Release automatically when you ship", "Release entry fields", "SDK surface", "Related pages"],
|
|
494
|
+
headings: ["What it generates", "Creating a release", "Release automatically when you ship", "Batch tab: what ships next", "Release entry fields", "SDK surface", "Related pages"],
|
|
495
495
|
excerpt: "The Releases page drafts a changelog for each version from the fixes that shipped, crediting the users whose reports led to each fix."
|
|
496
496
|
},
|
|
497
497
|
{
|
|
@@ -554,7 +554,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
554
554
|
route: "/admin/settings",
|
|
555
555
|
markdown: "admin/settings.md",
|
|
556
556
|
keywords: ["admin", "settings"],
|
|
557
|
-
headings: ["Tabs", "General", "BYOK (API keys)", "Firecrawl", "Browserbase", "Health", "Dev tools", "
|
|
557
|
+
headings: ["Tabs", "General", "BYOK (API keys)", "Firecrawl", "Browserbase", "Health", "Dev tools", "Display & sidebar"],
|
|
558
558
|
excerpt: "The Settings page holds every project option \u2014 notifications, your own LLM keys, widget copy, Slack alerts and developer settings."
|
|
559
559
|
},
|
|
560
560
|
{
|
|
@@ -626,7 +626,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
626
626
|
route: "/admin/ux-runs",
|
|
627
627
|
markdown: "admin/ux-runs.md",
|
|
628
628
|
keywords: ["admin", "ux-runs", "runs", "ux"],
|
|
629
|
-
headings: ["Run in the cloud", "What you see", "File as bug", "Audit signed-in screens", "Where the changes are"],
|
|
629
|
+
headings: ["Run in the cloud", "What you see", "File as bug", "Audit signed-in screens", "First-time user test", "Where the changes are"],
|
|
630
630
|
excerpt: "Each screen your coding agent worked on in a mushi ux run, with its plan, every attempt, before and after screenshots, and what was kept."
|
|
631
631
|
},
|
|
632
632
|
{
|
|
@@ -708,7 +708,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
708
708
|
markdown: "cloud.md",
|
|
709
709
|
keywords: ["cloud"],
|
|
710
710
|
headings: ["Plans", "Sign-up flow", "Why metered on diagnoses", "Spend controls", "Self-hosting"],
|
|
711
|
-
excerpt: "Hosted Mushi Mushi \u2014 bug reports, plain-English diagnoses, and fix dispatch without running servers. Free
|
|
711
|
+
excerpt: "Hosted Mushi Mushi \u2014 bug reports, plain-English diagnoses, and fix dispatch without running servers. Free for one app with 100 diagnoses a month."
|
|
712
712
|
},
|
|
713
713
|
{
|
|
714
714
|
title: "Compare",
|
|
@@ -753,7 +753,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
753
753
|
markdown: "compare/sentry-vs-mushi.md",
|
|
754
754
|
keywords: ["compare", "sentry-vs-mushi", "sentry"],
|
|
755
755
|
headings: ["What each one is", "Side by side", "Where they overlap, and where they do not", "Running Mushi alongside Sentry", "Pick Sentry if", "Pick Mushi if", "Frequently asked questions"],
|
|
756
|
-
excerpt: "Sentry vs Mushi Mushi in 2026 \u2014 what each captures, Sentry's free tier and Seer pricing next to Mushi's
|
|
756
|
+
excerpt: "Sentry vs Mushi Mushi in 2026 \u2014 what each captures, Sentry's free tier and Seer pricing next to Mushi's free plan (1 app, 100 diagnoses), and running both."
|
|
757
757
|
},
|
|
758
758
|
{
|
|
759
759
|
title: "Concepts",
|
|
@@ -833,7 +833,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
833
833
|
route: "/concepts/closed-loop",
|
|
834
834
|
markdown: "concepts/closed-loop.md",
|
|
835
835
|
keywords: ["concepts", "closed-loop", "closed", "loop", "evolution", "thesis"],
|
|
836
|
-
headings: ["The NTSB moment software is missing", "Why the linear SDLC is the wrong unit", "Cumulative selection: why it works", "What the loop looks like in practice", "What this means for the roadmap"],
|
|
836
|
+
headings: ["What happens to a bug", "The NTSB moment software is missing", "Why the linear SDLC is the wrong unit", "Cumulative selection: why it works", "What the loop looks like in practice", "What this means for the roadmap"],
|
|
837
837
|
excerpt: "The thesis behind Mushi \u2014 why AI-built apps need a closed loop from what users feel to a verified fix, and how capture, diagnosis and fixes connect."
|
|
838
838
|
},
|
|
839
839
|
{
|
|
@@ -971,6 +971,15 @@ var MUSHI_DOCS_INDEX = [
|
|
|
971
971
|
headings: ["Choosing a Mode", "Bring Your Own Button", "Staying out of the way", "Smart Hide", "Native SDKs"],
|
|
972
972
|
excerpt: "Choose where Mushi's bug-report button lives \u2014 corner stamp, edge tab, banner, your own button via attach, or fully manual \u2014 on web and mobile."
|
|
973
973
|
},
|
|
974
|
+
{
|
|
975
|
+
title: "Sample diagnosis: Pay now does nothing on a phone",
|
|
976
|
+
url: docUrl("/demo/diagnosis"),
|
|
977
|
+
route: "/demo/diagnosis",
|
|
978
|
+
markdown: "demo/diagnosis.md",
|
|
979
|
+
keywords: ["demo", "diagnosis", "sample", "pay", "now", "does", "nothing", "phone"],
|
|
980
|
+
headings: ["Get this for your own app", "One the model wrote"],
|
|
981
|
+
excerpt: "A sample Mushi diagnosis you can read without signing up. A user's complaint, what the widget captured, the plain-English cause and the fix prompt."
|
|
982
|
+
},
|
|
974
983
|
{
|
|
975
984
|
title: "Cursor integration",
|
|
976
985
|
url: docUrl("/integrations/cursor"),
|
|
@@ -1229,7 +1238,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1229
1238
|
route: "/plugins",
|
|
1230
1239
|
markdown: "plugins/index.md",
|
|
1231
1240
|
keywords: ["plugins", "plugin", "marketplace"],
|
|
1232
|
-
headings: ["Available plugins", "Webhook delivery contract", "Build your own"],
|
|
1241
|
+
headings: ["Works with Sentry, or without it", "Available plugins", "Webhook delivery contract", "Build your own"],
|
|
1233
1242
|
excerpt: "Send Mushi events to the tools you already use through HMAC-signed Standard Webhooks \u2014 12 first-party plugins and an SDK to build your own."
|
|
1234
1243
|
},
|
|
1235
1244
|
{
|
|
@@ -1368,13 +1377,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1368
1377
|
excerpt: "Send every Mushi event to Zapier and on to thousands of apps such as Notion, Google Sheets and HubSpot \u2014 Catch Hook setup and event filters."
|
|
1369
1378
|
},
|
|
1370
1379
|
{
|
|
1371
|
-
title: "Pricing \u2014
|
|
1380
|
+
title: "Pricing \u2014 Free, Builder, Studio and self-host",
|
|
1372
1381
|
url: docUrl("/pricing"),
|
|
1373
1382
|
route: "/pricing",
|
|
1374
1383
|
markdown: "pricing.md",
|
|
1375
|
-
keywords: ["pricing", "free", "
|
|
1376
|
-
headings: ["Plans", "What counts as a diagnosis", "Pricing estimator", "Example bills", "Why diagnoses, not events", "
|
|
1377
|
-
excerpt: "Mushi Mushi pricing \u2014
|
|
1384
|
+
keywords: ["pricing", "free", "builder", "studio", "self-host"],
|
|
1385
|
+
headings: ["Plans", "What counts as a diagnosis", "Pricing estimator", "Example bills", "Why apps, not reports?", "Why diagnoses, not events", "Your own AI key and the self-host path", "Compared to Sentry + Seer"],
|
|
1386
|
+
excerpt: "Mushi Mushi pricing \u2014 free for one app and 100 AI bug diagnoses a month. Builder $29/mo for 3 apps, Studio $79/mo for 10. Free to self-host."
|
|
1378
1387
|
},
|
|
1379
1388
|
{
|
|
1380
1389
|
title: "Quickstart \u2014 fix your first bug in 60 seconds",
|
|
@@ -1382,7 +1391,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1382
1391
|
route: "/quickstart",
|
|
1383
1392
|
markdown: "quickstart/index.md",
|
|
1384
1393
|
keywords: ["quickstart", "fix", "first", "bug", "60", "seconds", "choose", "stack"],
|
|
1385
|
-
headings: ["
|
|
1394
|
+
headings: ["Install", "Send your first report", "Get your first fix", "Pick your framework", "Where to start", "Keys and settings", "Troubleshooting"],
|
|
1386
1395
|
excerpt: "Install Mushi with npx mushi-mushi, connect Cursor or Claude Code over MCP, and turn user bug reports into plain-English diagnoses with ready fixes."
|
|
1387
1396
|
},
|
|
1388
1397
|
{
|
|
@@ -1418,7 +1427,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1418
1427
|
route: "/quickstart/cli-console-loop",
|
|
1419
1428
|
markdown: "quickstart/cli-console-loop.md",
|
|
1420
1429
|
keywords: ["quickstart", "cli-console-loop", "cli", "console", "loop", "setup"],
|
|
1421
|
-
headings: ["
|
|
1430
|
+
headings: ["Set up in five steps", "1. Run the wizard", "2. Approve in the browser", "3. Pick or create a project", "4. SDK installed", "5. Wire Cursor MCP (optional but recommended)", "Which CLI command?", "Browser sign-in flow (recommended)"],
|
|
1422
1431
|
excerpt: "How npx mushi-mushi creates a project, mints an SDK key and installs the SDK through browser sign-in, and how to recover when the setup loop fails."
|
|
1423
1432
|
},
|
|
1424
1433
|
{
|
|
@@ -1436,7 +1445,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1436
1445
|
route: "/quickstart/incident-loop",
|
|
1437
1446
|
markdown: "quickstart/incident-loop.md",
|
|
1438
1447
|
keywords: ["quickstart", "incident-loop", "incident", "loop", "bug", "fix", "prompt"],
|
|
1439
|
-
headings: ["No MCP? Copy the fix prompt", "
|
|
1448
|
+
headings: ["No MCP? Copy the fix prompt", "Before you start", "The loop", "Capture or pick a report", "Pull the fix context", "Get a deeper fix plan (optional)", "Paste and ship", "Troubleshooting"],
|
|
1440
1449
|
excerpt: "Run npx mushi-mushi, ship, and turn your first user-reported bug into a plain-English diagnosis and a paste-ready fix for Cursor or Claude Code."
|
|
1441
1450
|
},
|
|
1442
1451
|
{
|
|
@@ -1448,13 +1457,31 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1448
1457
|
headings: ["Install (Swift Package Manager)", "Initialize", "Open the widget or submit a report", "Sentry"],
|
|
1449
1458
|
excerpt: "Add Mushi's native Swift SDK to an iOS app with Swift Package Manager \u2014 shake-to-report, offline queue and device context. Preview build, not on CocoaPods yet."
|
|
1450
1459
|
},
|
|
1460
|
+
{
|
|
1461
|
+
title: "Mushi in Lovable or Bolt",
|
|
1462
|
+
url: docUrl("/quickstart/lovable-bolt"),
|
|
1463
|
+
route: "/quickstart/lovable-bolt",
|
|
1464
|
+
markdown: "quickstart/lovable-bolt.md",
|
|
1465
|
+
keywords: ["quickstart", "lovable-bolt", "lovable", "bolt", "no", "terminal"],
|
|
1466
|
+
headings: ["Get your script tag", "Paste it into Lovable or Bolt", "Publish and send a test report", "Fix a real bug", "Read reports inside Lovable", "Where the key goes, and is it safe?", "Change how the button looks", "If nothing shows up"],
|
|
1467
|
+
excerpt: "Add Mushi to a Lovable or Bolt app without a terminal. Paste one script tag through your prompt, then read each bug's plain-English cause and fix prompt."
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
title: "Ask Lovable why it broke",
|
|
1471
|
+
url: docUrl("/quickstart/lovable-mcp"),
|
|
1472
|
+
route: "/quickstart/lovable-mcp",
|
|
1473
|
+
markdown: "quickstart/lovable-mcp.md",
|
|
1474
|
+
keywords: ["quickstart", "lovable-mcp", "lovable", "mcp", "ask", "broke"],
|
|
1475
|
+
headings: ["Add Mushi to Lovable", "Open the custom MCP form", "Fill in the form", "Sign in and approve", "Ask Lovable", "Claude Code: one paste", "Cursor: one click", "Bolt"],
|
|
1476
|
+
excerpt: "Add Mushi to Lovable as an MCP connector in three steps; Lovable reads the plain-English diagnosis and fixes the bug. Claude Code and Cursor in one paste."
|
|
1477
|
+
},
|
|
1451
1478
|
{
|
|
1452
1479
|
title: "MCP server for bug fixing in Cursor & Claude Code",
|
|
1453
1480
|
url: docUrl("/quickstart/mcp"),
|
|
1454
1481
|
route: "/quickstart/mcp",
|
|
1455
1482
|
markdown: "quickstart/mcp.md",
|
|
1456
1483
|
keywords: ["quickstart", "mcp", "server", "bug", "fixing", "cursor", "claude", "code"],
|
|
1457
|
-
headings: ["
|
|
1484
|
+
headings: ["Connect in three steps", "Add the Mushi server", "Sign in", "Ask your editor", "How sign-in works (OAuth, no keys to copy)", "One-liner setup (recommended)", "Claude Code plugin", "Smithery (hosted MCP)"],
|
|
1458
1485
|
excerpt: "Set up the Mushi MCP server with npx mushi-mushi setup \u2014 read bug reports, get fix context, and dispatch fixes from Cursor, Claude Code, or Codex."
|
|
1459
1486
|
},
|
|
1460
1487
|
{
|
|
@@ -3635,6 +3662,67 @@ function createMushiServer(config) {
|
|
|
3635
3662
|
return jsonResult(await apiCall(`/v1/admin/ci/compare?${qs}`, void 0, { minTimeoutMs: 6e4 }));
|
|
3636
3663
|
}
|
|
3637
3664
|
);
|
|
3665
|
+
server.registerTool(
|
|
3666
|
+
"get_ci_bill",
|
|
3667
|
+
{
|
|
3668
|
+
title: titleOf("get_ci_bill"),
|
|
3669
|
+
description: descOf("get_ci_bill"),
|
|
3670
|
+
annotations: annotationsFor("get_ci_bill"),
|
|
3671
|
+
inputSchema: z.object({
|
|
3672
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project; omitted with an account-level key, every project you can read"),
|
|
3673
|
+
days: z.number().int().min(1).max(90).optional().describe("Window in days (default 30)")
|
|
3674
|
+
}),
|
|
3675
|
+
outputSchema: z.looseObject({
|
|
3676
|
+
window: z.unknown().optional(),
|
|
3677
|
+
previousWindow: z.unknown().optional(),
|
|
3678
|
+
provenance: z.string().optional().describe("measured: from GitHub's bill"),
|
|
3679
|
+
currency: z.string().optional(),
|
|
3680
|
+
available: z.boolean().optional(),
|
|
3681
|
+
repoScoped: z.boolean().optional().describe("Only your projects' repos: you are not a member of the organization"),
|
|
3682
|
+
unavailableReason: z.string().nullable().optional().describe("Why there is no bill, and how to connect one"),
|
|
3683
|
+
owners: z.array(z.looseObject({})).optional(),
|
|
3684
|
+
month: z.looseObject({}).optional().describe("This calendar month so far: grossUsd, discountUsd, netUsd"),
|
|
3685
|
+
totals: z.looseObject({}).optional(),
|
|
3686
|
+
previousTotals: z.looseObject({}).nullable().optional(),
|
|
3687
|
+
change: z.looseObject({}).nullable().optional(),
|
|
3688
|
+
windowComplete: z.boolean().optional(),
|
|
3689
|
+
byRepo: z.array(z.looseObject({})).optional(),
|
|
3690
|
+
bySku: z.array(z.looseObject({})).optional(),
|
|
3691
|
+
byDay: z.array(z.looseObject({})).optional(),
|
|
3692
|
+
dataThrough: z.string().nullable().optional(),
|
|
3693
|
+
agentShare: z.looseObject({}).nullable().optional().describe("Paid minutes on Mushi agent branches (estimated)")
|
|
3694
|
+
})
|
|
3695
|
+
},
|
|
3696
|
+
async (args) => {
|
|
3697
|
+
const pid = args.projectId ? await resolveProjectId(args.projectId) : projectId || void 0;
|
|
3698
|
+
const qs = new URLSearchParams({ days: String(args.days ?? 30) });
|
|
3699
|
+
if (pid) qs.set("project_id", pid);
|
|
3700
|
+
return jsonResult(await apiCall(`/v1/admin/ci/bill?${qs}`, void 0, { minTimeoutMs: 6e4 }));
|
|
3701
|
+
}
|
|
3702
|
+
);
|
|
3703
|
+
server.registerTool(
|
|
3704
|
+
"get_worker_status",
|
|
3705
|
+
{
|
|
3706
|
+
title: titleOf("get_worker_status"),
|
|
3707
|
+
description: descOf("get_worker_status"),
|
|
3708
|
+
annotations: annotationsFor("get_worker_status"),
|
|
3709
|
+
inputSchema: z.object({
|
|
3710
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project; omitted with an account-level key, every project you can read")
|
|
3711
|
+
}),
|
|
3712
|
+
outputSchema: z.looseObject({
|
|
3713
|
+
generatedAt: z.string().optional(),
|
|
3714
|
+
flags: z.array(z.looseObject({})).optional().describe("Worst first: what stops a worker, why, and the fix"),
|
|
3715
|
+
projects: z.array(z.looseObject({})).optional(),
|
|
3716
|
+
hosts: z.array(z.looseObject({})).optional(),
|
|
3717
|
+
lanes: z.array(z.looseObject({})).optional()
|
|
3718
|
+
})
|
|
3719
|
+
},
|
|
3720
|
+
async (args) => {
|
|
3721
|
+
const pid = args.projectId ? await resolveProjectId(args.projectId) : projectId || void 0;
|
|
3722
|
+
const qs = pid ? `?${new URLSearchParams({ projectId: pid })}` : "";
|
|
3723
|
+
return jsonResult(await apiCall(`/v1/admin/work/lanes${qs}`));
|
|
3724
|
+
}
|
|
3725
|
+
);
|
|
3638
3726
|
server.registerTool(
|
|
3639
3727
|
"request_ci_placement_change",
|
|
3640
3728
|
{
|
|
@@ -3655,6 +3743,77 @@ function createMushiServer(config) {
|
|
|
3655
3743
|
return jsonText(await apiCall("/v1/admin/ci/placement/requests", { method: "POST", body: JSON.stringify(body) }));
|
|
3656
3744
|
}
|
|
3657
3745
|
);
|
|
3746
|
+
server.registerTool(
|
|
3747
|
+
"open_ci_cost_fix",
|
|
3748
|
+
{
|
|
3749
|
+
title: titleOf("open_ci_cost_fix"),
|
|
3750
|
+
description: descOf("open_ci_cost_fix"),
|
|
3751
|
+
annotations: annotationsFor("open_ci_cost_fix"),
|
|
3752
|
+
inputSchema: z.object({
|
|
3753
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project"),
|
|
3754
|
+
repo: z.string().regex(/^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/).describe("owner/repo, connected to the project"),
|
|
3755
|
+
workflowPath: z.string().max(200).regex(/^\.github\/workflows\/[A-Za-z0-9._/-]+\.ya?ml$/).describe("The workflow file, e.g. .github/workflows/ci.yml"),
|
|
3756
|
+
kind: z.enum(["add_concurrency", "skip_drafts", "weekly_cron", "ignore_docs_paths"]).describe("The fix (advice[].autofix.kind)")
|
|
3757
|
+
})
|
|
3758
|
+
},
|
|
3759
|
+
async (args) => {
|
|
3760
|
+
const pid = await resolveProjectId(args.projectId);
|
|
3761
|
+
const body = { projectId: pid, repo: args.repo, workflowPath: args.workflowPath, kind: args.kind };
|
|
3762
|
+
return jsonText(await apiCall("/v1/admin/ci/cost-fixes", { method: "POST", body: JSON.stringify(body) }));
|
|
3763
|
+
}
|
|
3764
|
+
);
|
|
3765
|
+
const COST_FIX_KIND = z.enum(["add_concurrency", "skip_drafts", "weekly_cron", "ignore_docs_paths"]);
|
|
3766
|
+
const WORKFLOW_PATH = z.string().max(200).regex(/^\.github\/workflows\/[A-Za-z0-9._/-]+\.ya?ml$/);
|
|
3767
|
+
server.registerTool(
|
|
3768
|
+
"preview_ci_cost_fix_rollout",
|
|
3769
|
+
{
|
|
3770
|
+
title: titleOf("preview_ci_cost_fix_rollout"),
|
|
3771
|
+
description: descOf("preview_ci_cost_fix_rollout"),
|
|
3772
|
+
annotations: annotationsFor("preview_ci_cost_fix_rollout"),
|
|
3773
|
+
inputSchema: z.object({
|
|
3774
|
+
projectId: z.string().optional().describe("Limit it to one app; omitted with an account-level key, every app you may change")
|
|
3775
|
+
})
|
|
3776
|
+
},
|
|
3777
|
+
async (args) => {
|
|
3778
|
+
const pid = args.projectId ? await resolveProjectId(args.projectId) : projectId || void 0;
|
|
3779
|
+
const qs = pid ? `?project_id=${encodeURIComponent(pid)}` : "";
|
|
3780
|
+
return jsonText(await apiCall(`/v1/admin/ci/cost-fix-rollout${qs}`, void 0, { minTimeoutMs: 6e4 }));
|
|
3781
|
+
}
|
|
3782
|
+
);
|
|
3783
|
+
server.registerTool(
|
|
3784
|
+
"apply_ci_cost_fix_rollout",
|
|
3785
|
+
{
|
|
3786
|
+
title: titleOf("apply_ci_cost_fix_rollout"),
|
|
3787
|
+
description: descOf("apply_ci_cost_fix_rollout"),
|
|
3788
|
+
annotations: annotationsFor("apply_ci_cost_fix_rollout"),
|
|
3789
|
+
inputSchema: z.object({
|
|
3790
|
+
repos: z.array(
|
|
3791
|
+
z.object({
|
|
3792
|
+
projectId: z.string().describe("The app the repo is connected to (preview repos[].projectId)"),
|
|
3793
|
+
repo: z.string().regex(/^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/).describe("owner/repo"),
|
|
3794
|
+
items: z.array(z.object({ workflowPath: WORKFLOW_PATH, kind: COST_FIX_KIND })).min(1).max(20)
|
|
3795
|
+
})
|
|
3796
|
+
).min(1).max(10).describe("One entry per repo: the ready items from preview_ci_cost_fix_rollout")
|
|
3797
|
+
})
|
|
3798
|
+
},
|
|
3799
|
+
async (args) => {
|
|
3800
|
+
return jsonText(await apiCall("/v1/admin/ci/cost-fix-rollout", { method: "POST", body: JSON.stringify({ repos: args.repos }) }, { minTimeoutMs: 6e4 }));
|
|
3801
|
+
}
|
|
3802
|
+
);
|
|
3803
|
+
server.registerTool(
|
|
3804
|
+
"get_ci_cost_fix_bundle",
|
|
3805
|
+
{
|
|
3806
|
+
title: titleOf("get_ci_cost_fix_bundle"),
|
|
3807
|
+
description: descOf("get_ci_cost_fix_bundle"),
|
|
3808
|
+
annotations: annotationsFor("get_ci_cost_fix_bundle"),
|
|
3809
|
+
inputSchema: z.object({
|
|
3810
|
+
bundleId: z.string().uuid().describe("results[].bundleId from apply_ci_cost_fix_rollout")
|
|
3811
|
+
})
|
|
3812
|
+
},
|
|
3813
|
+
async (args) => {
|
|
3814
|
+
return jsonText(await apiCall(`/v1/admin/ci/cost-fix-bundles/${encodeURIComponent(args.bundleId)}`));
|
|
3815
|
+
}
|
|
3816
|
+
);
|
|
3658
3817
|
server.registerTool(
|
|
3659
3818
|
"explain_finding",
|
|
3660
3819
|
{
|
|
@@ -5864,13 +6023,19 @@ Be specific. No generic advice.`
|
|
|
5864
6023
|
description: descOf("list_qa_story_runs", TDD_TOOL_CATALOG),
|
|
5865
6024
|
annotations: annotationsFor("list_qa_story_runs", TDD_TOOL_CATALOG),
|
|
5866
6025
|
inputSchema: z.object({
|
|
6026
|
+
// `project_id` is not a second field. registerTool wraps this schema
|
|
6027
|
+
// with acceptSnakeCaseAliases, which calls normalizeArgAliases
|
|
6028
|
+
// (arg-aliases.ts) and renames project_id to projectId before zod.
|
|
6029
|
+
projectId: z.string().optional().describe("Project UUID that owns the story. Defaults to the configured project. On an account connection, pass the project the story belongs to."),
|
|
5867
6030
|
storyId: z.string().describe("QA story id (uuid)"),
|
|
5868
6031
|
limit: z.number().int().min(1).max(50).optional().default(10).describe("Max runs to return (default 10)")
|
|
5869
6032
|
})
|
|
5870
6033
|
},
|
|
5871
|
-
async ({ storyId, limit }) => {
|
|
6034
|
+
async ({ projectId: projectId2, storyId, limit }) => {
|
|
6035
|
+
const { projectId: pid, headers } = await projectScopeHeaders(projectId2);
|
|
5872
6036
|
const data = await apiCall(
|
|
5873
|
-
`/v1/admin/projects/${
|
|
6037
|
+
`/v1/admin/projects/${pid}/qa-stories/${storyId}/runs?limit=${limit ?? 10}`,
|
|
6038
|
+
{ headers }
|
|
5874
6039
|
);
|
|
5875
6040
|
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
5876
6041
|
}
|
|
@@ -5882,15 +6047,23 @@ Be specific. No generic advice.`
|
|
|
5882
6047
|
description: descOf("get_qa_story_run", TDD_TOOL_CATALOG),
|
|
5883
6048
|
annotations: annotationsFor("get_qa_story_run", TDD_TOOL_CATALOG),
|
|
5884
6049
|
inputSchema: z.object({
|
|
6050
|
+
// `project_id` is not a second field. registerTool wraps this schema
|
|
6051
|
+
// with acceptSnakeCaseAliases, which calls normalizeArgAliases
|
|
6052
|
+
// (arg-aliases.ts) and renames project_id to projectId before zod.
|
|
6053
|
+
projectId: z.string().optional().describe(
|
|
6054
|
+
"Project UUID that owns the story. Defaults to the configured project. On an account connection, pass the project the story belongs to."
|
|
6055
|
+
),
|
|
5885
6056
|
storyId: z.string().describe("QA story id (uuid)"),
|
|
5886
6057
|
runId: z.string().describe("Run id (uuid) to fetch detail for")
|
|
5887
6058
|
})
|
|
5888
6059
|
},
|
|
5889
|
-
async ({ storyId, runId }) => {
|
|
6060
|
+
async ({ projectId: projectId2, storyId, runId }) => {
|
|
6061
|
+
const { projectId: pid, headers } = await projectScopeHeaders(projectId2);
|
|
5890
6062
|
const data = await apiCall(
|
|
5891
|
-
`/v1/admin/projects/${
|
|
6063
|
+
`/v1/admin/projects/${pid}/qa-stories/${storyId}/runs?limit=50`,
|
|
6064
|
+
{ headers }
|
|
5892
6065
|
);
|
|
5893
|
-
const run = data?.
|
|
6066
|
+
const run = data?.runs?.find((r) => r.id === runId) ?? null;
|
|
5894
6067
|
if (!run) {
|
|
5895
6068
|
throw new MushiApiError(
|
|
5896
6069
|
404,
|
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.
|
|
4
|
+
"version": "0.30.0",
|
|
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",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@modelcontextprotocol/core": "^2.3.1",
|
|
46
46
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
47
47
|
"zod": "^4.6.7",
|
|
48
|
-
"@mushi-mushi/core": "^1.33.
|
|
48
|
+
"@mushi-mushi/core": "^1.33.4"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@sentry/node": "^10.57.0"
|