@ultimat3/mcp 31.24.0 → 31.26.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/package.json +11 -11
- package/src/remote-tools.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/mcp",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.26.0",
|
|
4
4
|
"description": "MCP server, dev tools, and the action-to-tool projection \u2014 one authz system, two surfaces",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"test": "bun test"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ultimat3/action": "31.
|
|
48
|
-
"@ultimat3/auth": "31.
|
|
49
|
-
"@ultimat3/core": "31.
|
|
50
|
-
"@ultimat3/db": "31.
|
|
51
|
-
"@ultimat3/entity": "31.
|
|
52
|
-
"@ultimat3/http": "31.
|
|
53
|
-
"@ultimat3/jobs": "31.
|
|
54
|
-
"@ultimat3/policy": "31.
|
|
55
|
-
"@ultimat3/query": "31.
|
|
56
|
-
"@ultimat3/schema": "31.
|
|
47
|
+
"@ultimat3/action": "31.26.0",
|
|
48
|
+
"@ultimat3/auth": "31.26.0",
|
|
49
|
+
"@ultimat3/core": "31.26.0",
|
|
50
|
+
"@ultimat3/db": "31.26.0",
|
|
51
|
+
"@ultimat3/entity": "31.26.0",
|
|
52
|
+
"@ultimat3/http": "31.26.0",
|
|
53
|
+
"@ultimat3/jobs": "31.26.0",
|
|
54
|
+
"@ultimat3/policy": "31.26.0",
|
|
55
|
+
"@ultimat3/query": "31.26.0",
|
|
56
|
+
"@ultimat3/schema": "31.26.0"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/src/remote-tools.ts
CHANGED
|
@@ -87,6 +87,16 @@ export function declaredMcpServers(): ReadonlyMap<string, DeclaredMcpServer> {
|
|
|
87
87
|
return DECLARED;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Test seam: exactly `servers` again — a copy of what `declaredMcpServers()` answered earlier. A
|
|
92
|
+
* REPLACE, never a reset: `mcpTools()` runs at module scope, once per process. `@ultimat3/testing`'s
|
|
93
|
+
* file boundary is the caller.
|
|
94
|
+
*/
|
|
95
|
+
export function restoreDeclaredMcpServers(servers: ReadonlyMap<string, DeclaredMcpServer>): void {
|
|
96
|
+
DECLARED.clear();
|
|
97
|
+
for (const [name, server] of servers) DECLARED.set(name, server);
|
|
98
|
+
}
|
|
99
|
+
|
|
90
100
|
export function mcpTools(def: McpToolsDef): McpTools {
|
|
91
101
|
const maxChars = finiteCount('mcpTools', 'maxResultChars', def.maxResultChars ?? 20_000, 1);
|
|
92
102
|
const reverifyMs = finiteCount(
|