Skip to content

MCP App rendering fails with invalid static resource path #1082

@juhsoin

Description

@juhsoin

Inspector Version

  • v0.20.0

Describe the bug
When trying to run MCP app the following error occurs and is displayed instead of the MCP app

MCP Apps sandbox not loaded: Error: ENOENT: no such file or directory, open '/home/<homedir>/.npm/_npx/5a9d879542beca3a/node_modules/@modelcontextprotocol/inspector/server/static/sandbox_proxy.html'

To Reproduce
Steps to reproduce the behavior:

1.Run your mcp app and the Mcp inspector
2. Go to Apps panel
3. Click on your Mcp app
4. See the app panel on the right
5. The screen renders white with the aforementioned error.
Expected behavior
Instead or the error, the MCP app would render

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Linux, Debian 13
  • Browser, Chromium 144.0.7559.132 and Firefox 140.7.0esr

Additional context
The file in question resides on my machine in path @modelcontextprotocol/inspector/server/build/static/sandbox_proxy.html instead of teh expected @modelcontextprotocol/inspector/server/static/sandbox_proxy.html

Symlinking the path to the expected location makes the app work.

Version Consideration

Inspector V2 is under development to address architectural and UX improvements. During this time, V1 contributions should focus on bug fixes and MCP spec compliance. See CONTRIBUTING.md for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions