Skip to content

Commit 8708c2a

Browse files
johnlindquistclaude
andcommitted
fix: move MCP import to end of lib.ts to fix test failures
The MCP import was causing CI test failures for 'env should work with different params' and 'testing "run" is global' because it was imported before core globals were initialized. Moving the import to the end of lib.ts ensures all globals are available when MCP loads. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e3d184e commit 8708c2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/lib.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
await import("../lib/ai.js")
2-
await import("../lib/mcp.js")
32
await import("../lib/audio.js")
43
await import("../lib/browser.js")
54
await import("../lib/desktop.js")
@@ -10,5 +9,7 @@ await import("../lib/text.js")
109
await import("../lib/utils.js")
1110
await import("../api/react.js")
1211

12+
// Import MCP after all core globals are initialized
13+
await import("../lib/mcp.js")
1314

1415
export { }

0 commit comments

Comments
 (0)