Skip to content

Commit 951dbfd

Browse files
committed
fix: use @ts-ignore instead of @ts-expect-error for optional inspector import
1 parent 0fbc082 commit 951dbfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mcp-use/src/server/mcp-server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ export class McpServer {
319319

320320
// Try to dynamically import the inspector package
321321
// Using dynamic import makes it truly optional - won't fail if not installed
322+
323+
// @ts-ignore - Optional peer dependency, may not be installed during build
322324
import('@mcp-use/inspector')
323325
.then(({ mountInspector }) => {
324326
// Auto-connect to the local MCP server at /mcp

0 commit comments

Comments
 (0)