MCP server for sharing prototypes via InFlight
npm install mcp-inflightMCP server for sharing local prototypes via InFlight.
Share your local projects as live prototypes that stakeholders can interact with and provide feedback on - directly from Claude Code.
Add to your Claude Code config (~/.claude.json):
``json`
{
"mcpServers": {
"inflight": {
"command": "npx",
"args": ["-y", "mcp-inflight"]
}
}
}
Then restart Claude Code.
Ask Claude to share your project:
`
User: Share this project on InFlight
Claude: I'll share your project to InFlight...
Your prototype is live at: https://www.inflight.co/v/xyz789
`
The MCP server provides these tools:
| Tool | Description |
|------|-------------|
| share | Share a local project as a live prototype |prototype_list
| | List your deployed prototypes |prototype_sync
| | Sync changes to an existing prototype |prototype_delete
| | Delete a prototype |login
| | Login to InFlight (opens browser) |logout
| | Logout from InFlight |
- Next.js (App Router and Pages Router)
- Vite (React, Vue, Svelte, etc.)
- Create React App
- Node.js
- Static HTML
The MCP server automatically handles binary files including:
- Images: PNG, JPG, JPEG, GIF, WebP, ICO, SVG, BMP, TIFF, AVIF
- Fonts: WOFF, WOFF2, TTF, EOT, OTF
- Media: MP3, MP4, WebM, OGG, WAV
- Other: PDF, ZIP
Binary files are base64 encoded during upload and properly decoded in the sandbox, ensuring your /public folder assets work correctly.
Automatically detects and bundles workspace dependencies for monorepo projects using pnpm, npm, or yarn workspaces.
The server automatically patches configuration files for CodeSandbox compatibility:
- Vite: Adds allowedHosts for CodeSandbox domains
- Next.js: Configures CSP headers to allow iframe embedding
Projects over 3MB are automatically chunked into smaller uploads to handle Vercel's serverless function body size limits.
For the best experience, install the included slash commands. The /share command enables automated AI feedback guide generation - Claude analyzes your git changes and generates product-focused review questions that appear on your InFlight version.
Copy the command files to your Claude Code commands directory:
`bashCreate the commands directory if it doesn't exist
mkdir -p ~/.claude/commands
Or if you cloned the repo:
`bash
cp packages/mcp-inflight/commands/*.md ~/.claude/commands/
`$3
| Command | Description |
|---------|-------------|
|
/share | Share a project to InFlight with AI-generated feedback guide |
| /inflight | Menu for managing prototypes: list, sync, delete, login, logout |Troubleshooting
$3
If you see "Timeout: Waiting for server to start took longer than 120s", this usually means:
1. The project is large and takes a while to start
2. There's an error in the dev server startup
The deployment logs will show the exact command being used. Try running it locally to verify it works.
$3
If images from your
/public folder aren't loading, ensure:1. The file extension is in the supported binary file list
2. The file path is correct (paths are relative to project root)
$3
If you're getting authentication errors:
1. Run the
login` tool to re-authenticateMIT