@mushi-mushi/mcp 0.33.1 → 0.34.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 +8 -4
- package/dist/catalog.js +1 -1
- package/dist/{chunk-UPSIGKYM.js → chunk-DXYPERNG.js} +115 -8
- package/dist/{chunk-XRH7NB34.js → chunk-SYV3LMVF.js} +101 -14
- package/dist/chunk-UEGILLAX.js +8787 -0
- package/dist/clients.d.ts +15 -7
- package/dist/clients.js +34 -6
- package/dist/feature-groups.d.ts +34 -9
- package/dist/feature-groups.js +9 -1
- package/dist/index.js +39 -9315
- package/dist/server.d.ts +12 -2
- package/dist/server.js +10 -7633
- package/package.json +3 -3
package/dist/clients.d.ts
CHANGED
|
@@ -49,12 +49,13 @@ import { FeatureGroup } from './feature-groups.js';
|
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
52
|
+
* npm spec written into persistent MCP configs (mcp.json, settings.json): a
|
|
53
|
+
* caret range on the current minor (`^0.33` = 0.33.x). Editors get patch
|
|
54
|
+
* fixes without a config edit, and a 0.x minor, which may break, still needs
|
|
55
|
+
* one. Never `@latest`: that is the supply-chain and cold-start risk. Synced
|
|
56
|
+
* to package.json by `scripts/sync-mcp-pin.mjs` — never hand-edit the version.
|
|
56
57
|
*/
|
|
57
|
-
declare const MCP_PIN_SPEC = "@mushi-mushi/mcp
|
|
58
|
+
declare const MCP_PIN_SPEC = "@mushi-mushi/mcp@^0.34";
|
|
58
59
|
interface StdioConfig {
|
|
59
60
|
command: string;
|
|
60
61
|
args: string[];
|
|
@@ -67,7 +68,7 @@ interface HttpConfig {
|
|
|
67
68
|
headers: Record<string, string>;
|
|
68
69
|
icon?: string;
|
|
69
70
|
}
|
|
70
|
-
type McpClientId = 'cursor' | 'vscode' | 'vscode-insiders' | 'windsurf' | 'cline' | 'claude-code' | 'claude-desktop' | 'zed' | 'any' | 'lovable';
|
|
71
|
+
type McpClientId = 'cursor' | 'vscode' | 'vscode-insiders' | 'windsurf' | 'cline' | 'claude-code' | 'claude-desktop' | 'zed' | 'any' | 'lovable' | 'claude';
|
|
71
72
|
/** The install method determines which UI treatment the console/docs page renders. */
|
|
72
73
|
type McpInstallMethod = 'deeplink' | 'config-json' | 'cli-command' | 'remote-url';
|
|
73
74
|
interface McpBuildInput {
|
|
@@ -145,6 +146,13 @@ interface McpClientDef {
|
|
|
145
146
|
* the tool list to what a builder uses (docs quickstart/lovable-mcp).
|
|
146
147
|
*/
|
|
147
148
|
declare const LOVABLE_MCP_URL = "https://kensaur.us/mushi-mushi/hosted-mcp/?features=vibe";
|
|
149
|
+
/**
|
|
150
|
+
* Claude's custom connector (claude.ai, Claude Desktop, Claude mobile) needs
|
|
151
|
+
* the kensaur.us hosted MCP URL for the same reason. `chat` lists the
|
|
152
|
+
* read-only investigation tools and makes the connection read-only
|
|
153
|
+
* (ADR 0097, docs quickstart/claude).
|
|
154
|
+
*/
|
|
155
|
+
declare const CLAUDE_CONNECTOR_URL = "https://kensaur.us/mushi-mushi/hosted-mcp/?features=chat";
|
|
148
156
|
/** Build a stable, unique, human-readable MCP server slug for a project. */
|
|
149
157
|
declare function projectServerName(projectId: string, projectName: string): string;
|
|
150
158
|
declare function buildStdioConfigObj(projectId: string | undefined, apiKey: string, apiEndpoint: string, features?: readonly string[], pinSpec?: string): StdioConfig;
|
|
@@ -169,5 +177,5 @@ declare function buildOAuthInstall(id: McpOAuthClientId, input: McpOAuthInstallI
|
|
|
169
177
|
/** Look up a client by id — throws if not found. */
|
|
170
178
|
declare function getMcpClient(id: McpClientId): McpClientDef;
|
|
171
179
|
|
|
172
|
-
export { LOVABLE_MCP_URL, MCP_CLIENTS, MCP_OAUTH_CLIENT_IDS, MCP_OAUTH_SERVER_NAME, MCP_PIN_SPEC, buildOAuthInstall, buildHttpConfigObj as buildRawHttpConfig, buildStdioConfigObj as buildRawStdioConfig, getMcpClient, projectServerName };
|
|
180
|
+
export { CLAUDE_CONNECTOR_URL, LOVABLE_MCP_URL, MCP_CLIENTS, MCP_OAUTH_CLIENT_IDS, MCP_OAUTH_SERVER_NAME, MCP_PIN_SPEC, buildOAuthInstall, buildHttpConfigObj as buildRawHttpConfig, buildStdioConfigObj as buildRawStdioConfig, getMcpClient, projectServerName };
|
|
173
181
|
export type { McpBuildInput, McpBuildResult, McpClientDef, McpClientId, McpInstallMethod, McpOAuthClientId, McpOAuthInstallInput };
|
package/dist/clients.js
CHANGED
|
@@ -5,15 +5,16 @@ import {
|
|
|
5
5
|
DEFAULT_FEATURE_GROUPS,
|
|
6
6
|
appendFeaturesToUrl,
|
|
7
7
|
featuresQueryString
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SYV3LMVF.js";
|
|
9
9
|
|
|
10
10
|
// src/clients.ts
|
|
11
|
-
var MCP_PIN_SPEC = "@mushi-mushi/mcp
|
|
12
|
-
var PIN_SPEC_RE = /^@mushi-mushi\/mcp
|
|
11
|
+
var MCP_PIN_SPEC = "@mushi-mushi/mcp@^0.34";
|
|
12
|
+
var PIN_SPEC_RE = /^@mushi-mushi\/mcp@(?:\^\d+\.\d+|\d+\.\d+\.\d+)$/;
|
|
13
13
|
function pinOf(pinSpec) {
|
|
14
14
|
return pinSpec && PIN_SPEC_RE.test(pinSpec) ? pinSpec : MCP_PIN_SPEC;
|
|
15
15
|
}
|
|
16
16
|
var LOVABLE_MCP_URL = "https://kensaur.us/mushi-mushi/hosted-mcp/?features=vibe";
|
|
17
|
+
var CLAUDE_CONNECTOR_URL = "https://kensaur.us/mushi-mushi/hosted-mcp/?features=chat";
|
|
17
18
|
function projectServerName(projectId, projectName) {
|
|
18
19
|
const nameSlug = projectName.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 22);
|
|
19
20
|
const idSuffix = projectId.replace(/-/g, "").slice(0, 6);
|
|
@@ -185,11 +186,37 @@ var MCP_CLIENTS = [
|
|
|
185
186
|
return { kind: "command", text: cmd };
|
|
186
187
|
}
|
|
187
188
|
},
|
|
188
|
-
// ── Claude Desktop
|
|
189
|
+
// ── Claude (web, Desktop, mobile) ───────────────────────────────────────────
|
|
190
|
+
// A custom connector in Claude's Settings → Connectors, with OAuth: no key to
|
|
191
|
+
// copy. One connector reaches claude.ai, the Desktop app and the mobile app.
|
|
192
|
+
// Steps from docs quickstart/claude (support.claude.com article 11175166).
|
|
193
|
+
{
|
|
194
|
+
id: "claude",
|
|
195
|
+
label: "Claude (web, Desktop, mobile)",
|
|
196
|
+
description: `Add Mushi Mushi as a custom connector, then ask Claude "what's broken in my app?"`,
|
|
197
|
+
method: "remote-url",
|
|
198
|
+
transport: "http",
|
|
199
|
+
keyless: true,
|
|
200
|
+
build() {
|
|
201
|
+
return {
|
|
202
|
+
kind: "remote-url",
|
|
203
|
+
url: CLAUDE_CONNECTOR_URL,
|
|
204
|
+
headerSnippet: "",
|
|
205
|
+
steps: [
|
|
206
|
+
"In Claude (web or Desktop), open Customize, then Connectors. Click + Add, then Add custom connector. On Team and Enterprise, an owner adds it once under Organization settings, then Connectors.",
|
|
207
|
+
"Name: Mushi Mushi. Remote MCP server URL: the URL above. Click Continue twice.",
|
|
208
|
+
"Authentication: Sign in now. OAuth client: Register automatically. Click Add.",
|
|
209
|
+
"Sign in to Mushi Mushi, choose the projects Claude may see, and click Approve. You never copy a key.",
|
|
210
|
+
`In a chat, click +, then Connectors, turn Mushi Mushi on and ask: "What's broken in my app right now?" It works in the Claude mobile app too.`
|
|
211
|
+
]
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
// ── Claude Desktop (local server) ────────────────────────────────────────────
|
|
189
216
|
{
|
|
190
217
|
id: "claude-desktop",
|
|
191
|
-
label: "Claude Desktop",
|
|
192
|
-
description: "
|
|
218
|
+
label: "Claude Desktop (local)",
|
|
219
|
+
description: "Run the server on your computer from claude_desktop_config.json, with a key",
|
|
193
220
|
method: "config-json",
|
|
194
221
|
transport: "stdio",
|
|
195
222
|
build({ projectId, projectName, apiKey, endpoint, features, pinSpec }) {
|
|
@@ -328,6 +355,7 @@ function getMcpClient(id) {
|
|
|
328
355
|
return client;
|
|
329
356
|
}
|
|
330
357
|
export {
|
|
358
|
+
CLAUDE_CONNECTOR_URL,
|
|
331
359
|
LOVABLE_MCP_URL,
|
|
332
360
|
MCP_CLIENTS,
|
|
333
361
|
MCP_OAUTH_CLIENT_IDS,
|
package/dist/feature-groups.d.ts
CHANGED
|
@@ -3,17 +3,26 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Both transports expose DEFAULT_FEATURE_GROUPS when the caller names none:
|
|
5
5
|
* stdio when MUSHI_FEATURES is unset, the hosted server when `?features=` is
|
|
6
|
-
* absent. `
|
|
6
|
+
* absent. That default is the `core` preset: about a dozen tools for the
|
|
7
|
+
* "a user reported a bug, fix it in my editor" loop (ADR 0075 §8). The rest
|
|
8
|
+
* load on request: find_tools searches them and enable_toolset turns a group
|
|
9
|
+
* on. `features=all` opts into every group.
|
|
7
10
|
*
|
|
8
11
|
* This file is kept byte-identical with
|
|
9
12
|
* packages/server/supabase/functions/mcp/feature-groups.ts (checked by
|
|
10
13
|
* packages/mcp/scripts/check-catalog-sync.mjs).
|
|
11
14
|
*/
|
|
12
|
-
declare const FEATURE_GROUPS: readonly ["triage", "fixes", "inventory", "setup", "qa", "skills", "rewards", "admin", "audit", "docs", "usage", "codebase", "legacy", "vibe"];
|
|
15
|
+
declare const FEATURE_GROUPS: readonly ["triage", "fixes", "inventory", "setup", "qa", "skills", "rewards", "admin", "audit", "docs", "usage", "codebase", "legacy", "core", "vibe", "chat", "probe"];
|
|
13
16
|
type FeatureGroup = (typeof FEATURE_GROUPS)[number];
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Default for new installs: the `core` preset (PRESET_TOOLS.core). Before
|
|
19
|
+
* 2026-11-30 it was triage,fixes,inventory,setup,docs; name those groups in
|
|
20
|
+
* MUSHI_FEATURES (or ?features=) to keep that surface.
|
|
21
|
+
*/
|
|
15
22
|
declare const DEFAULT_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
16
23
|
declare const ALL_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
24
|
+
/** Groups enable_toolset can turn on: every real group, plus `all`. */
|
|
25
|
+
declare const ENABLEABLE_TOOLSETS: readonly string[];
|
|
17
26
|
/**
|
|
18
27
|
* Map every tool name → feature group. A tool with no entry is listed under
|
|
19
28
|
* no filter but `all`, so every registered tool needs one (enforced by the
|
|
@@ -22,13 +31,29 @@ declare const ALL_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
|
22
31
|
*/
|
|
23
32
|
declare const TOOL_FEATURE_MAP: Record<string, FeatureGroup>;
|
|
24
33
|
/**
|
|
25
|
-
* Presets: a named tool list that crosses groups. `?features=
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
34
|
+
* Presets: a named tool list that crosses groups. `?features=core` lists only
|
|
35
|
+
* the core set; `?features=core,qa` adds a whole group.
|
|
36
|
+
*
|
|
37
|
+
* `vibe` is the chat-connector set (Lovable, Bolt, Replit): the "a user said
|
|
38
|
+
* my app is broken" loop where the chat assistant writes the fix itself, so it
|
|
39
|
+
* keeps reply_to_reporter and the docs tools instead of submit_fix_result and
|
|
40
|
+
* the discovery pair (the hosted server cannot turn a toolset on mid-session).
|
|
41
|
+
* Keep both small: chat connectors and Cursor degrade past about 40 tools.
|
|
30
42
|
*/
|
|
31
43
|
declare const PRESET_TOOLS: Partial<Record<FeatureGroup, readonly string[]>>;
|
|
44
|
+
/**
|
|
45
|
+
* Server instructions for a chat connection (`chat` in the features), used in
|
|
46
|
+
* place of the editor wording: chat assistants answer questions about an app,
|
|
47
|
+
* they do not edit its code.
|
|
48
|
+
*/
|
|
49
|
+
declare const CHAT_SERVER_INSTRUCTIONS: string;
|
|
50
|
+
/** Presets that list read tools only; naming only these makes a connection read-only. */
|
|
51
|
+
declare const READ_ONLY_PRESETS: readonly FeatureGroup[];
|
|
52
|
+
/**
|
|
53
|
+
* True when every name in the filter is a read-only preset (`?features=chat`):
|
|
54
|
+
* the connection hides and refuses write tools, whatever the key's scope.
|
|
55
|
+
*/
|
|
56
|
+
declare function featuresImplyReadOnly(filter: FeatureFilter): boolean;
|
|
32
57
|
/**
|
|
33
58
|
* Tools that were renamed or removed. The old name maps to its successor so
|
|
34
59
|
* callers / docs can resolve the new tool, and a one-release deprecation
|
|
@@ -44,5 +69,5 @@ declare function toolMatchesFeatures(toolName: string, filter: FeatureFilter): b
|
|
|
44
69
|
declare function featuresQueryString(groups: readonly FeatureGroup[]): string;
|
|
45
70
|
declare function appendFeaturesToUrl(baseUrl: string, groups: readonly FeatureGroup[]): string;
|
|
46
71
|
|
|
47
|
-
export { ALL_FEATURE_GROUPS, DEFAULT_FEATURE_GROUPS, DEPRECATED_TOOL_ALIASES, FEATURE_GROUPS, PRESET_TOOLS, TOOL_FEATURE_MAP, appendFeaturesToUrl, featuresQueryString, parseFeaturesCsv, parseFeaturesParam, toolMatchesFeatures };
|
|
72
|
+
export { ALL_FEATURE_GROUPS, CHAT_SERVER_INSTRUCTIONS, DEFAULT_FEATURE_GROUPS, DEPRECATED_TOOL_ALIASES, ENABLEABLE_TOOLSETS, FEATURE_GROUPS, PRESET_TOOLS, READ_ONLY_PRESETS, TOOL_FEATURE_MAP, appendFeaturesToUrl, featuresImplyReadOnly, featuresQueryString, parseFeaturesCsv, parseFeaturesParam, toolMatchesFeatures };
|
|
48
73
|
export type { FeatureFilter, FeatureGroup };
|
package/dist/feature-groups.js
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ALL_FEATURE_GROUPS,
|
|
3
|
+
CHAT_SERVER_INSTRUCTIONS,
|
|
3
4
|
DEFAULT_FEATURE_GROUPS,
|
|
4
5
|
DEPRECATED_TOOL_ALIASES,
|
|
6
|
+
ENABLEABLE_TOOLSETS,
|
|
5
7
|
FEATURE_GROUPS,
|
|
6
8
|
PRESET_TOOLS,
|
|
9
|
+
READ_ONLY_PRESETS,
|
|
7
10
|
TOOL_FEATURE_MAP,
|
|
8
11
|
appendFeaturesToUrl,
|
|
12
|
+
featuresImplyReadOnly,
|
|
9
13
|
featuresQueryString,
|
|
10
14
|
parseFeaturesCsv,
|
|
11
15
|
parseFeaturesParam,
|
|
12
16
|
toolMatchesFeatures
|
|
13
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SYV3LMVF.js";
|
|
14
18
|
export {
|
|
15
19
|
ALL_FEATURE_GROUPS,
|
|
20
|
+
CHAT_SERVER_INSTRUCTIONS,
|
|
16
21
|
DEFAULT_FEATURE_GROUPS,
|
|
17
22
|
DEPRECATED_TOOL_ALIASES,
|
|
23
|
+
ENABLEABLE_TOOLSETS,
|
|
18
24
|
FEATURE_GROUPS,
|
|
19
25
|
PRESET_TOOLS,
|
|
26
|
+
READ_ONLY_PRESETS,
|
|
20
27
|
TOOL_FEATURE_MAP,
|
|
21
28
|
appendFeaturesToUrl,
|
|
29
|
+
featuresImplyReadOnly,
|
|
22
30
|
featuresQueryString,
|
|
23
31
|
parseFeaturesCsv,
|
|
24
32
|
parseFeaturesParam,
|