@epoch-agent/plugin-mcp 0.7.1 → 0.9.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/dist/index.d.ts +24 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,20 @@ interface McpServerStatus {
|
|
|
137
137
|
* 工具表**(同下面那条限长 128 的账),于是一台名字写歪的插件 server 能把
|
|
138
138
|
* 用户所有的工具一起带走。
|
|
139
139
|
*
|
|
140
|
+
* ## ⚠️ 再往后那一截(server 报的工具名)2026-09-09 起也卡了
|
|
141
|
+
*
|
|
142
|
+
* 上面两段说的都是**前缀**(宿主 namespace / 插件名 / server 名),而
|
|
143
|
+
* `mcp__<server>__<工具>` 的最后一段是 server 在 `tools/list` 里自己报的,
|
|
144
|
+
* 在那之前**只量长度不看字符集**。也就是说第二条判据(「不是只坏它自己」)
|
|
145
|
+
* 在末段上一直成立、一直没人管 —— 一台报出 `search issues` 的 server 照样能
|
|
146
|
+
* 把用户所有工具带走,而且**用户那批也一样中招**(这一段不分插件和用户)。
|
|
147
|
+
*
|
|
148
|
+
* 现在三段合一道闸,落在 `runtime/src/host-capabilities.ts` 的
|
|
149
|
+
* `dropInvalidToolNames`(判据全文在那个文件头 📮),由进注册表的唯一入口
|
|
150
|
+
* `registerMcpBatch` 调。⚠️ 这**不推翻**上面那两段:前缀那两处照旧在各自的
|
|
151
|
+
* 装配点卡形状 —— 早报一步的诊断能指名道姓说「是这台 server 的名字不对」,
|
|
152
|
+
* 而末段那道闸只说得出「这个工具名不行」。
|
|
153
|
+
*
|
|
140
154
|
* ## 为什么这一格是**必填**
|
|
141
155
|
*
|
|
142
156
|
* 加一个可选字段是**宽化** —— `server/src/capability.ts` 的结构镜像 `McpView`
|
|
@@ -477,7 +491,16 @@ declare function getPromptText(client: Client, name: string, args?: Record<strin
|
|
|
477
491
|
* 走同一条代码路径 —— 两条路径分叉的话,缓存命中和不命中会得到不同的工具。
|
|
478
492
|
*/
|
|
479
493
|
|
|
480
|
-
/**
|
|
494
|
+
/**
|
|
495
|
+
* MCP 工具名前缀。撞名交给 ToolRegistry 处理(先注册的胜出)。
|
|
496
|
+
*
|
|
497
|
+
* ⚠️ **`mcp__` 这四个字符是一条契约,不是排版。** core 的
|
|
498
|
+
* `permission/operation-type.ts` 拿它判「这个工具的输出算不算外部内容」
|
|
499
|
+
* (`isOpenWorldTool` 的第 2 条)—— 那一侧不能 import 这个包(分层:
|
|
500
|
+
* `plugins/*` 和 core 是平级的两条腿),所以它自己立了一个同值的常量。
|
|
501
|
+
* 改这里的拼法就得改那里,而漏改的表现是**第三方 server 的输出不再被标成
|
|
502
|
+
* 不可信**,屏幕上一个字都不报。
|
|
503
|
+
*/
|
|
481
504
|
declare function prefixedName(serverName: string, toolName: string): string;
|
|
482
505
|
/**
|
|
483
506
|
* 取消信号 —— `ToolContext.signal` 那一格,原样透传。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epoch-agent/plugin-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "epoch-agent MCP 客户端插件",
|
|
6
6
|
"repository": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
25
25
|
"zod": "^4.4.3",
|
|
26
|
-
"@epoch-agent/infra": "0.
|
|
27
|
-
"@epoch-agent/protocol": "0.
|
|
26
|
+
"@epoch-agent/infra": "0.9.0",
|
|
27
|
+
"@epoch-agent/protocol": "0.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^26.1.2",
|