GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
A self-hosted VS Code workbench embedded as an interactive MCP App.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MCP_VSCODE_WORKSPACE, MCP_VSCODE_RENDER_MODE, MCP_VSCODE_STREAM_BROWSER, MCP_VSCODE_STREAM_NO_SANDBOX你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"vscode": {
"command": "npx",
"args": [
"-y",
"@mario.andreschak/mcp-vscode",
"--stdio",
"your-value"
],
"env": {
"MCP_VSCODE_WORKSPACE": "your-value",
"MCP_VSCODE_RENDER_MODE": "your-value",
"MCP_VSCODE_STREAM_BROWSER": "your-value",
"MCP_VSCODE_STREAM_NO_SANDBOX": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add vscode --env MCP_VSCODE_WORKSPACE=your-value --env MCP_VSCODE_RENDER_MODE=your-value --env MCP_VSCODE_STREAM_BROWSER=your-value --env MCP_VSCODE_STREAM_NO_SANDBOX=your-value -- npx -y @mario.andreschak/mcp-vscode --stdio your-value运行前请先填写空着的值。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"vscode": {
"command": "npx",
"args": [
"-y",
"@mario.andreschak/mcp-vscode",
"--stdio",
"your-value"
],
"env": {
"MCP_VSCODE_WORKSPACE": "your-value",
"MCP_VSCODE_RENDER_MODE": "your-value",
"MCP_VSCODE_STREAM_BROWSER": "your-value",
"MCP_VSCODE_STREAM_NO_SANDBOX": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器需要在启动命令中填入值,请复制设置后自行填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"vscode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mario.andreschak/mcp-vscode",
"--stdio",
"your-value"
],
"env": {
"MCP_VSCODE_WORKSPACE": "your-value",
"MCP_VSCODE_RENDER_MODE": "your-value",
"MCP_VSCODE_STREAM_BROWSER": "your-value",
"MCP_VSCODE_STREAM_NO_SANDBOX": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MCP_VSCODE_RENDER_MODE envMCP_VSCODE_STREAM_BROWSER envMCP_VSCODE_STREAM_NO_SANDBOX env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
发布者(mario-andreschak)不是仓库所有者(flujo-app);可能是其他人代为上架的
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 0 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MCP_VSCODE_WORKSPACE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.2)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP VS Code runs a self-hosted Code OSS/OpenVSCode workbench beside an MCP server so the human and the model operate the same workspace, open editors, diagnostics, commands, extensions, and terminal sessions. This is not remote control of a separately installed desktop VS Code. Supported distributions carry their own OpenVSCode runtime and bridge extension. Microsoft-hosted vscode.dev is not used because it disallows framing.
There are four pieces:
flowchart LR
H["MCP host"] <-->|"stdio or Streamable HTTPS"| S["mcp-vscode server"] H --> A["sandboxed MCP App"]
A -->|"default: allowed frameDomains"| I["OpenVSCode iframe"] A <-->|"opt-in: authenticated /stream WebSocket"| C["pixel canvas"] A -->|"honest fallback: openLink"| X["separate browser tab"]
I --> G["browser-reachable gateway origin"] X --> G C <-->|"JPEG frames + input"| B["server-side system Chromium"] B --> O["loopback OpenVSCode"] G --> O O <-->|"authenticated /bridge WebSocket"| S S --> W["confined workspace and PTYs"] O --> W
The default iframe and browser-tab paths deliver OpenVSCode directly. Experimental streaming launches an existing Edge, Chrome, or Chromium on the server, points it at that same OpenVSCode runtime, and transports its pixels and user input. The canvas is a remote display, not another editor implementation.
| Mode | Selection | Required host capability | What the user sees |
|---|---|---|---|
embedded | Default when the host approves the declared workbench origin and the liveness probe succeeds | frameDomains for the nested document | Genuine OpenVSCode inside the MCP App |
stream | Only when MCP_VSCODE_RENDER_MODE=stream | A reachable WebSocket allowed by connectDomains; no nested-frame grant | Genuine OpenVSCode rendered by server-side Chromium and drawn as pixels in the MCP App |
browser | Honest fallback when the requested inline mode is denied, unreachable, or unavailable | Host-supported openLink, or a normal link in the debug page | The same genuine OpenVSCode workbench in a separate tab |
probing is a temporary UI state, not a renderer.
With no render-mode environment variable, the App:
frameDomains reported by the host when that information is available;mcp-vscode:workbench-alive message;embedded only after that positive signal; orbrowser card with the exact policy, network, or runtime reason.A CSP-blocked iframe can emit neither a useful load nor error event, so a plain iframe event is not treated as success. The liveness timeout prevents a permanent blank view.
An MCP server's CSP declaration is a permission request, not a way to overrule the host. A host may approve it, restrict it, or deny it. CORS headers on mcp-vscode cannot repair a frame-src decision made by the outer host.
Set:
MCP_VSCODE_RENDER_MODE=stream
Streaming deliberately replaces the iframe decision for that process; it is not an automatic fallback. If streaming cannot start, the App reports the failure and moves to the honest browser option rather than silently selecting a different editor.
The server:
MCP_VSCODE_STREAM_BROWSER;node account from /etc/passwd, transfers ownership of that private profile, and drops only the Chromium child to its non-zero uid/gid;HOME, TMPDIR, and XDG directories into that same ephemeral profile instead of inheriting the server account's paths;127.0.0.1 only;The /stream WebSocket uses its own random 256-bit bearer token. Both the tokenized stream URL and the high-entropy /ide/ URL are excluded from model-visible tool text and structuredContent; they are delivered to the MCP App through tool-result _meta only. Logs do not contain the stream token.
Streaming is useful when a host grants connectDomains but refuses frameDomains, which is the behavior observed with locally configured Claude Desktop stdio connectors in the test documented in the upstream report draft.
Streaming remains experimental:
All three displayed outcomes refer to the real OpenVSCode runtime. If that runtime is missing or failed, there is no editor UI to show. File, Git, and terminal MCP tools may still operate where applicable, but editor/diagnostics/command/extension tools that require the live bridge fail explicitly.
There is no special macOS editor fallback: without an OpenVSCode Server runtime, neither embedding, streaming, nor the external-browser view can provide the workbench.
| Variable | Default | Purpose |
|---|---|---|
MCP_VSCODE_WORKSPACE | Process working directory | Absolute workspace root. Prefer setting this explicitly. --workspace takes precedence. |
MCP_VSCODE_OPENVSCODE_ROOT | Platform runtime package or bundled runtime | Override the OpenVSCode runtime directory. --openvscode-root takes precedence. |
MCP_VSCODE_RENDER_MODE | default | Set exactly stream to enable experimental genuine-workbench pixel streaming. default, empty, or unset uses iframe/browser behavior. Other values fail startup. |
MCP_VSCODE_STREAM_BROWSER | Auto-discovery | Absolute path to Edge, Chrome, or Chromium for streaming. |
MCP_VSCODE_STREAM_NO_SANDBOX | 0 | Set 1 or true only as an explicit last resort when a locked-down container cannot run Chromium's own sandbox. On POSIX, a root mcp-vscode process instead drops only Chromium to a safe node account by default. |
FLUJO-managed hosted children may also receive FLUJO_MCP_APP_RUNTIME_REGISTER_URL and FLUJO_MCP_APP_RUNTIME_REGISTER_TOKEN. Those are short-lived internal broker capabilities, not user settings. mcp-vscode proves possession, registers an allowlisted route manifest, clears both variables before OpenVSCode starts, and never exposes the bearer to the workbench.
Default mode honestly falls back to a browser when the tested Claude Desktop host declines the local loopback frameDomains request:
{
"mcpServers": { "vscode": { "command": "npx", "args": ["-y", "@mario.andreschak/mcp-vscode@0.2.4", "--stdio"], "env": { "MCP_VSCODE_WORKSPACE": "C:\\path\\to\\repository" } } } }
To test genuine inline streaming instead:
{
"mcpServers": { "vscode": { "command": "npx", "args": ["-y", "@mario.andreschak/mcp-vscode@0.2.4", "--stdio"], "env": { "MCP_VSCODE_WORKSPACE": "C:\\path\\to\\repository", "MCP_VSCODE_RENDER_MODE": "stream", "MCP_VSCODE_STREAM_BROWSER": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe" } } } }
<!-- x-release-please-end -->
The browser-path override is optional when discovery finds an installed browser. Host behavior changes over time; re-run the manual matrix against the exact Claude Desktop version rather than treating the current observation as permanent.
A user can visit one human-facing site such as try.flujo.com.co, while the browser uses additional security origins behind the scenes. A sandboxed MCP App and its nested workbench cannot safely be collapsed into one literal browser origin merely to make deployment look simpler.
For a FLUJO-managed stdio child, the runtime-broker handshake solves the private-port problem:
/ide/ prefix, including the workbench's HTTP and WebSocket traffic./stream WebSocket route.127.0.0.1 to the visitor./mcp, /bridge, /healthz, /app, /session.json, and the temporary proof route private.The hosted deployment still needs:
/stream when experimental streaming is enabled;Upgrade, Host, Origin, and Referer behavior expected by the sandbox and workbench; andhttps: origin so the corresponding stream URL is wss:.For streaming on Fly, install Edge, Chrome, or Chromium in the Machine image. Prefer running the whole container unprivileged. If FLUJO must run mcp-vscode as root, the image must contain exactly one node account with a non-zero uid and gid and a safe shared /tmp (root-owned, traversable, and sticky when group/world-writable); mcp-vscode creates the high-entropy profile under that ancestor, chowns only the profile, and spawns only the browser under node with the sandbox intact. Missing or unsafe account/temp-directory data produces a visible streaming-unavailable error. It never silently adds --no-sandbox. MCP_VSCODE_STREAM_NO_SANDBOX=1 remains an explicit last-resort security tradeoff, not ordinary deployment configuration.
If mcp-vscode is deployed remotely without FLUJO's broker, --public-url must name an equivalent browser-reachable gateway origin and the reverse proxy must carry the same workbench HTTP/WebSocket and optional /stream WebSocket traffic. CORS settings alone cannot replace routing.
The local gateway serves:
| Route | Authentication/exposure | Purpose |
|---|---|---|
GET /healthz | Local deployment policy | Liveness and OpenVSCode/bridge state |
| GET /session.json | ?token= when `--auth-to
只显示了开头部分;其余内容请在仓库中阅读