@icoretech/warden-mcp 0.2.10 → 0.2.11
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/transports/stdio.js +3 -6
- package/package.json +1 -1
package/dist/transports/stdio.js
CHANGED
|
@@ -17,6 +17,9 @@ export async function runStdioTransport() {
|
|
|
17
17
|
`${process.env.HOME ?? '/data'}/bw-profiles`,
|
|
18
18
|
});
|
|
19
19
|
const bw = await pool.getOrCreate(bwEnv);
|
|
20
|
+
await bw.status().catch(() => {
|
|
21
|
+
// Best-effort stdio prewarm only. Real tool calls still surface failures.
|
|
22
|
+
});
|
|
20
23
|
const server = new McpServer({ name: APP_NAME, version: SERVER_VERSION });
|
|
21
24
|
registerTools(server, {
|
|
22
25
|
getSdk: async () => {
|
|
@@ -32,11 +35,5 @@ export async function runStdioTransport() {
|
|
|
32
35
|
transport.onclose = resolve;
|
|
33
36
|
});
|
|
34
37
|
await server.connect(transport);
|
|
35
|
-
const warmupTimer = setTimeout(() => {
|
|
36
|
-
void bw.status().catch(() => {
|
|
37
|
-
// Best-effort stdio warmup only. Real tool calls still surface failures.
|
|
38
|
-
});
|
|
39
|
-
}, 0);
|
|
40
|
-
warmupTimer.unref?.();
|
|
41
38
|
await closed;
|
|
42
39
|
}
|