@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.
@@ -11,7 +11,7 @@ var FEATURE_GROUPS = [
11
11
  "audit",
12
12
  "docs",
13
13
  "usage",
14
- "usage",
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
- fix_suggest: "triage",
45
- graph_neighborhood: "triage",
46
- graph_node_status: "triage",
47
- get_reporter_thread: "legacy",
44
+ suggest_fix: "triage",
45
+ get_graph_neighborhood: "triage",
46
+ get_graph_node: "triage",
48
47
  // inventory
49
- inventory_get: "inventory",
50
- inventory_diff: "inventory",
51
- inventory_findings: "inventory",
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) return "all";
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
@@ -5,7 +5,7 @@ import {
5
5
  DEFAULT_FEATURE_GROUPS,
6
6
  appendFeaturesToUrl,
7
7
  featuresQueryString
8
- } from "./chunk-PW4AK6SV.js";
8
+ } from "./chunk-VBXXUK5G.js";
9
9
 
10
10
  // src/clients.ts
11
11
  function projectServerName(projectId, projectName) {
@@ -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", "usage", "legacy"];
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
- /** Tools superseded by another — still registered when legacy/all enabled. */
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;
@@ -9,7 +9,7 @@ import {
9
9
  parseFeaturesCsv,
10
10
  parseFeaturesParam,
11
11
  toolMatchesFeatures
12
- } from "./chunk-PW4AK6SV.js";
12
+ } from "./chunk-VBXXUK5G.js";
13
13
  export {
14
14
  ALL_FEATURE_GROUPS,
15
15
  DEFAULT_FEATURE_GROUPS,