Skip to content

Commit 8541054

Browse files
committed
fix: add ts-expect-error for optional inspector import
1 parent 67d1b1a commit 8541054

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ 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+
// @ts-expect-error - Optional peer dependency, may not be installed
322323
import('@mcp-use/inspector')
323324
.then(({ mountInspector }) => {
324325
// Auto-connect to the local MCP server at /mcp

0 commit comments

Comments
 (0)