@mushi-mushi/mcp 0.17.1 → 0.18.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 +18 -9
- package/dist/catalog.js +1 -1
- package/dist/{chunk-7UOTJ2LI.js → chunk-KNVB6HA7.js} +61 -93
- package/dist/{chunk-PW4AK6SV.js → chunk-VBXXUK5G.js} +31 -14
- package/dist/clients.js +1 -1
- package/dist/feature-groups.d.ts +8 -2
- package/dist/feature-groups.js +1 -1
- package/dist/index.js +254 -358
- package/dist/server.js +152 -253
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ var FEATURE_GROUPS = [
|
|
|
11
11
|
"audit",
|
|
12
12
|
"docs",
|
|
13
13
|
"usage",
|
|
14
|
-
"
|
|
14
|
+
"codebase",
|
|
15
15
|
/** Deprecated aliases kept for one release — hidden unless `legacy` or `all`. */
|
|
16
16
|
"legacy"
|
|
17
17
|
];
|
|
@@ -41,21 +41,16 @@ var TOOL_FEATURE_MAP = {
|
|
|
41
41
|
triage_issue: "triage",
|
|
42
42
|
query_lessons: "triage",
|
|
43
43
|
list_lessons: "triage",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
get_reporter_thread: "legacy",
|
|
44
|
+
suggest_fix: "triage",
|
|
45
|
+
get_graph_neighborhood: "triage",
|
|
46
|
+
get_graph_node: "triage",
|
|
48
47
|
// inventory
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
get_inventory: "inventory",
|
|
49
|
+
diff_inventory: "inventory",
|
|
50
|
+
list_gate_findings: "inventory",
|
|
52
51
|
inventory_current: "admin",
|
|
53
52
|
// setup
|
|
54
|
-
diagnose_connection: "setup",
|
|
55
53
|
diagnose_setup: "setup",
|
|
56
|
-
setup_check: "legacy",
|
|
57
|
-
ingest_setup_check: "legacy",
|
|
58
|
-
get_activation_status: "legacy",
|
|
59
54
|
activation_status: "setup",
|
|
60
55
|
project_integration_health: "setup",
|
|
61
56
|
setup_repo_for_mushi: "setup",
|
|
@@ -108,14 +103,31 @@ var TOOL_FEATURE_MAP = {
|
|
|
108
103
|
// audit
|
|
109
104
|
run_fullstack_audit: "audit",
|
|
110
105
|
get_backend_health: "audit",
|
|
106
|
+
// codebase understand
|
|
107
|
+
ask_codebase: "codebase",
|
|
108
|
+
get_file_summary: "codebase",
|
|
109
|
+
get_codebase_tour: "codebase",
|
|
110
|
+
search_codebase: "codebase",
|
|
111
|
+
get_codebase_domains: "codebase",
|
|
112
|
+
analyze_codebase_impact: "codebase",
|
|
113
|
+
analyze_wiki_knowledge: "codebase",
|
|
111
114
|
// docs
|
|
112
115
|
search_mushi_docs: "docs"
|
|
113
116
|
};
|
|
114
117
|
var DEPRECATED_TOOL_ALIASES = {
|
|
118
|
+
// Removed deprecated tools → successor.
|
|
115
119
|
setup_check: "diagnose_setup",
|
|
116
120
|
ingest_setup_check: "diagnose_setup",
|
|
121
|
+
diagnose_connection: "diagnose_setup",
|
|
117
122
|
get_activation_status: "activation_status",
|
|
118
|
-
get_reporter_thread: "get_report_timeline"
|
|
123
|
+
get_reporter_thread: "get_report_timeline",
|
|
124
|
+
// Renamed to verb_object → new name.
|
|
125
|
+
fix_suggest: "suggest_fix",
|
|
126
|
+
inventory_get: "get_inventory",
|
|
127
|
+
inventory_diff: "diff_inventory",
|
|
128
|
+
inventory_findings: "list_gate_findings",
|
|
129
|
+
graph_neighborhood: "get_graph_neighborhood",
|
|
130
|
+
graph_node_status: "get_graph_node"
|
|
119
131
|
};
|
|
120
132
|
function parseFeaturesParam(raw) {
|
|
121
133
|
if (raw == null || raw.trim() === "") return "all";
|
|
@@ -123,7 +135,12 @@ function parseFeaturesParam(raw) {
|
|
|
123
135
|
if (normalized === "all" || normalized === "*") return "all";
|
|
124
136
|
const groups = normalized.split(",").map((s) => s.trim()).filter(Boolean);
|
|
125
137
|
const valid = groups.filter((g) => FEATURE_GROUPS.includes(g));
|
|
126
|
-
if (valid.length === 0)
|
|
138
|
+
if (valid.length === 0) {
|
|
139
|
+
console.warn(
|
|
140
|
+
`[mushi-mcp] MUSHI_FEATURES="${raw}" contains no recognised groups; falling back to DEFAULT_FEATURE_GROUPS. Valid groups: ${FEATURE_GROUPS.join(", ")}`
|
|
141
|
+
);
|
|
142
|
+
return DEFAULT_FEATURE_GROUPS;
|
|
143
|
+
}
|
|
127
144
|
return valid;
|
|
128
145
|
}
|
|
129
146
|
function parseFeaturesCsv(raw) {
|
package/dist/clients.js
CHANGED
package/dist/feature-groups.d.ts
CHANGED
|
@@ -4,14 +4,20 @@
|
|
|
4
4
|
* When `features` is omitted → all tools (backward compatible).
|
|
5
5
|
* New installs default to DEFAULT_FEATURE_GROUPS via deeplink / docs.
|
|
6
6
|
*/
|
|
7
|
-
declare const FEATURE_GROUPS: readonly ["triage", "fixes", "inventory", "setup", "qa", "skills", "rewards", "admin", "audit", "docs", "usage", "
|
|
7
|
+
declare const FEATURE_GROUPS: readonly ["triage", "fixes", "inventory", "setup", "qa", "skills", "rewards", "admin", "audit", "docs", "usage", "codebase", "legacy"];
|
|
8
8
|
type FeatureGroup = (typeof FEATURE_GROUPS)[number];
|
|
9
9
|
/** Lean default for new Cursor installs (~45 tools vs 70 full). */
|
|
10
10
|
declare const DEFAULT_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
11
11
|
declare const ALL_FEATURE_GROUPS: readonly FeatureGroup[];
|
|
12
12
|
/** Map every tool/resource name → feature group. */
|
|
13
13
|
declare const TOOL_FEATURE_MAP: Record<string, FeatureGroup>;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Tools that were renamed or removed. The old name maps to its successor so
|
|
16
|
+
* callers / docs can resolve the new tool, and a one-release deprecation
|
|
17
|
+
* window keeps old agent configs from silently breaking. These names are NOT
|
|
18
|
+
* registered as tools; the map exists so the CLI, docs, and helpful-error
|
|
19
|
+
* paths can point users at the replacement.
|
|
20
|
+
*/
|
|
15
21
|
declare const DEPRECATED_TOOL_ALIASES: Record<string, string>;
|
|
16
22
|
type FeatureFilter = 'all' | readonly FeatureGroup[];
|
|
17
23
|
declare function parseFeaturesParam(raw: string | null | undefined): FeatureFilter;
|