OpenAI Secure MCP Tunnel
Allows AI agents to securely access and manipulate local file systems and execute PowerShell commands by exposing the MCP server through OpenAI Tunnel, enabling file read, write, edit, and command execution within a workspace.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenAI Secure MCP Tunnelshow me the contents of package.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenAI Secure MCP Tunnel
一个基于 TypeScript 的 MCP 文件工具服务,通过 OpenAI Tunnel Client 将本地 stdio MCP 服务安全暴露给工作区。
功能
read:读取工作区内的文本文件write:创建或覆盖工作区内的文本文件edit:精确替换文件内容bash:在工作区内执行 PowerShell 命令
文件工具会限制路径必须位于工作区目录内。
Related MCP server: notion-local-ops-mcp
技术栈
Node.js 24+
pnpm 11
TypeScript
pnpm workspace + Turborepo
Vite Plus(Oxfmt、Oxlint、类型检查)
目录结构
apps/mcp-server MCP 服务入口
packages/pi-adapter 文件和命令工具适配层
packages/types 共享类型
scripts/tunnel-client Tunnel Client 启动脚本和配置快速开始
安装依赖:
vp install首次配置
打开 Tunnels 管理页面,创建 Tunnel,将生成的 Tunnel ID 填入
CONTROL_PLANE_TUNNEL_ID。打开 API Keys 页面,创建 API Key,将生成的 Key 填入
CONTROL_PLANE_API_KEY。在项目根目录创建
.env.local:
CONTROL_PLANE_TUNNEL_ID=tunnel_...
CONTROL_PLANE_API_KEY=sk-...
TUNNEL_CLIENT_PATH=./tunnel-client.exe
MCP_WORKSPACE_ROOT=.TUNNEL_CLIENT_PATH 和 MCP_WORKSPACE_ROOT 均可选;未配置时分别默认使用当前工作目录下的 tunnel-client.exe 和当前工作目录。相对路径以当前工作目录为基准解析。
下载 Tunnel Client
请从 OpenAI 控制台的 Tunnels 管理页面 下载与你的系统匹配的 tunnel-client,并将 Windows 可执行文件放到:
./tunnel-client.exe也可以查看 OpenAI tunnel-client 仓库 获取文档和源码。下载后可先检查配置:
.\tunnel-client.exe doctor `
--config .\scripts\tunnel-client\tunnel-client.yaml `
--explain启用 Vite Plus 提交前检查:
pnpm setup:hooks启动 Tunnel:
pnpm start-tunnel构建独立 Tunnel Client 启动目录:
pnpm build-tunnel该命令生成 dist-tunnel-client,不复制 tunnel-client.exe,也不会自动复制 .env.local。首次使用时请自行将 .env.local 复制到该目录,并将 exe 放入该目录,或在其中配置 TUNNEL_CLIENT_PATH。重复构建时会保留已有的 dist-tunnel-client/.env.local。
从项目根目录快速启动打包版本。请先将 .env.local 和 tunnel-client.exe 放入 dist-tunnel-client,并在其中的 .env.local 配置:
MCP_WORKSPACE_ROOT=..然后在终端中执行:
cd dist-tunnel-client
node start-cli.js上述命令适用于 Windows、macOS 和 Linux;退出 Tunnel Client 后可执行 cd .. 返回项目根目录。
Tunnel Client 的本地运维地址:
本地 Tunnel 启动后,打开 ChatGPT Plugins,在其中添加对应的 Plugin。
开发命令
pnpm format # 格式化代码
pnpm lint # 静态检查
pnpm quality # 格式化、lint 和类型检查
pnpm check # workspace 类型检查
pnpm build # 构建全部 workspace
pnpm ci # CI 全量检查也可以单独启动 MCP 服务:
pnpm start-mcp-server请勿将 .env.local、API Key 或 Tunnel 凭据提交到 Git。
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
- Alicense-qualityCmaintenanceProvides secure, sandboxed file system access for AI assistants to read, write, and manage project files with controlled command execution capabilities, all confined to a designated workspace directory.Last updatedMIT
- Alicense-qualityBmaintenanceEnables Notion AI to interact with local files, execute shell commands, and delegate complex tasks to local AI agents. Provides file operations, command execution, and task delegation capabilities for local workspace management.Last updated101MIT
- Alicense-qualityBmaintenanceEnables ChatGPT/Codex to read, search, and edit files in a single allowed folder on Windows through OpenAI Secure MCP Tunnel.Last updatedISC
- Alicense-qualityCmaintenanceEnables ChatGPT to remotely orchestrate local Codex and Claude Code agents for file editing and command execution via a secure Cloudflare tunnel, bridging cloud AI planning with local execution.Last updated1MIT
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
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/6maple/mcp-for-chatgpt-web-tunnel'
If you have feedback or need assistance with the MCP directory API, please join our Discord server