Skip to content

Commit d15f0fb

Browse files
committed
fix(cli): prevent static module resolution for runtime mcp probe
1 parent e4739a9 commit d15f0fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/cli/src/commands/mcp-test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ function hasClaudeCodeSkill(): boolean {
1616

1717
async function hasMcpPackage(): Promise<boolean> {
1818
try {
19-
await import('@sandchest/mcp')
19+
const pkg = '@sandchest/mcp'
20+
await import(pkg)
2021
return true
2122
} catch {
2223
const here = dirname(fileURLToPath(import.meta.url))

0 commit comments

Comments
 (0)