@mushi-mushi/mcp 0.30.7 → 0.31.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/README.md +3 -3
- package/dist/catalog.js +1 -1
- package/dist/{chunk-H64BFSBM.js → chunk-KEMYF42N.js} +25 -0
- package/dist/{chunk-YOLJIBQR.js → chunk-SHA56ZRG.js} +4 -0
- package/dist/clients.d.ts +1 -1
- package/dist/clients.js +2 -2
- package/dist/feature-groups.js +1 -1
- package/dist/index.js +210 -27
- package/dist/server.js +183 -29
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mushi-mushi/mcp
|
|
2
2
|
|
|
3
|
-
> **Your AI
|
|
3
|
+
> **Your AI built it. Mushi Mushi makes it better.**
|
|
4
4
|
|
|
5
5
|
[](https://kensaur.us/mushi-mushi/docs/connect)
|
|
6
6
|
[](https://kensaur.us/mushi-mushi/docs/connect)
|
|
@@ -31,7 +31,7 @@ Restart the editor and ask *"what's broken in prod?"*. For Cursor and Claude, `s
|
|
|
31
31
|
"mcpServers": {
|
|
32
32
|
"mushi-mushi": {
|
|
33
33
|
"command": "npx",
|
|
34
|
-
"args": ["-y", "@mushi-mushi/mcp@0.
|
|
34
|
+
"args": ["-y", "@mushi-mushi/mcp@0.31.1"],
|
|
35
35
|
"env": {
|
|
36
36
|
"MUSHI_API_KEY": "mushi_xxxxxxxxxxxxxxxxxxxx",
|
|
37
37
|
"MUSHI_PROJECT_ID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
@@ -61,7 +61,7 @@ Claude Desktop does not expand `${VAR}` references in this file; Cursor and VS C
|
|
|
61
61
|
| `diagnose_setup` | Explains a broken install and the one next step |
|
|
62
62
|
| `search_mushi_docs` | Answers setup and API questions from the docs |
|
|
63
63
|
|
|
64
|
-
The full catalog has
|
|
64
|
+
The full catalog has 133 tools, plus 8 resources (`project://dashboard`, `project://stats`, …) and 4 prompts (`summarize_report_for_fix`, `triage_next_steps`, …). Every tool carries read-only and destructive hints, so your editor can ask before it changes anything. Full list: [MCP tool reference](https://kensaur.us/mushi-mushi/docs/sdks/mcp-tools).
|
|
65
65
|
|
|
66
66
|
**Tool groups.** New installs get a lean default: `triage`, `fixes`, `inventory`, `setup`, `docs`. Turn on more with `MUSHI_FEATURES=triage,qa,codebase` (stdio) or `?features=…` on the hosted URL, or everything with `all`. Groups: `qa`, `skills`, `codebase`, `rewards`, `admin`, `audit`, `usage`. For a chat tool such as Lovable, or an editor that caps how many tools it loads, `vibe` gives about a dozen tools for the core loop. Add `?read_only=1` to the hosted URL to hide every write tool.
|
|
67
67
|
|
package/dist/catalog.js
CHANGED
|
@@ -788,6 +788,31 @@ var TOOL_CATALOG = [
|
|
|
788
788
|
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
789
789
|
returnsUntrusted: true,
|
|
790
790
|
useCase: "What do users do right after they mint an API key?"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "get_journeys",
|
|
794
|
+
title: "User journeys and where people get stuck",
|
|
795
|
+
description: "Where do people get stuck in the app, and what should change? Reads the Journey optimizer for one project: page-to-page moves from real visits over the last days (7, 30 default, or 90) joined with the latest site scan's links. Returns { days, liveUrl, score (0-100, 100 = no findings), rootPath, stats: { sessions, pageViews, pages, avgPagesPerSession, bounceRate, sampled }, scan, mapScan, recording ({ until, sampleRate } of the on-demand visit recording; until null = off), flows (top 10 common paths), findingsTotal, findingsByKind, findings: [{ id, kind, severity, pages, title, detail, suggestion, prompt }], next }. Kinds: broken, dead_end, high_exit, loop, reload, duplicate_page, route_variant, duplicate_title, orphan, deep_page, unvisited. Each finding's prompt is a ready instruction for a coding agent in the app's repo. Optional kind filters the findings, limit caps them (default 20, max 100), includeGraph adds the page nodes and edges (large). Read-only. With no scan yet, call scan_site_journeys first; for event-level funnels use query_funnel or get_user_paths.",
|
|
796
|
+
scope: "mcp:read",
|
|
797
|
+
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
798
|
+
returnsUntrusted: true,
|
|
799
|
+
useCase: "Where do people get stuck in my app, and what should I change?"
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
name: "scan_site_journeys",
|
|
803
|
+
title: "Scan the live site for the journey map",
|
|
804
|
+
description: "Start a site scan for the Journey optimizer: Firecrawl maps the live site and reads up to 40 pages (no LLM), keeping each page's title, internal links and a content fingerprint, so get_journeys can find orphan, duplicate and deep pages. Optional baseUrl (the public https:// address; defaults to the one Mushi Mushi already knows) and projectId. Firecrawl reads the pages on its side, usually within a few minutes; each get_journeys call moves the scan on, so call it again in about two minutes. Returns { scan: { id, status, baseUrl, pageCount, error, createdAt, finishedAt }, next }. One scan at a time per app (409 SCAN_RUNNING) and at most one every 10 minutes (429 SCAN_TOO_SOON); NO_LIVE_URL when no address is known, UNSAFE_URL for a private address; viewers cannot scan. Uses the project's Firecrawl key. Write: it stores a scan; nothing in the app or repo changes.",
|
|
805
|
+
scope: "mcp:write",
|
|
806
|
+
hints: { readOnly: false, destructive: false, idempotent: false, openWorld: true },
|
|
807
|
+
useCase: "I just shipped new pages: map the site again."
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
name: "record_journeys",
|
|
811
|
+
title: "Record visits for the journey map",
|
|
812
|
+
description: "Open, extend or stop the on-demand visit recording window for the Journey optimizer. Apps whose Mushi Mushi SDK runs trackSessions: 'on-demand' send no visits until a window is open; then that share of visitors is recorded until it ends (apps on the default trackSessions: true always record). hours is 1 to 168 from now, or 0 to stop; optional sampleRate is the share of visitors, above 0 and at most 1 (0.1 = one in ten; unset keeps the current share, 0.1 by default), and projectId. Returns { recording: { until, sampleRate }, next } (until null = off). Calling it again replaces the window. Viewers cannot record. Write: it changes the app's recording setting; nothing in the repo changes. Read the results with get_journeys.",
|
|
813
|
+
scope: "mcp:write",
|
|
814
|
+
hints: { readOnly: false, destructive: false, idempotent: true, openWorld: true },
|
|
815
|
+
useCase: "Record one in ten visitors for the next day so I can see where people get stuck."
|
|
791
816
|
}
|
|
792
817
|
];
|
|
793
818
|
var RESOURCE_CATALOG = [
|
|
@@ -53,6 +53,10 @@ var TOOL_FEATURE_MAP = {
|
|
|
53
53
|
suggest_fix: "triage",
|
|
54
54
|
get_graph_neighborhood: "triage",
|
|
55
55
|
get_graph_node: "triage",
|
|
56
|
+
// Journey optimizer (ADR 0058): where people get stuck, with fix prompts.
|
|
57
|
+
get_journeys: "triage",
|
|
58
|
+
scan_site_journeys: "triage",
|
|
59
|
+
record_journeys: "triage",
|
|
56
60
|
// inventory
|
|
57
61
|
get_inventory: "inventory",
|
|
58
62
|
diff_inventory: "inventory",
|
package/dist/clients.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ import { FeatureGroup } from './feature-groups.js';
|
|
|
54
54
|
* editor launch. Synced to package.json by `scripts/sync-mcp-pin.mjs` — never
|
|
55
55
|
* hand-edit the version.
|
|
56
56
|
*/
|
|
57
|
-
declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@0.
|
|
57
|
+
declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.1";
|
|
58
58
|
interface StdioConfig {
|
|
59
59
|
command: string;
|
|
60
60
|
args: string[];
|
package/dist/clients.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
DEFAULT_FEATURE_GROUPS,
|
|
6
6
|
appendFeaturesToUrl,
|
|
7
7
|
featuresQueryString
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SHA56ZRG.js";
|
|
9
9
|
|
|
10
10
|
// src/clients.ts
|
|
11
|
-
var MCP_PIN_SPEC = "@mushi-mushi/mcp@0.
|
|
11
|
+
var MCP_PIN_SPEC = "@mushi-mushi/mcp@0.31.1";
|
|
12
12
|
var PIN_SPEC_RE = /^@mushi-mushi\/mcp@\d+\.\d+\.\d+$/;
|
|
13
13
|
function pinOf(pinSpec) {
|
|
14
14
|
return pinSpec && PIN_SPEC_RE.test(pinSpec) ? pinSpec : MCP_PIN_SPEC;
|
package/dist/feature-groups.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -864,6 +864,31 @@ var TOOL_CATALOG = [
|
|
|
864
864
|
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
865
865
|
returnsUntrusted: true,
|
|
866
866
|
useCase: "What do users do right after they mint an API key?"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
name: "get_journeys",
|
|
870
|
+
title: "User journeys and where people get stuck",
|
|
871
|
+
description: "Where do people get stuck in the app, and what should change? Reads the Journey optimizer for one project: page-to-page moves from real visits over the last days (7, 30 default, or 90) joined with the latest site scan's links. Returns { days, liveUrl, score (0-100, 100 = no findings), rootPath, stats: { sessions, pageViews, pages, avgPagesPerSession, bounceRate, sampled }, scan, mapScan, recording ({ until, sampleRate } of the on-demand visit recording; until null = off), flows (top 10 common paths), findingsTotal, findingsByKind, findings: [{ id, kind, severity, pages, title, detail, suggestion, prompt }], next }. Kinds: broken, dead_end, high_exit, loop, reload, duplicate_page, route_variant, duplicate_title, orphan, deep_page, unvisited. Each finding's prompt is a ready instruction for a coding agent in the app's repo. Optional kind filters the findings, limit caps them (default 20, max 100), includeGraph adds the page nodes and edges (large). Read-only. With no scan yet, call scan_site_journeys first; for event-level funnels use query_funnel or get_user_paths.",
|
|
872
|
+
scope: "mcp:read",
|
|
873
|
+
hints: { readOnly: true, idempotent: true, openWorld: true },
|
|
874
|
+
returnsUntrusted: true,
|
|
875
|
+
useCase: "Where do people get stuck in my app, and what should I change?"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
name: "scan_site_journeys",
|
|
879
|
+
title: "Scan the live site for the journey map",
|
|
880
|
+
description: "Start a site scan for the Journey optimizer: Firecrawl maps the live site and reads up to 40 pages (no LLM), keeping each page's title, internal links and a content fingerprint, so get_journeys can find orphan, duplicate and deep pages. Optional baseUrl (the public https:// address; defaults to the one Mushi Mushi already knows) and projectId. Firecrawl reads the pages on its side, usually within a few minutes; each get_journeys call moves the scan on, so call it again in about two minutes. Returns { scan: { id, status, baseUrl, pageCount, error, createdAt, finishedAt }, next }. One scan at a time per app (409 SCAN_RUNNING) and at most one every 10 minutes (429 SCAN_TOO_SOON); NO_LIVE_URL when no address is known, UNSAFE_URL for a private address; viewers cannot scan. Uses the project's Firecrawl key. Write: it stores a scan; nothing in the app or repo changes.",
|
|
881
|
+
scope: "mcp:write",
|
|
882
|
+
hints: { readOnly: false, destructive: false, idempotent: false, openWorld: true },
|
|
883
|
+
useCase: "I just shipped new pages: map the site again."
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
name: "record_journeys",
|
|
887
|
+
title: "Record visits for the journey map",
|
|
888
|
+
description: "Open, extend or stop the on-demand visit recording window for the Journey optimizer. Apps whose Mushi Mushi SDK runs trackSessions: 'on-demand' send no visits until a window is open; then that share of visitors is recorded until it ends (apps on the default trackSessions: true always record). hours is 1 to 168 from now, or 0 to stop; optional sampleRate is the share of visitors, above 0 and at most 1 (0.1 = one in ten; unset keeps the current share, 0.1 by default), and projectId. Returns { recording: { until, sampleRate }, next } (until null = off). Calling it again replaces the window. Viewers cannot record. Write: it changes the app's recording setting; nothing in the repo changes. Read the results with get_journeys.",
|
|
889
|
+
scope: "mcp:write",
|
|
890
|
+
hints: { readOnly: false, destructive: false, idempotent: true, openWorld: true },
|
|
891
|
+
useCase: "Record one in ten visitors for the next day so I can see where people get stuck."
|
|
867
892
|
}
|
|
868
893
|
];
|
|
869
894
|
var TDD_TOOL_CATALOG = [
|
|
@@ -1350,6 +1375,10 @@ var TOOL_FEATURE_MAP = {
|
|
|
1350
1375
|
suggest_fix: "triage",
|
|
1351
1376
|
get_graph_neighborhood: "triage",
|
|
1352
1377
|
get_graph_node: "triage",
|
|
1378
|
+
// Journey optimizer (ADR 0058): where people get stuck, with fix prompts.
|
|
1379
|
+
get_journeys: "triage",
|
|
1380
|
+
scan_site_journeys: "triage",
|
|
1381
|
+
record_journeys: "triage",
|
|
1353
1382
|
// inventory
|
|
1354
1383
|
get_inventory: "inventory",
|
|
1355
1384
|
diff_inventory: "inventory",
|
|
@@ -1567,13 +1596,13 @@ function docUrl(route) {
|
|
|
1567
1596
|
}
|
|
1568
1597
|
var MUSHI_DOCS_INDEX = [
|
|
1569
1598
|
{
|
|
1570
|
-
title: "Mushi Mushi \u2014
|
|
1599
|
+
title: "Mushi Mushi \u2014 one place to improve your AI-built app",
|
|
1571
1600
|
url: docUrl("/"),
|
|
1572
1601
|
route: "/",
|
|
1573
1602
|
markdown: "index.md",
|
|
1574
|
-
keywords: ["
|
|
1603
|
+
keywords: ["one", "place", "improve", "ai-built", "app"],
|
|
1575
1604
|
headings: ["Will my customers actually report bugs?", "See it work, on a real bug", "What it takes", "Why I built it", "What this is (and is not)"],
|
|
1576
|
-
excerpt: "Your AI
|
|
1605
|
+
excerpt: "Your AI built it. Mushi Mushi makes it better: it finds what breaks, where people get stuck and what the code needs, then hands you the fix."
|
|
1577
1606
|
},
|
|
1578
1607
|
{
|
|
1579
1608
|
title: "Mushi Mushi admin console",
|
|
@@ -1872,6 +1901,15 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1872
1901
|
headings: ["Understanding the score", "Runs table", "Run detail drawer", "Score timeline", "Iterations list", "Succeeded run", "Creating a run", "Common tasks"],
|
|
1873
1902
|
excerpt: "The Improvement runs page in Mushi Mushi queues runs where one AI critiques a live URL against your goal and a second scores it, iteration by iteration."
|
|
1874
1903
|
},
|
|
1904
|
+
{
|
|
1905
|
+
title: "Journey optimizer",
|
|
1906
|
+
url: docUrl("/admin/journeys"),
|
|
1907
|
+
route: "/admin/journeys",
|
|
1908
|
+
markdown: "admin/journeys.md",
|
|
1909
|
+
keywords: ["admin", "journeys", "journey", "optimizer"],
|
|
1910
|
+
headings: ["Record visits only when you need them", "Scan your site", "Read the map", "What it finds", "Hand it to your coding agent", "Related"],
|
|
1911
|
+
excerpt: "Map how people move through your app, then fix dead ends, pages people leave, duplicate pages and pages nothing links to, with prompts for your coding agent."
|
|
1912
|
+
},
|
|
1875
1913
|
{
|
|
1876
1914
|
title: "Triage grading",
|
|
1877
1915
|
url: docUrl("/admin/judge"),
|
|
@@ -2779,7 +2817,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
2779
2817
|
markdown: "migrations/vue-2-to-vue-3.md",
|
|
2780
2818
|
keywords: ["migrations", "vue-2-to-vue-3", "vue"],
|
|
2781
2819
|
headings: ["What changes (high level)", "API mapping (Mushi Mushi)", "Migration checklist", "Common gotchas", "Mushi Mushi during the migration", "References"],
|
|
2782
|
-
excerpt: "Upgrade a Vue 2 app to Vue 3 and move from the plain Mushi Mushi web SDK to the
|
|
2820
|
+
excerpt: "Upgrade a Vue 2 app to Vue 3 and move from the plain Mushi Mushi web SDK to the mushi-mushi/vue plugin, with an interactive migration checklist."
|
|
2783
2821
|
},
|
|
2784
2822
|
{
|
|
2785
2823
|
title: "Open metrics",
|
|
@@ -3094,7 +3132,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3094
3132
|
markdown: "quickstart/react.md",
|
|
3095
3133
|
keywords: ["quickstart", "react", "bug", "report", "widget"],
|
|
3096
3134
|
headings: ["Try it live", "Get your project ID and API key", "1. Install", "2. Wrap your app", "Next.js App Router", "3. Trigger reports", "4. Verify", "Next steps"],
|
|
3097
|
-
excerpt: "Free, open-source bug report widget for React and Next.js: install
|
|
3135
|
+
excerpt: "Free, open-source bug report widget for React and Next.js: install mushi-mushi, add your project key, and get a plain-English diagnosis per report."
|
|
3098
3136
|
},
|
|
3099
3137
|
{
|
|
3100
3138
|
title: "Bug report widget for React Native and Expo",
|
|
@@ -3112,7 +3150,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3112
3150
|
markdown: "quickstart/svelte.md",
|
|
3113
3151
|
keywords: ["quickstart", "svelte", "bug", "report", "widget", "sveltekit"],
|
|
3114
3152
|
headings: ["Get your project ID and API key", "Install and initialize"],
|
|
3115
|
-
excerpt: "Free, open-source bug report widget for Svelte and SvelteKit: install
|
|
3153
|
+
excerpt: "Free, open-source bug report widget for Svelte and SvelteKit: install mushi-mushi and call initMushi from hooks.client.ts or a root layout."
|
|
3116
3154
|
},
|
|
3117
3155
|
{
|
|
3118
3156
|
title: "Set up Mushi Mushi for a team",
|
|
@@ -3130,7 +3168,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3130
3168
|
markdown: "quickstart/vue.md",
|
|
3131
3169
|
keywords: ["quickstart", "vue", "bug", "report", "widget"],
|
|
3132
3170
|
headings: ["Get your project ID and API key", "Install and register the plugin"],
|
|
3133
|
-
excerpt: "Free, open-source bug report widget for Vue 3: install
|
|
3171
|
+
excerpt: "Free, open-source bug report widget for Vue 3: install mushi-mushi and register MushiPlugin with your project ID and public API key in main.ts."
|
|
3134
3172
|
},
|
|
3135
3173
|
{
|
|
3136
3174
|
title: "Bug report widget for vanilla JavaScript",
|
|
@@ -3139,7 +3177,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3139
3177
|
markdown: "quickstart/web.md",
|
|
3140
3178
|
keywords: ["quickstart", "web", "bug", "report", "widget", "vanilla", "javascript", "js"],
|
|
3141
3179
|
headings: ["Try it live", "Get your project ID and API key", "1. Install", "2. Initialize", "3. Submit", "No bundler: script tag"],
|
|
3142
|
-
excerpt: "Free, open-source bug report widget for any website, no framework needed: install
|
|
3180
|
+
excerpt: "Free, open-source bug report widget for any website, no framework needed: install mushi-mushi or paste one script tag, then add your project key."
|
|
3143
3181
|
},
|
|
3144
3182
|
{
|
|
3145
3183
|
title: "Roadmap",
|
|
@@ -3187,13 +3225,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3187
3225
|
excerpt: "API reference for the Mushi Mushi native Kotlin SDK. init, report, captureError, showWidget, breadcrumbs and the Sentry bridge. A preview built from source."
|
|
3188
3226
|
},
|
|
3189
3227
|
{
|
|
3190
|
-
title: "
|
|
3228
|
+
title: "mushi-mushi/angular",
|
|
3191
3229
|
url: docUrl("/sdks/angular"),
|
|
3192
3230
|
route: "/sdks/angular",
|
|
3193
3231
|
markdown: "sdks/angular.md",
|
|
3194
|
-
keywords: ["sdks", "angular", "
|
|
3232
|
+
keywords: ["sdks", "angular", "mushi-mushi/angular"],
|
|
3195
3233
|
headings: ["API surface", "Setup (standalone bootstrap)", "Submitting a report", "Identifying users"],
|
|
3196
|
-
excerpt: "API reference for
|
|
3234
|
+
excerpt: "API reference for mushi-mushi/angular, the Mushi Mushi Angular SDK. provideMushi(), MushiService, MushiErrorHandler and the MUSHI_CONFIG token in Angular 17+."
|
|
3197
3235
|
},
|
|
3198
3236
|
{
|
|
3199
3237
|
title: "In-SDK Ask assistant",
|
|
@@ -3232,13 +3270,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3232
3270
|
excerpt: "Reference for @mushi-mushi/cli, the Mushi Mushi CLI. Log in, connect a project, run doctor, list reports, dispatch agent fixes and merge their pull requests."
|
|
3233
3271
|
},
|
|
3234
3272
|
{
|
|
3235
|
-
title: "
|
|
3273
|
+
title: "mushi-mushi/core",
|
|
3236
3274
|
url: docUrl("/sdks/core"),
|
|
3237
3275
|
route: "/sdks/core",
|
|
3238
3276
|
markdown: "sdks/core.md",
|
|
3239
|
-
keywords: ["sdks", "core", "
|
|
3277
|
+
keywords: ["sdks", "core", "mushi-mushi/core"],
|
|
3240
3278
|
headings: ["Install", "API", "Mushi.init(config) (web) / MushiProvider (React Native)", "MushiWidgetConfig (selected keys)", "captureEvent(input)", "Offline queue", "PII scrubbing utilities (1.27+)", "Region resolution"],
|
|
3241
|
-
excerpt: "Reference for
|
|
3279
|
+
excerpt: "Reference for mushi-mushi/core, the MushiConfig shape, widget options, PII scrubbing helpers and region resolution shared by every Mushi Mushi JavaScript SDK."
|
|
3242
3280
|
},
|
|
3243
3281
|
{
|
|
3244
3282
|
title: "eslint-plugin-mushi-mushi",
|
|
@@ -3265,7 +3303,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3265
3303
|
markdown: "sdks/framework-wrappers.md",
|
|
3266
3304
|
keywords: ["sdks", "framework-wrappers", "framework", "wrappers", "vue", "svelte", "angular"],
|
|
3267
3305
|
headings: [],
|
|
3268
|
-
excerpt: "How
|
|
3306
|
+
excerpt: "How mushi-mushi/vue, /svelte and /angular wrap the web SDK, how each one boots the SDK once, and where to find capture and widget options."
|
|
3269
3307
|
},
|
|
3270
3308
|
{
|
|
3271
3309
|
title: "@mushi-mushi/inventory-auth-runner",
|
|
@@ -3353,9 +3391,9 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3353
3391
|
url: docUrl("/sdks/node"),
|
|
3354
3392
|
route: "/sdks/node",
|
|
3355
3393
|
markdown: "sdks/node.md",
|
|
3356
|
-
keywords: ["sdks", "node", "node.js", "server", "error", "reporting", "sdk", "
|
|
3394
|
+
keywords: ["sdks", "node", "node.js", "server", "error", "reporting", "sdk", "mushi-mushi/node"],
|
|
3357
3395
|
headings: ["Install", "Create a client", "Express", "Fastify", "Hono", "Process-level fallbacks", "Programmatic submit", "PII and credential scrubbing"],
|
|
3358
|
-
excerpt: "Send Node server errors to Mushi Mushi with
|
|
3396
|
+
excerpt: "Send Node server errors to Mushi Mushi with mushi-mushi/node. Express, Fastify and Hono handlers tag each report with request method, URL and trace context."
|
|
3359
3397
|
},
|
|
3360
3398
|
{
|
|
3361
3399
|
title: "@mushi-mushi/plugin-sdk",
|
|
@@ -3380,9 +3418,9 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3380
3418
|
url: docUrl("/sdks/react"),
|
|
3381
3419
|
route: "/sdks/react",
|
|
3382
3420
|
markdown: "sdks/react.md",
|
|
3383
|
-
keywords: ["sdks", "react", "next.js", "bug", "reporting", "sdk", "
|
|
3421
|
+
keywords: ["sdks", "react", "next.js", "bug", "reporting", "sdk", "mushi-mushi/react"],
|
|
3384
3422
|
headings: ["Identifying users", "Enabling the Rewards program", "useReputation()", "useTier()", "Submitting custom activity"],
|
|
3385
|
-
excerpt: "Reference for
|
|
3423
|
+
excerpt: "Reference for mushi-mushi/react, Mushi Mushi for React. MushiProvider, useMushi, useMushiSdk and useMushiReport hooks, user identity, rewards hooks and badge."
|
|
3386
3424
|
},
|
|
3387
3425
|
{
|
|
3388
3426
|
title: "@mushi-mushi/react-native",
|
|
@@ -3412,13 +3450,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3412
3450
|
excerpt: "Install Mushi Mushi agent playbooks into Cursor and Claude Code, sync them into the console catalog, and attach skill chains to bug reports."
|
|
3413
3451
|
},
|
|
3414
3452
|
{
|
|
3415
|
-
title: "
|
|
3453
|
+
title: "mushi-mushi/svelte",
|
|
3416
3454
|
url: docUrl("/sdks/svelte"),
|
|
3417
3455
|
route: "/sdks/svelte",
|
|
3418
3456
|
markdown: "sdks/svelte.md",
|
|
3419
|
-
keywords: ["sdks", "svelte", "
|
|
3457
|
+
keywords: ["sdks", "svelte", "mushi-mushi/svelte"],
|
|
3420
3458
|
headings: ["API surface", "Setup", "Submitting a report"],
|
|
3421
|
-
excerpt: "Reference for
|
|
3459
|
+
excerpt: "Reference for mushi-mushi/svelte, the Mushi Mushi Svelte SDK. initMushi, getMushi and the SvelteKit handleError helpers that send browser errors to your queue."
|
|
3422
3460
|
},
|
|
3423
3461
|
{
|
|
3424
3462
|
title: "@mushi-mushi/ux",
|
|
@@ -3430,13 +3468,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3430
3468
|
excerpt: "@mushi-mushi/ux, the Mushi Mushi UX tool, runs your coding agent over each screen, measures every change and keeps only what helps, on a branch you review."
|
|
3431
3469
|
},
|
|
3432
3470
|
{
|
|
3433
|
-
title: "
|
|
3471
|
+
title: "mushi-mushi/vue",
|
|
3434
3472
|
url: docUrl("/sdks/vue"),
|
|
3435
3473
|
route: "/sdks/vue",
|
|
3436
3474
|
markdown: "sdks/vue.md",
|
|
3437
|
-
keywords: ["sdks", "vue", "
|
|
3475
|
+
keywords: ["sdks", "vue", "mushi-mushi/vue"],
|
|
3438
3476
|
headings: ["API surface", "Setup (Vite / Vue 3)", "Identifying users", "Submitting a report"],
|
|
3439
|
-
excerpt: "Mushi Mushi for Vue 3,
|
|
3477
|
+
excerpt: "Mushi Mushi for Vue 3, mushi-mushi/vue. MushiPlugin, the useMushi, useMushiReport and useMushiWidget composables, user identity and submitting reports."
|
|
3440
3478
|
},
|
|
3441
3479
|
{
|
|
3442
3480
|
title: "@mushi-mushi/wasm-classifier",
|
|
@@ -3452,9 +3490,9 @@ var MUSHI_DOCS_INDEX = [
|
|
|
3452
3490
|
url: docUrl("/sdks/web"),
|
|
3453
3491
|
route: "/sdks/web",
|
|
3454
3492
|
markdown: "sdks/web.md",
|
|
3455
|
-
keywords: ["sdks", "web", "javascript", "bug", "reporting", "sdk", "browser", "
|
|
3493
|
+
keywords: ["sdks", "web", "javascript", "bug", "reporting", "sdk", "browser", "mushi-mushi"],
|
|
3456
3494
|
headings: ["Sampling & beforeSend", "Screenshot preview & consent (1.19+)", "Runtime config merge (Jul 2026+)", "Capture availability & errors", "Description draft persistence", "Identifying users & the Rewards program", "Enabling the Rewards program", "Querying points & tier"],
|
|
3457
|
-
excerpt: "Reference for
|
|
3495
|
+
excerpt: "Reference for mushi-mushi, the Mushi Mushi browser SDK. Screenshots, console and network capture, the Shadow DOM widget, sampling, beforeSend and privacy."
|
|
3458
3496
|
},
|
|
3459
3497
|
{
|
|
3460
3498
|
title: "Security & compliance",
|
|
@@ -4030,6 +4068,86 @@ function triageSummaryOf(report, actions) {
|
|
|
4030
4068
|
const next = actions[0] ? `Recommended: ${actions[0].action}.` : "No action required.";
|
|
4031
4069
|
return `[${severity}] ${category} \u2014 status: ${status}. ${next}`;
|
|
4032
4070
|
}
|
|
4071
|
+
var JOURNEY_FINDING_KINDS = [
|
|
4072
|
+
"broken",
|
|
4073
|
+
"dead_end",
|
|
4074
|
+
"high_exit",
|
|
4075
|
+
"loop",
|
|
4076
|
+
"reload",
|
|
4077
|
+
"duplicate_page",
|
|
4078
|
+
"route_variant",
|
|
4079
|
+
"duplicate_title",
|
|
4080
|
+
"orphan",
|
|
4081
|
+
"deep_page",
|
|
4082
|
+
"unvisited"
|
|
4083
|
+
];
|
|
4084
|
+
var JOURNEY_DAY_OPTIONS = [7, 30, 90];
|
|
4085
|
+
var JOURNEY_MAX_FLOWS = 10;
|
|
4086
|
+
var JOURNEY_DEFAULT_LIMIT = 20;
|
|
4087
|
+
var JOURNEY_MAX_LIMIT = 100;
|
|
4088
|
+
var JOURNEY_SCAN_NEXT = "Firecrawl reads the pages on its side, usually in a few minutes. Call get_journeys in about two minutes; each call moves the scan on and returns the map once it is done.";
|
|
4089
|
+
var JOURNEY_RECORDING_MAX_HOURS = 168;
|
|
4090
|
+
function journeyRecordingBodyOf(hours, sampleRate) {
|
|
4091
|
+
if (typeof hours !== "number" || !Number.isInteger(hours) || hours < 0 || hours > JOURNEY_RECORDING_MAX_HOURS) {
|
|
4092
|
+
return { ok: false, message: `hours must be a whole number from 0 (stop) to ${JOURNEY_RECORDING_MAX_HOURS}` };
|
|
4093
|
+
}
|
|
4094
|
+
if (sampleRate === void 0 || sampleRate === null) return { ok: true, body: { hours } };
|
|
4095
|
+
if (typeof sampleRate !== "number" || !(sampleRate > 0 && sampleRate <= 1)) {
|
|
4096
|
+
return { ok: false, message: "sampleRate must be above 0 and at most 1 (0.1 = one visitor in ten)" };
|
|
4097
|
+
}
|
|
4098
|
+
return { ok: true, body: { hours, sample_rate: sampleRate } };
|
|
4099
|
+
}
|
|
4100
|
+
function journeyRecordingNextOf(hours) {
|
|
4101
|
+
return hours === 0 ? "Recording is off. Apps with trackSessions: 'on-demand' send no visits until a new window opens." : "Recording is on for apps whose SDK uses trackSessions: 'on-demand'. Call get_journeys once people have used the app.";
|
|
4102
|
+
}
|
|
4103
|
+
function journeyDaysOf(days) {
|
|
4104
|
+
if (days === void 0 || days === null) return 30;
|
|
4105
|
+
return JOURNEY_DAY_OPTIONS.includes(days) ? days : null;
|
|
4106
|
+
}
|
|
4107
|
+
function journeysForAgent(data, opts = {}) {
|
|
4108
|
+
const map = data.map && typeof data.map === "object" ? data.map : {};
|
|
4109
|
+
const all = Array.isArray(map.findings) ? map.findings : [];
|
|
4110
|
+
const matching = opts.kind ? all.filter((f) => f.kind === opts.kind) : all;
|
|
4111
|
+
const rawLimit = typeof opts.limit === "number" && Number.isFinite(opts.limit) ? Math.trunc(opts.limit) : JOURNEY_DEFAULT_LIMIT;
|
|
4112
|
+
const limit = Math.min(Math.max(rawLimit, 1), JOURNEY_MAX_LIMIT);
|
|
4113
|
+
const findingsByKind = {};
|
|
4114
|
+
for (const f of all) findingsByKind[String(f.kind)] = (findingsByKind[String(f.kind)] ?? 0) + 1;
|
|
4115
|
+
const stats = map.stats && typeof map.stats === "object" ? map.stats : null;
|
|
4116
|
+
const scan = data.scan && typeof data.scan === "object" ? data.scan : null;
|
|
4117
|
+
const mapScan = data.mapScan && typeof data.mapScan === "object" ? data.mapScan : null;
|
|
4118
|
+
const findings = matching.slice(0, limit);
|
|
4119
|
+
const next = [];
|
|
4120
|
+
if (scan?.status === "running") next.push("A site scan is running. Call get_journeys again in about a minute.");
|
|
4121
|
+
else if (!mapScan) next.push("No site scan yet. Call scan_site_journeys to read the live site's links (orphan, duplicate and deep pages).");
|
|
4122
|
+
const recording = data.recording && typeof data.recording === "object" ? data.recording : null;
|
|
4123
|
+
if (stats && stats.sessions === 0) {
|
|
4124
|
+
next.push(
|
|
4125
|
+
recording && recording.until ? "No visits yet in this window. Recording is on, so visits will appear as people use the app." : "No visits in this window. Visits come from the Mushi Mushi SDK in the app; if it uses trackSessions: 'on-demand', open a recording window with record_journeys (or on the console's Journeys page)."
|
|
4126
|
+
);
|
|
4127
|
+
}
|
|
4128
|
+
if (matching.length > findings.length) next.push(`${matching.length - findings.length} more finding(s): raise limit or filter by kind.`);
|
|
4129
|
+
if (findings.length > 0) next.push("Each finding has a prompt: paste it into your coding agent in the app's repo.");
|
|
4130
|
+
const out = {
|
|
4131
|
+
days: data.days ?? null,
|
|
4132
|
+
liveUrl: data.liveUrl ?? null,
|
|
4133
|
+
score: map.score ?? null,
|
|
4134
|
+
rootPath: map.rootPath ?? null,
|
|
4135
|
+
stats,
|
|
4136
|
+
scan,
|
|
4137
|
+
mapScan,
|
|
4138
|
+
recording,
|
|
4139
|
+
flows: Array.isArray(map.flows) ? map.flows.slice(0, JOURNEY_MAX_FLOWS) : [],
|
|
4140
|
+
findingsTotal: matching.length,
|
|
4141
|
+
findingsByKind,
|
|
4142
|
+
findings,
|
|
4143
|
+
next
|
|
4144
|
+
};
|
|
4145
|
+
if (opts.includeGraph) {
|
|
4146
|
+
out.nodes = Array.isArray(map.nodes) ? map.nodes : [];
|
|
4147
|
+
out.edges = Array.isArray(map.edges) ? map.edges : [];
|
|
4148
|
+
}
|
|
4149
|
+
return out;
|
|
4150
|
+
}
|
|
4033
4151
|
|
|
4034
4152
|
// src/server.ts
|
|
4035
4153
|
installStdoutGuard();
|
|
@@ -7140,6 +7258,71 @@ function createMushiServer(config) {
|
|
|
7140
7258
|
return jsonResult(await apiCall(`/v1/admin/events/paths?${qs}`));
|
|
7141
7259
|
}
|
|
7142
7260
|
);
|
|
7261
|
+
server.registerTool(
|
|
7262
|
+
"get_journeys",
|
|
7263
|
+
{
|
|
7264
|
+
title: titleOf("get_journeys"),
|
|
7265
|
+
description: descOf("get_journeys"),
|
|
7266
|
+
annotations: annotationsFor("get_journeys"),
|
|
7267
|
+
inputSchema: z.object({
|
|
7268
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project when omitted"),
|
|
7269
|
+
days: z.number().int().min(7).max(90).optional().describe("Window of visits: 7, 30 (default) or 90 days"),
|
|
7270
|
+
kind: z.enum(JOURNEY_FINDING_KINDS).optional().describe("Only findings of this kind"),
|
|
7271
|
+
limit: z.number().int().min(1).max(JOURNEY_MAX_LIMIT).optional().describe("Most findings to return (default 20, max 100)"),
|
|
7272
|
+
includeGraph: z.boolean().optional().describe("Also return the page nodes and page-to-page edges (up to 60 and 160 rows)")
|
|
7273
|
+
})
|
|
7274
|
+
},
|
|
7275
|
+
async (args) => {
|
|
7276
|
+
const days = journeyDaysOf(args.days);
|
|
7277
|
+
if (days === null) throw new MushiApiError(400, "INVALID_DAYS", "days must be 7, 30 or 90.");
|
|
7278
|
+
const pid = await resolveProjectId(args.projectId);
|
|
7279
|
+
const data = await apiCall(`/v1/admin/projects/${encodeURIComponent(pid)}/journeys?days=${days}`);
|
|
7280
|
+
return jsonText(journeysForAgent(data, { kind: args.kind, limit: args.limit, includeGraph: args.includeGraph }));
|
|
7281
|
+
}
|
|
7282
|
+
);
|
|
7283
|
+
server.registerTool(
|
|
7284
|
+
"scan_site_journeys",
|
|
7285
|
+
{
|
|
7286
|
+
title: titleOf("scan_site_journeys"),
|
|
7287
|
+
description: descOf("scan_site_journeys"),
|
|
7288
|
+
annotations: annotationsFor("scan_site_journeys"),
|
|
7289
|
+
inputSchema: z.object({
|
|
7290
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project when omitted"),
|
|
7291
|
+
baseUrl: z.string().optional().describe("The site's public https:// address; defaults to the one Mushi Mushi already knows")
|
|
7292
|
+
})
|
|
7293
|
+
},
|
|
7294
|
+
async (args) => {
|
|
7295
|
+
const pid = await resolveProjectId(args.projectId);
|
|
7296
|
+
const data = await apiCall(`/v1/admin/projects/${encodeURIComponent(pid)}/journeys/scan`, {
|
|
7297
|
+
method: "POST",
|
|
7298
|
+
body: JSON.stringify(args.baseUrl ? { base_url: args.baseUrl } : {})
|
|
7299
|
+
});
|
|
7300
|
+
return jsonText({ ...data, next: JOURNEY_SCAN_NEXT });
|
|
7301
|
+
}
|
|
7302
|
+
);
|
|
7303
|
+
server.registerTool(
|
|
7304
|
+
"record_journeys",
|
|
7305
|
+
{
|
|
7306
|
+
title: titleOf("record_journeys"),
|
|
7307
|
+
description: descOf("record_journeys"),
|
|
7308
|
+
annotations: annotationsFor("record_journeys"),
|
|
7309
|
+
inputSchema: z.object({
|
|
7310
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project when omitted"),
|
|
7311
|
+
hours: z.number().int().min(0).max(JOURNEY_RECORDING_MAX_HOURS).describe("Hours to record from now (1-168), or 0 to stop"),
|
|
7312
|
+
sampleRate: z.number().max(1).optional().describe("Share of visitors to record, above 0 and at most 1 (0.1 = one in ten)")
|
|
7313
|
+
})
|
|
7314
|
+
},
|
|
7315
|
+
async (args) => {
|
|
7316
|
+
const checked = journeyRecordingBodyOf(args.hours, args.sampleRate);
|
|
7317
|
+
if (!checked.ok) throw new MushiApiError(400, "INVALID_PARAMS", checked.message);
|
|
7318
|
+
const pid = await resolveProjectId(args.projectId);
|
|
7319
|
+
const data = await apiCall(`/v1/admin/projects/${encodeURIComponent(pid)}/journeys/recording`, {
|
|
7320
|
+
method: "PUT",
|
|
7321
|
+
body: JSON.stringify(checked.body)
|
|
7322
|
+
});
|
|
7323
|
+
return jsonText({ ...data, next: journeyRecordingNextOf(checked.body.hours) });
|
|
7324
|
+
}
|
|
7325
|
+
);
|
|
7143
7326
|
server.registerResource(
|
|
7144
7327
|
"activation_status",
|
|
7145
7328
|
"mushi://activation",
|
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-KEMYF42N.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-SHA56ZRG.js";
|
|
16
16
|
|
|
17
17
|
// src/server.ts
|
|
18
18
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -27,13 +27,13 @@ function docUrl(route) {
|
|
|
27
27
|
}
|
|
28
28
|
var MUSHI_DOCS_INDEX = [
|
|
29
29
|
{
|
|
30
|
-
title: "Mushi Mushi \u2014
|
|
30
|
+
title: "Mushi Mushi \u2014 one place to improve your AI-built app",
|
|
31
31
|
url: docUrl("/"),
|
|
32
32
|
route: "/",
|
|
33
33
|
markdown: "index.md",
|
|
34
|
-
keywords: ["
|
|
34
|
+
keywords: ["one", "place", "improve", "ai-built", "app"],
|
|
35
35
|
headings: ["Will my customers actually report bugs?", "See it work, on a real bug", "What it takes", "Why I built it", "What this is (and is not)"],
|
|
36
|
-
excerpt: "Your AI
|
|
36
|
+
excerpt: "Your AI built it. Mushi Mushi makes it better: it finds what breaks, where people get stuck and what the code needs, then hands you the fix."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
title: "Mushi Mushi admin console",
|
|
@@ -332,6 +332,15 @@ var MUSHI_DOCS_INDEX = [
|
|
|
332
332
|
headings: ["Understanding the score", "Runs table", "Run detail drawer", "Score timeline", "Iterations list", "Succeeded run", "Creating a run", "Common tasks"],
|
|
333
333
|
excerpt: "The Improvement runs page in Mushi Mushi queues runs where one AI critiques a live URL against your goal and a second scores it, iteration by iteration."
|
|
334
334
|
},
|
|
335
|
+
{
|
|
336
|
+
title: "Journey optimizer",
|
|
337
|
+
url: docUrl("/admin/journeys"),
|
|
338
|
+
route: "/admin/journeys",
|
|
339
|
+
markdown: "admin/journeys.md",
|
|
340
|
+
keywords: ["admin", "journeys", "journey", "optimizer"],
|
|
341
|
+
headings: ["Record visits only when you need them", "Scan your site", "Read the map", "What it finds", "Hand it to your coding agent", "Related"],
|
|
342
|
+
excerpt: "Map how people move through your app, then fix dead ends, pages people leave, duplicate pages and pages nothing links to, with prompts for your coding agent."
|
|
343
|
+
},
|
|
335
344
|
{
|
|
336
345
|
title: "Triage grading",
|
|
337
346
|
url: docUrl("/admin/judge"),
|
|
@@ -1239,7 +1248,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1239
1248
|
markdown: "migrations/vue-2-to-vue-3.md",
|
|
1240
1249
|
keywords: ["migrations", "vue-2-to-vue-3", "vue"],
|
|
1241
1250
|
headings: ["What changes (high level)", "API mapping (Mushi Mushi)", "Migration checklist", "Common gotchas", "Mushi Mushi during the migration", "References"],
|
|
1242
|
-
excerpt: "Upgrade a Vue 2 app to Vue 3 and move from the plain Mushi Mushi web SDK to the
|
|
1251
|
+
excerpt: "Upgrade a Vue 2 app to Vue 3 and move from the plain Mushi Mushi web SDK to the mushi-mushi/vue plugin, with an interactive migration checklist."
|
|
1243
1252
|
},
|
|
1244
1253
|
{
|
|
1245
1254
|
title: "Open metrics",
|
|
@@ -1554,7 +1563,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1554
1563
|
markdown: "quickstart/react.md",
|
|
1555
1564
|
keywords: ["quickstart", "react", "bug", "report", "widget"],
|
|
1556
1565
|
headings: ["Try it live", "Get your project ID and API key", "1. Install", "2. Wrap your app", "Next.js App Router", "3. Trigger reports", "4. Verify", "Next steps"],
|
|
1557
|
-
excerpt: "Free, open-source bug report widget for React and Next.js: install
|
|
1566
|
+
excerpt: "Free, open-source bug report widget for React and Next.js: install mushi-mushi, add your project key, and get a plain-English diagnosis per report."
|
|
1558
1567
|
},
|
|
1559
1568
|
{
|
|
1560
1569
|
title: "Bug report widget for React Native and Expo",
|
|
@@ -1572,7 +1581,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1572
1581
|
markdown: "quickstart/svelte.md",
|
|
1573
1582
|
keywords: ["quickstart", "svelte", "bug", "report", "widget", "sveltekit"],
|
|
1574
1583
|
headings: ["Get your project ID and API key", "Install and initialize"],
|
|
1575
|
-
excerpt: "Free, open-source bug report widget for Svelte and SvelteKit: install
|
|
1584
|
+
excerpt: "Free, open-source bug report widget for Svelte and SvelteKit: install mushi-mushi and call initMushi from hooks.client.ts or a root layout."
|
|
1576
1585
|
},
|
|
1577
1586
|
{
|
|
1578
1587
|
title: "Set up Mushi Mushi for a team",
|
|
@@ -1590,7 +1599,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1590
1599
|
markdown: "quickstart/vue.md",
|
|
1591
1600
|
keywords: ["quickstart", "vue", "bug", "report", "widget"],
|
|
1592
1601
|
headings: ["Get your project ID and API key", "Install and register the plugin"],
|
|
1593
|
-
excerpt: "Free, open-source bug report widget for Vue 3: install
|
|
1602
|
+
excerpt: "Free, open-source bug report widget for Vue 3: install mushi-mushi and register MushiPlugin with your project ID and public API key in main.ts."
|
|
1594
1603
|
},
|
|
1595
1604
|
{
|
|
1596
1605
|
title: "Bug report widget for vanilla JavaScript",
|
|
@@ -1599,7 +1608,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1599
1608
|
markdown: "quickstart/web.md",
|
|
1600
1609
|
keywords: ["quickstart", "web", "bug", "report", "widget", "vanilla", "javascript", "js"],
|
|
1601
1610
|
headings: ["Try it live", "Get your project ID and API key", "1. Install", "2. Initialize", "3. Submit", "No bundler: script tag"],
|
|
1602
|
-
excerpt: "Free, open-source bug report widget for any website, no framework needed: install
|
|
1611
|
+
excerpt: "Free, open-source bug report widget for any website, no framework needed: install mushi-mushi or paste one script tag, then add your project key."
|
|
1603
1612
|
},
|
|
1604
1613
|
{
|
|
1605
1614
|
title: "Roadmap",
|
|
@@ -1647,13 +1656,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1647
1656
|
excerpt: "API reference for the Mushi Mushi native Kotlin SDK. init, report, captureError, showWidget, breadcrumbs and the Sentry bridge. A preview built from source."
|
|
1648
1657
|
},
|
|
1649
1658
|
{
|
|
1650
|
-
title: "
|
|
1659
|
+
title: "mushi-mushi/angular",
|
|
1651
1660
|
url: docUrl("/sdks/angular"),
|
|
1652
1661
|
route: "/sdks/angular",
|
|
1653
1662
|
markdown: "sdks/angular.md",
|
|
1654
|
-
keywords: ["sdks", "angular", "
|
|
1663
|
+
keywords: ["sdks", "angular", "mushi-mushi/angular"],
|
|
1655
1664
|
headings: ["API surface", "Setup (standalone bootstrap)", "Submitting a report", "Identifying users"],
|
|
1656
|
-
excerpt: "API reference for
|
|
1665
|
+
excerpt: "API reference for mushi-mushi/angular, the Mushi Mushi Angular SDK. provideMushi(), MushiService, MushiErrorHandler and the MUSHI_CONFIG token in Angular 17+."
|
|
1657
1666
|
},
|
|
1658
1667
|
{
|
|
1659
1668
|
title: "In-SDK Ask assistant",
|
|
@@ -1692,13 +1701,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1692
1701
|
excerpt: "Reference for @mushi-mushi/cli, the Mushi Mushi CLI. Log in, connect a project, run doctor, list reports, dispatch agent fixes and merge their pull requests."
|
|
1693
1702
|
},
|
|
1694
1703
|
{
|
|
1695
|
-
title: "
|
|
1704
|
+
title: "mushi-mushi/core",
|
|
1696
1705
|
url: docUrl("/sdks/core"),
|
|
1697
1706
|
route: "/sdks/core",
|
|
1698
1707
|
markdown: "sdks/core.md",
|
|
1699
|
-
keywords: ["sdks", "core", "
|
|
1708
|
+
keywords: ["sdks", "core", "mushi-mushi/core"],
|
|
1700
1709
|
headings: ["Install", "API", "Mushi.init(config) (web) / MushiProvider (React Native)", "MushiWidgetConfig (selected keys)", "captureEvent(input)", "Offline queue", "PII scrubbing utilities (1.27+)", "Region resolution"],
|
|
1701
|
-
excerpt: "Reference for
|
|
1710
|
+
excerpt: "Reference for mushi-mushi/core, the MushiConfig shape, widget options, PII scrubbing helpers and region resolution shared by every Mushi Mushi JavaScript SDK."
|
|
1702
1711
|
},
|
|
1703
1712
|
{
|
|
1704
1713
|
title: "eslint-plugin-mushi-mushi",
|
|
@@ -1725,7 +1734,7 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1725
1734
|
markdown: "sdks/framework-wrappers.md",
|
|
1726
1735
|
keywords: ["sdks", "framework-wrappers", "framework", "wrappers", "vue", "svelte", "angular"],
|
|
1727
1736
|
headings: [],
|
|
1728
|
-
excerpt: "How
|
|
1737
|
+
excerpt: "How mushi-mushi/vue, /svelte and /angular wrap the web SDK, how each one boots the SDK once, and where to find capture and widget options."
|
|
1729
1738
|
},
|
|
1730
1739
|
{
|
|
1731
1740
|
title: "@mushi-mushi/inventory-auth-runner",
|
|
@@ -1813,9 +1822,9 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1813
1822
|
url: docUrl("/sdks/node"),
|
|
1814
1823
|
route: "/sdks/node",
|
|
1815
1824
|
markdown: "sdks/node.md",
|
|
1816
|
-
keywords: ["sdks", "node", "node.js", "server", "error", "reporting", "sdk", "
|
|
1825
|
+
keywords: ["sdks", "node", "node.js", "server", "error", "reporting", "sdk", "mushi-mushi/node"],
|
|
1817
1826
|
headings: ["Install", "Create a client", "Express", "Fastify", "Hono", "Process-level fallbacks", "Programmatic submit", "PII and credential scrubbing"],
|
|
1818
|
-
excerpt: "Send Node server errors to Mushi Mushi with
|
|
1827
|
+
excerpt: "Send Node server errors to Mushi Mushi with mushi-mushi/node. Express, Fastify and Hono handlers tag each report with request method, URL and trace context."
|
|
1819
1828
|
},
|
|
1820
1829
|
{
|
|
1821
1830
|
title: "@mushi-mushi/plugin-sdk",
|
|
@@ -1840,9 +1849,9 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1840
1849
|
url: docUrl("/sdks/react"),
|
|
1841
1850
|
route: "/sdks/react",
|
|
1842
1851
|
markdown: "sdks/react.md",
|
|
1843
|
-
keywords: ["sdks", "react", "next.js", "bug", "reporting", "sdk", "
|
|
1852
|
+
keywords: ["sdks", "react", "next.js", "bug", "reporting", "sdk", "mushi-mushi/react"],
|
|
1844
1853
|
headings: ["Identifying users", "Enabling the Rewards program", "useReputation()", "useTier()", "Submitting custom activity"],
|
|
1845
|
-
excerpt: "Reference for
|
|
1854
|
+
excerpt: "Reference for mushi-mushi/react, Mushi Mushi for React. MushiProvider, useMushi, useMushiSdk and useMushiReport hooks, user identity, rewards hooks and badge."
|
|
1846
1855
|
},
|
|
1847
1856
|
{
|
|
1848
1857
|
title: "@mushi-mushi/react-native",
|
|
@@ -1872,13 +1881,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1872
1881
|
excerpt: "Install Mushi Mushi agent playbooks into Cursor and Claude Code, sync them into the console catalog, and attach skill chains to bug reports."
|
|
1873
1882
|
},
|
|
1874
1883
|
{
|
|
1875
|
-
title: "
|
|
1884
|
+
title: "mushi-mushi/svelte",
|
|
1876
1885
|
url: docUrl("/sdks/svelte"),
|
|
1877
1886
|
route: "/sdks/svelte",
|
|
1878
1887
|
markdown: "sdks/svelte.md",
|
|
1879
|
-
keywords: ["sdks", "svelte", "
|
|
1888
|
+
keywords: ["sdks", "svelte", "mushi-mushi/svelte"],
|
|
1880
1889
|
headings: ["API surface", "Setup", "Submitting a report"],
|
|
1881
|
-
excerpt: "Reference for
|
|
1890
|
+
excerpt: "Reference for mushi-mushi/svelte, the Mushi Mushi Svelte SDK. initMushi, getMushi and the SvelteKit handleError helpers that send browser errors to your queue."
|
|
1882
1891
|
},
|
|
1883
1892
|
{
|
|
1884
1893
|
title: "@mushi-mushi/ux",
|
|
@@ -1890,13 +1899,13 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1890
1899
|
excerpt: "@mushi-mushi/ux, the Mushi Mushi UX tool, runs your coding agent over each screen, measures every change and keeps only what helps, on a branch you review."
|
|
1891
1900
|
},
|
|
1892
1901
|
{
|
|
1893
|
-
title: "
|
|
1902
|
+
title: "mushi-mushi/vue",
|
|
1894
1903
|
url: docUrl("/sdks/vue"),
|
|
1895
1904
|
route: "/sdks/vue",
|
|
1896
1905
|
markdown: "sdks/vue.md",
|
|
1897
|
-
keywords: ["sdks", "vue", "
|
|
1906
|
+
keywords: ["sdks", "vue", "mushi-mushi/vue"],
|
|
1898
1907
|
headings: ["API surface", "Setup (Vite / Vue 3)", "Identifying users", "Submitting a report"],
|
|
1899
|
-
excerpt: "Mushi Mushi for Vue 3,
|
|
1908
|
+
excerpt: "Mushi Mushi for Vue 3, mushi-mushi/vue. MushiPlugin, the useMushi, useMushiReport and useMushiWidget composables, user identity and submitting reports."
|
|
1900
1909
|
},
|
|
1901
1910
|
{
|
|
1902
1911
|
title: "@mushi-mushi/wasm-classifier",
|
|
@@ -1912,9 +1921,9 @@ var MUSHI_DOCS_INDEX = [
|
|
|
1912
1921
|
url: docUrl("/sdks/web"),
|
|
1913
1922
|
route: "/sdks/web",
|
|
1914
1923
|
markdown: "sdks/web.md",
|
|
1915
|
-
keywords: ["sdks", "web", "javascript", "bug", "reporting", "sdk", "browser", "
|
|
1924
|
+
keywords: ["sdks", "web", "javascript", "bug", "reporting", "sdk", "browser", "mushi-mushi"],
|
|
1916
1925
|
headings: ["Sampling & beforeSend", "Screenshot preview & consent (1.19+)", "Runtime config merge (Jul 2026+)", "Capture availability & errors", "Description draft persistence", "Identifying users & the Rewards program", "Enabling the Rewards program", "Querying points & tier"],
|
|
1917
|
-
excerpt: "Reference for
|
|
1926
|
+
excerpt: "Reference for mushi-mushi, the Mushi Mushi browser SDK. Screenshots, console and network capture, the Shadow DOM widget, sampling, beforeSend and privacy."
|
|
1918
1927
|
},
|
|
1919
1928
|
{
|
|
1920
1929
|
title: "Security & compliance",
|
|
@@ -2556,6 +2565,86 @@ function triageSummaryOf(report, actions) {
|
|
|
2556
2565
|
const next = actions[0] ? `Recommended: ${actions[0].action}.` : "No action required.";
|
|
2557
2566
|
return `[${severity}] ${category} \u2014 status: ${status}. ${next}`;
|
|
2558
2567
|
}
|
|
2568
|
+
var JOURNEY_FINDING_KINDS = [
|
|
2569
|
+
"broken",
|
|
2570
|
+
"dead_end",
|
|
2571
|
+
"high_exit",
|
|
2572
|
+
"loop",
|
|
2573
|
+
"reload",
|
|
2574
|
+
"duplicate_page",
|
|
2575
|
+
"route_variant",
|
|
2576
|
+
"duplicate_title",
|
|
2577
|
+
"orphan",
|
|
2578
|
+
"deep_page",
|
|
2579
|
+
"unvisited"
|
|
2580
|
+
];
|
|
2581
|
+
var JOURNEY_DAY_OPTIONS = [7, 30, 90];
|
|
2582
|
+
var JOURNEY_MAX_FLOWS = 10;
|
|
2583
|
+
var JOURNEY_DEFAULT_LIMIT = 20;
|
|
2584
|
+
var JOURNEY_MAX_LIMIT = 100;
|
|
2585
|
+
var JOURNEY_SCAN_NEXT = "Firecrawl reads the pages on its side, usually in a few minutes. Call get_journeys in about two minutes; each call moves the scan on and returns the map once it is done.";
|
|
2586
|
+
var JOURNEY_RECORDING_MAX_HOURS = 168;
|
|
2587
|
+
function journeyRecordingBodyOf(hours, sampleRate) {
|
|
2588
|
+
if (typeof hours !== "number" || !Number.isInteger(hours) || hours < 0 || hours > JOURNEY_RECORDING_MAX_HOURS) {
|
|
2589
|
+
return { ok: false, message: `hours must be a whole number from 0 (stop) to ${JOURNEY_RECORDING_MAX_HOURS}` };
|
|
2590
|
+
}
|
|
2591
|
+
if (sampleRate === void 0 || sampleRate === null) return { ok: true, body: { hours } };
|
|
2592
|
+
if (typeof sampleRate !== "number" || !(sampleRate > 0 && sampleRate <= 1)) {
|
|
2593
|
+
return { ok: false, message: "sampleRate must be above 0 and at most 1 (0.1 = one visitor in ten)" };
|
|
2594
|
+
}
|
|
2595
|
+
return { ok: true, body: { hours, sample_rate: sampleRate } };
|
|
2596
|
+
}
|
|
2597
|
+
function journeyRecordingNextOf(hours) {
|
|
2598
|
+
return hours === 0 ? "Recording is off. Apps with trackSessions: 'on-demand' send no visits until a new window opens." : "Recording is on for apps whose SDK uses trackSessions: 'on-demand'. Call get_journeys once people have used the app.";
|
|
2599
|
+
}
|
|
2600
|
+
function journeyDaysOf(days) {
|
|
2601
|
+
if (days === void 0 || days === null) return 30;
|
|
2602
|
+
return JOURNEY_DAY_OPTIONS.includes(days) ? days : null;
|
|
2603
|
+
}
|
|
2604
|
+
function journeysForAgent(data, opts = {}) {
|
|
2605
|
+
const map = data.map && typeof data.map === "object" ? data.map : {};
|
|
2606
|
+
const all = Array.isArray(map.findings) ? map.findings : [];
|
|
2607
|
+
const matching = opts.kind ? all.filter((f) => f.kind === opts.kind) : all;
|
|
2608
|
+
const rawLimit = typeof opts.limit === "number" && Number.isFinite(opts.limit) ? Math.trunc(opts.limit) : JOURNEY_DEFAULT_LIMIT;
|
|
2609
|
+
const limit = Math.min(Math.max(rawLimit, 1), JOURNEY_MAX_LIMIT);
|
|
2610
|
+
const findingsByKind = {};
|
|
2611
|
+
for (const f of all) findingsByKind[String(f.kind)] = (findingsByKind[String(f.kind)] ?? 0) + 1;
|
|
2612
|
+
const stats = map.stats && typeof map.stats === "object" ? map.stats : null;
|
|
2613
|
+
const scan = data.scan && typeof data.scan === "object" ? data.scan : null;
|
|
2614
|
+
const mapScan = data.mapScan && typeof data.mapScan === "object" ? data.mapScan : null;
|
|
2615
|
+
const findings = matching.slice(0, limit);
|
|
2616
|
+
const next = [];
|
|
2617
|
+
if (scan?.status === "running") next.push("A site scan is running. Call get_journeys again in about a minute.");
|
|
2618
|
+
else if (!mapScan) next.push("No site scan yet. Call scan_site_journeys to read the live site's links (orphan, duplicate and deep pages).");
|
|
2619
|
+
const recording = data.recording && typeof data.recording === "object" ? data.recording : null;
|
|
2620
|
+
if (stats && stats.sessions === 0) {
|
|
2621
|
+
next.push(
|
|
2622
|
+
recording && recording.until ? "No visits yet in this window. Recording is on, so visits will appear as people use the app." : "No visits in this window. Visits come from the Mushi Mushi SDK in the app; if it uses trackSessions: 'on-demand', open a recording window with record_journeys (or on the console's Journeys page)."
|
|
2623
|
+
);
|
|
2624
|
+
}
|
|
2625
|
+
if (matching.length > findings.length) next.push(`${matching.length - findings.length} more finding(s): raise limit or filter by kind.`);
|
|
2626
|
+
if (findings.length > 0) next.push("Each finding has a prompt: paste it into your coding agent in the app's repo.");
|
|
2627
|
+
const out = {
|
|
2628
|
+
days: data.days ?? null,
|
|
2629
|
+
liveUrl: data.liveUrl ?? null,
|
|
2630
|
+
score: map.score ?? null,
|
|
2631
|
+
rootPath: map.rootPath ?? null,
|
|
2632
|
+
stats,
|
|
2633
|
+
scan,
|
|
2634
|
+
mapScan,
|
|
2635
|
+
recording,
|
|
2636
|
+
flows: Array.isArray(map.flows) ? map.flows.slice(0, JOURNEY_MAX_FLOWS) : [],
|
|
2637
|
+
findingsTotal: matching.length,
|
|
2638
|
+
findingsByKind,
|
|
2639
|
+
findings,
|
|
2640
|
+
next
|
|
2641
|
+
};
|
|
2642
|
+
if (opts.includeGraph) {
|
|
2643
|
+
out.nodes = Array.isArray(map.nodes) ? map.nodes : [];
|
|
2644
|
+
out.edges = Array.isArray(map.edges) ? map.edges : [];
|
|
2645
|
+
}
|
|
2646
|
+
return out;
|
|
2647
|
+
}
|
|
2559
2648
|
|
|
2560
2649
|
// src/server.ts
|
|
2561
2650
|
installStdoutGuard();
|
|
@@ -5666,6 +5755,71 @@ function createMushiServer(config) {
|
|
|
5666
5755
|
return jsonResult(await apiCall(`/v1/admin/events/paths?${qs}`));
|
|
5667
5756
|
}
|
|
5668
5757
|
);
|
|
5758
|
+
server.registerTool(
|
|
5759
|
+
"get_journeys",
|
|
5760
|
+
{
|
|
5761
|
+
title: titleOf("get_journeys"),
|
|
5762
|
+
description: descOf("get_journeys"),
|
|
5763
|
+
annotations: annotationsFor("get_journeys"),
|
|
5764
|
+
inputSchema: z.object({
|
|
5765
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project when omitted"),
|
|
5766
|
+
days: z.number().int().min(7).max(90).optional().describe("Window of visits: 7, 30 (default) or 90 days"),
|
|
5767
|
+
kind: z.enum(JOURNEY_FINDING_KINDS).optional().describe("Only findings of this kind"),
|
|
5768
|
+
limit: z.number().int().min(1).max(JOURNEY_MAX_LIMIT).optional().describe("Most findings to return (default 20, max 100)"),
|
|
5769
|
+
includeGraph: z.boolean().optional().describe("Also return the page nodes and page-to-page edges (up to 60 and 160 rows)")
|
|
5770
|
+
})
|
|
5771
|
+
},
|
|
5772
|
+
async (args) => {
|
|
5773
|
+
const days = journeyDaysOf(args.days);
|
|
5774
|
+
if (days === null) throw new MushiApiError(400, "INVALID_DAYS", "days must be 7, 30 or 90.");
|
|
5775
|
+
const pid = await resolveProjectId(args.projectId);
|
|
5776
|
+
const data = await apiCall(`/v1/admin/projects/${encodeURIComponent(pid)}/journeys?days=${days}`);
|
|
5777
|
+
return jsonText(journeysForAgent(data, { kind: args.kind, limit: args.limit, includeGraph: args.includeGraph }));
|
|
5778
|
+
}
|
|
5779
|
+
);
|
|
5780
|
+
server.registerTool(
|
|
5781
|
+
"scan_site_journeys",
|
|
5782
|
+
{
|
|
5783
|
+
title: titleOf("scan_site_journeys"),
|
|
5784
|
+
description: descOf("scan_site_journeys"),
|
|
5785
|
+
annotations: annotationsFor("scan_site_journeys"),
|
|
5786
|
+
inputSchema: z.object({
|
|
5787
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project when omitted"),
|
|
5788
|
+
baseUrl: z.string().optional().describe("The site's public https:// address; defaults to the one Mushi Mushi already knows")
|
|
5789
|
+
})
|
|
5790
|
+
},
|
|
5791
|
+
async (args) => {
|
|
5792
|
+
const pid = await resolveProjectId(args.projectId);
|
|
5793
|
+
const data = await apiCall(`/v1/admin/projects/${encodeURIComponent(pid)}/journeys/scan`, {
|
|
5794
|
+
method: "POST",
|
|
5795
|
+
body: JSON.stringify(args.baseUrl ? { base_url: args.baseUrl } : {})
|
|
5796
|
+
});
|
|
5797
|
+
return jsonText({ ...data, next: JOURNEY_SCAN_NEXT });
|
|
5798
|
+
}
|
|
5799
|
+
);
|
|
5800
|
+
server.registerTool(
|
|
5801
|
+
"record_journeys",
|
|
5802
|
+
{
|
|
5803
|
+
title: titleOf("record_journeys"),
|
|
5804
|
+
description: descOf("record_journeys"),
|
|
5805
|
+
annotations: annotationsFor("record_journeys"),
|
|
5806
|
+
inputSchema: z.object({
|
|
5807
|
+
projectId: z.string().optional().describe("Project UUID \u2014 defaults to the server-configured project when omitted"),
|
|
5808
|
+
hours: z.number().int().min(0).max(JOURNEY_RECORDING_MAX_HOURS).describe("Hours to record from now (1-168), or 0 to stop"),
|
|
5809
|
+
sampleRate: z.number().max(1).optional().describe("Share of visitors to record, above 0 and at most 1 (0.1 = one in ten)")
|
|
5810
|
+
})
|
|
5811
|
+
},
|
|
5812
|
+
async (args) => {
|
|
5813
|
+
const checked = journeyRecordingBodyOf(args.hours, args.sampleRate);
|
|
5814
|
+
if (!checked.ok) throw new MushiApiError(400, "INVALID_PARAMS", checked.message);
|
|
5815
|
+
const pid = await resolveProjectId(args.projectId);
|
|
5816
|
+
const data = await apiCall(`/v1/admin/projects/${encodeURIComponent(pid)}/journeys/recording`, {
|
|
5817
|
+
method: "PUT",
|
|
5818
|
+
body: JSON.stringify(checked.body)
|
|
5819
|
+
});
|
|
5820
|
+
return jsonText({ ...data, next: journeyRecordingNextOf(checked.body.hours) });
|
|
5821
|
+
}
|
|
5822
|
+
);
|
|
5669
5823
|
server.registerResource(
|
|
5670
5824
|
"activation_status",
|
|
5671
5825
|
"mushi://activation",
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mushi-mushi/mcp",
|
|
3
3
|
"mcpName": "io.github.kensaurus/mushi-mushi",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.1",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"description": "MCP server for Cursor, Claude Code and Copilot.
|
|
6
|
+
"description": "MCP server for Cursor, Claude Code and Copilot. One place to improve AI-built apps: fix bugs, smooth user journeys and clean up the code.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
@@ -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.
|
|
48
|
+
"@mushi-mushi/core": "^1.35.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@sentry/node": "^10.57.0"
|