Portal
Portal

Portal 是一个 VS Code 扩展,将当前工作区暴露为 公共 MCP 端点。其设计刻意精简:仅支持命令和文件传输。
通过隧道将任意 MCP 客户端(Claude、ChatGPT、Cursor、自定义代理、curl)连接到您的机器。代理可以运行 shell 命令并移动文件,但不能通过 MCP 工具编辑文本——因为没有此类工具。
您将获得
表面 | 作用 |
MCP Streamable HTTP |
|
文件 HTTP API |
|
侧边栏与设置 | 扁平 Win10 风格面板:启动/停止、复制 URL、隧道健康状态 |
Portal Agent 终端 |
|
Related MCP server: local-bridge
MCP 工具(恰好五个)
工具 | 用途 |
| 前台执行命令。默认超时 120s(最大 600s)。使用 |
| 启动长时间运行的进程。返回 |
| 按偏移量增量读取 stdout/stdout,省略 |
| 停止后台任务及其进程树( |
| 公共文件 API 的基础 URL、大小限制和 curl 示例。 |
Shell 环境: powershell(Windows 默认)、pwsh、cmd)()、bash / sh(存在 Git Bash 时)。自动设置 UTF-8。
会话: 复用来自 initialize 的 Mcp-Session-Id。若该 ID 丢失或未通过验证,请重新执行 SessionInitialized——不要自行编造 ID。
不存在 read_file / write_file / edit_file / list_* / search_files 等工具。请通过 shell 或 HTTP 文件 API 来读写。
文件传输(双向 HTTP)
与 MCP 使用相同的隧道和 token。默认最大大小:64 MiB(portal.maxTransferBytes)。上传操作将原子替换文件。下载支持 Range 并返回 SHA-256。
GET {base}?op=info capability + workspace
GET {base}?glob=**/* list files
GET {base}/<relpath> download
HEAD {base}/<relpath> metadata
PUT {base}/<relpath> upload
DELETE {base}/<relpath> delete
POST {base}?op=pack zip JSON { "paths": ["src"] }
POST {base}?op=unpack&dest=. unzip (raw zip body)免费 ngrok 域名需要以下请求头:ngrok-skip-browser-warning: 1。
# download
curl -fsSL -H "ngrok-skip-browser-warning: 1" \
"$BASE/README.md" -o README.md
# upload
curl -fsSL -H "ngrok-skip-browser-warning: 1" \
-T ./photo.png "$BASE/incoming/photo.png"
# pack a folder
curl -fsSL -H "ngrok-skip-browser-warning: 1" \
-H "Content-Type: application/json" \
-d '{"paths":["src"]}' "$BASE?op=pack" -o src.zip隧道提供商
提供商 | URL | 说明 |
| 每次启动生成新的随机 | 快速试用;不稳定 |
| 固定主机名 | 需要存储的隧道 token、公共主机名、固定在本机端口 |
| 保留域名(例如 | 永久性 URL |
| 自有命令或已有 URL | 占位符: |
路由 token 是秘密路径段。MCP 位于 /mcp/<token>。将 portal.routeToken 留空,则启动时自动生成一个。
命令(命令面板)
Portal: 启动 / 停止
Portal: 复制 URL
Portal: 检查隧道
Portal: 设置
Portal: 安装 cloudflared / 安装/升级 ngrox
Portal: 显示日志 / 显示 Agent 终端
有用的设置:portal.startOnActivation(默认开启)、portal.showCommandsInTerminal、portal.localPort(0 = 自动,cloudflare-named 除外)。
构建
需要 Node 18+ 和 VS Code ^1.95.0。
npm install
npm run build # esbuild → dist/extension.js
npm run typecheck
npm run package # .vsix (no bundled node_modules)加载打包后的 VSIX,或在桌面版 VS Code 主机中运行该扩展(extensionKind:ui + workspace)。
许可证
MIT 协议。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables cloud agents to securely operate local machine resources (files, commands, screenshots) via standard MCP protocol.MIT
- AlicenseNot gradedqualityAmaintenanceConnects local tools (browser, shell) to a remote MCP server via reverse-MCP, enabling the server agent to control your local browser and execute shell commands.237Apache 2.0
- AlicenseNot gradedqualityAmaintenanceExposes a local development project as a secure MCP server over a stable HTTPS URL via Cloudflare tunnel, with configurable access permissions and 33 development tools for file, command, Git, and process operations.MIT
- AlicenseNot gradedqualityCmaintenanceEnables remote MCP clients like ChatGPT to run shell commands and manage files on your local machine via a Cloudflare tunnel, exposing tools for file operations, search, and task management.MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/s3hq4y/portal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server