@procedures/mcp-dev-tools 0.62.0 → 0.62.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +21 -2
  3. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @procedures/mcp-dev-tools
2
2
 
3
+ ## 0.62.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 02582c5: The tool search finds synonyms. A thesaurus of the general words of tool operations gives each word of the query its synonyms at half weight. So `remove` finds `delete`, `download` finds `pull`, and the phrase `same time` finds `parallel`.
8
+
9
+ - Each synonym has its own IDF, so a common synonym does not lower the weight of a rare word of the query.
10
+ - A document scores the best word of each term, so two synonyms in one document do not count two times.
11
+ - The golden set of the dev tools has 20 new held-out queries, written before the first run of the synonyms. On the 48 old queries, hit5 goes from 43 to 48 and hit1 from 39 to 43. On the 20 held-out queries, hit5 goes from 16 to 19 and hit1 from 7 to 15.
12
+
13
+ PATCH: before 1.0.0, a backward-compatible feature raises PATCH. The API does not change: `searchDocuments` keeps its signature and only ranks better.
14
+ - 365aad4: The tool search (direction 40, the tool surface). A server with thousands of tools now gives the model three tools in place of each tool.
15
+
16
+ - `@procedures/client`: the new core procedure `procedure.search` finds the procedures by words. It searches only the procedures that the host exposes. The ranking is BM25 over the key, the tags and the description. The functions `searchDocuments` and `searchWords` give the same ranking to each catalog of tools.
17
+ - `@procedures/mcp-server`: the new option `listing: "search"` of the transport and of `createMcpHost()` lists three tools: `search_tools`, `describe_tool` and `call_tool`. The expose rule and the call policy do not change. The default `"each"` keeps the list of each tool.
18
+ - `@procedures/mcp-dev-tools` and `@procedures/mark`: `MCP_LISTING=search` and `mark mcp --listing search` start the dev-tools server with the search listing.
19
+
20
+ A list of the three tools is 1410 bytes of JSON. The list of each tool costs about 386 tokens for each tool.
21
+ - Updated dependencies [4ce6ac9]
22
+ - Updated dependencies [02582c5]
23
+ - Updated dependencies [77d07c7]
24
+ - Updated dependencies [365aad4]
25
+ - @procedures/compiler@0.62.1
26
+ - @procedures/client@0.62.1
27
+ - @procedures/mcp-server@0.62.1
28
+ - @procedures/bundle-mcp@0.62.1
29
+ - @procedures/fs@0.62.1
30
+
3
31
  ## 0.62.0
4
32
 
5
33
  ### Patch Changes
package/README.md CHANGED
@@ -49,8 +49,9 @@ When the client closes the input of stdio, the server stops: the calls in flight
49
49
  | `MCP_HTTP_MAX_SESSIONS` | `256` | The most sessions of the Streamable HTTP face at one time (CLI-51). `Infinity` turns the limit off. |
50
50
  | `MCP_PROGRAM_CHECK` | `true` | With `false`, a program starts without the check before the run |
51
51
  | `MCP_FS_ROOT` | not set | The root of the files: each tool keeps its paths in this folder, or the host refuses it. Refer to "The root of the files". |
52
+ | `MCP_LISTING` | `each` | With `search`, the list has three tools: `search_tools`, `describe_tool` and `call_tool`. Refer to "The cost of the search listing". |
52
53
 
53
- `mark mcp` starts the same server. Its flags replace the variables: `--bundles`, `--tool-timeout`, `--read-only`, `--http`, `--host`, `--token`, `--max-sessions` and `--fs-root`.
54
+ `mark mcp` starts the same server. Its flags replace the variables: `--bundles`, `--tool-timeout`, `--read-only`, `--http`, `--host`, `--token`, `--max-sessions`, `--fs-root` and `--listing`.
54
55
 
55
56
  The server operates under `run()` of `@mark1russell7/service` (CLI-11). The runner owns the signals, the stop in stages and the exit of the process.
56
57
 
@@ -103,7 +104,25 @@ The server sends `console.log` output to stderr, because stdout carries the MCP
103
104
 
104
105
  ## The tool list
105
106
 
106
- `tools.snapshot.txt` has the names of the 91 tools. `src/tools.test.ts` starts the real server over stdio and compares its tools with the file. It also examines that a `docker.*` tool cannot start a shell command. To change the tools, change `bundle-mcp` and `tools.snapshot.txt` in one commit. The [bundle-mcp README](../bundle-mcp/README.md) lists the tools and the reasons for the procedures that stay out.
107
+ `tools.snapshot.txt` has the names of the 94 tools. `src/tools.test.ts` starts the real server over stdio and compares its tools with the file. It also examines that a `docker.*` tool cannot start a shell command. To change the tools, change `bundle-mcp` and `tools.snapshot.txt` in one commit. The [bundle-mcp README](../bundle-mcp/README.md) lists the tools and the reasons for the procedures that stay out.
108
+
109
+ ## The cost of the search listing
110
+
111
+ A session reads the list of the tools before it uses a tool. With `MCP_LISTING=search`, the list has three tools in place of each tool. Two tests hold the gains of this listing:
112
+
113
+ - `src/search-quality.test.ts` holds the quality of `search_tools` on the task queries of `search.golden.json`.
114
+ - `src/listing-cost.test.ts` holds its cost. The test starts the server two times and measures the UTF-8 bytes of the JSON that the model reads.
115
+
116
+ The bytes are a measure of the tokens. A task is the search listing, one result of `search_tools` and one result of `describe_tool`, for one golden query. A call costs the same in the two listings, so a task has no call.
117
+
118
+ | Measure | Bytes |
119
+ |---|---|
120
+ | The list of each tool (94 tools) | 121582 |
121
+ | The search listing (3 tools) | 1420 |
122
+ | A task, on average | 4714 |
123
+ | The worst task | 9686 |
124
+
125
+ `listing.cost.json` has two limits. The bytes of the search listing are exact. The share of the worst task in the list of each tool has a ceiling of 0.08. A new tool makes the list of each tool larger, so it does not fail the gate. To accept a change, start the test with `UPDATE_LISTING_COST=1` and examine the diff.
107
126
 
108
127
  ## Troubleshooting
109
128
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@procedures/mcp-dev-tools",
4
- "version": "0.62.0",
4
+ "version": "0.62.1",
5
5
  "description": "A ready-to-use MCP server for Claude Code and Claude Desktop: 91 developer tools (docker, mongo, sqlite, cue, vitest, workspace) with a strict call policy.",
6
6
  "keywords": [
7
7
  "mcp",
@@ -55,11 +55,11 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@mark1russell7/service": "^0.8.3",
58
- "@procedures/bundle-mcp": "0.62.0",
59
- "@procedures/client": "0.62.0",
60
- "@procedures/compiler": "0.62.0",
61
- "@procedures/fs": "0.62.0",
62
- "@procedures/mcp-server": "0.62.0"
58
+ "@procedures/bundle-mcp": "0.62.1",
59
+ "@procedures/client": "0.62.1",
60
+ "@procedures/compiler": "0.62.1",
61
+ "@procedures/fs": "0.62.1",
62
+ "@procedures/mcp-server": "0.62.1"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@mark1russell7/cue": "^2.1.1",