@getmikk/mcp-server 1.6.0 → 1.7.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 CHANGED
@@ -1,8 +1,17 @@
1
1
  # @getmikk/mcp-server
2
2
 
3
- MCP (Model Context Protocol) server for [Mikk](https://github.com/Ansh-dhanani/mikk) — plugs your project's architectural intelligence directly into AI assistants like Claude, Cursor, and any MCP-compatible client.
3
+ > Give your AI assistant real architectural intelligence not guesses.
4
4
 
5
- Once connected, your AI assistant can answer questions like *"what breaks if I change this file?"*, *"who calls `parseToken`?"*, and *"what are the architectural constraints for this project?"* — all grounded in the actual call graph, not guesses.
5
+ [![npm](https://img.shields.io/npm/v/@getmikk/mcp-server)](https://www.npmjs.com/package/@getmikk/mcp-server)
6
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](../../LICENSE)
7
+
8
+ MCP (Model Context Protocol) server for [Mikk](../../README.md) — connects your project's full architectural graph directly to AI assistants like Claude Desktop, Cursor, and any MCP-compatible client.
9
+
10
+ Once connected, your AI assistant can answer questions like *"what breaks if I change this file?"*, *"who calls `parseToken`?"*, and *"what are the architectural constraints for this project?"* — all grounded in the actual call graph, real export surfaces, and real constraint definitions. Not hallucinated. Not guessed.
11
+
12
+ Every tool reads from `mikk.lock.json` — no re-parsing, millisecond response times.
13
+
14
+ > Part of [Mikk](../../README.md) — the codebase nervous system for AI-assisted development.
6
15
 
7
16
  ---
8
17
 
@@ -76,6 +85,7 @@ All tools read from the lock file (`mikk.lock.json`) — fast, no re-parsing.
76
85
  | `mikk_get_module_detail` | Functions, files, exported API, and internal call graph for a module |
77
86
  | `mikk_get_function_detail` | Params, return type, call graph, source body, error handling for a function |
78
87
  | `mikk_search_functions` | Substring search across all function names |
88
+ | `mikk_semantic_search` | **Natural-language semantic search** using local vector embeddings (Xenova/all-MiniLM-L6-v2). Query: *"validate a JWT token"* returns functions ranked by semantic similarity (e.g. `verifyToken`, `validateJwt`). Requires optional `@xenova/transformers` package. |
79
89
  | `mikk_get_constraints` | All architectural constraints and design decisions |
80
90
  | `mikk_get_file` | Read raw source of any project file (with path traversal guard) |
81
91
  | `mikk_get_routes` | Detected HTTP routes (Express / Koa / Hono style) |
@@ -149,13 +159,37 @@ name: string # function name (e.g. "parseToken")
149
159
 
150
160
  ---
151
161
 
162
+ ### `mikk_semantic_search`
163
+
164
+ Find functions by **natural-language meaning**, not just name matching. Uses local vector embeddings (Xenova/all-MiniLM-L6-v2) to rank functions by semantic similarity.
165
+
166
+ ```
167
+ query: string # natural-language description (e.g. "validate JWT token", "send email notification")
168
+ topK: number # max results to return (default 10)
169
+ ```
170
+
171
+ **Example queries**:
172
+ - `"validate JWT token"` → ranks `verifyToken`, `validateJwt`, `checkToken` highest
173
+ - `"send an email notification"` → ranks `sendWelcomeEmail`, `notifyUser`, `emailAlert` highest
174
+ - `"database persistence"` → ranks `saveUser`, `storeRecord`, `commitTransaction` highest
175
+
176
+ **Advantages over `mikk_search_functions`**:
177
+ - Keyword search: exact substring match (very fast, narrow results)
178
+ - Semantic search: meaning match (slower, broader understanding, finds related functions)
179
+
180
+ **Requirements**: `@xenova/transformers` must be installed in your project (`npm install @xenova/transformers`). The first query will download the model (~22 MB) to `~/.cache/huggingface/` and cache it locally.
181
+
182
+ **Availability check**: If `@xenova/transformers` is not installed, the tool returns a helpful error message with installation instructions.
183
+
184
+ ---
185
+
152
186
  ### `mikk_impact_analysis`
153
187
 
154
188
  ```
155
189
  file: string # relative path to the file being changed
156
190
  ```
157
191
 
158
- Returns `changedNodes`, `impactedNodes`, depth, confidence, and the top 30 impacted functions.
192
+ Returns `changedNodes`, `impactedNodes`, depth, confidence, `classified` risk breakdown, and the top 30 impacted functions.
159
193
 
160
194
  ---
161
195
 
@@ -163,8 +197,9 @@ Returns `changedNodes`, `impactedNodes`, depth, confidence, and the top 30 impac
163
197
 
164
198
  1. **Before editing** → call `mikk_before_edit` with the files you plan to touch
165
199
  2. **Understanding a flow** → call `mikk_query_context` with your question
166
- 3. **Renaming a function** → call `mikk_find_usages` first
167
- 4. **Exploring the project** → `mikk_get_project_overview` → `mikk_get_module_detail`
200
+ 3. **Searching by meaning** → call `mikk_semantic_search` for natural-language queries
201
+ 4. **Renaming a function** → call `mikk_find_usages` first
202
+ 5. **Exploring the project** → `mikk_get_project_overview` → `mikk_get_module_detail`
168
203
 
169
204
  ---
170
205