Skip to content

Apps sandbox proxy omitted from package #1859

Description

@paulswithers

Describe the bug
I started MCP Inspector via `npx @modelcontextprotocol/inspector. I tried connecting to an MCP server, going to the Apps tab, and opening an app, but it threw this error.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Clear cache and run npx @modelcontextprotocol/inspector
  2. Connect to an MCP server that has an MCP App
  3. Go to the Apps tab
  4. Click on the MCP App in the left-hand navigation and select "open" from the dropdown and click "Open App"
  5. The "Sandbox not loaded" error occurs

Expected behavior
The app should display when selecting "open" and clicking "Open App".
I was able to resolve the problem by:

  1. Going to the git repo and went to clients/web/static/sandbox_proxy.html
  2. Copying the raw contents
  3. Going to my _npx directory and the cached node_modules/@modelcontextprotocol/inspector/clients/web folder
  4. Creating a subdirectory "static"
  5. Creating a file sandbox_proxy.html and pasting in the raw contents from the git repo
  6. Restarting npx @modelcontextprotocol/inspector

Additional context
Clearing the npx cache didn't solve it. I cross-referenced with NPM site and there's no "static" folder in @modelcontextprotocol/inspector/clients/web. I'm not sure if this is a CI/CD issue that's just not adding the static contents to NPM.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmcp-appsMCP Apps relatedv2Issues and PRs for v2

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions