dsh-chatgpt-pro-bridge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dsh-chatgpt-pro-bridge
English | 简体中文
A DeepSeek Harness (DSH) bundle providing a read-only MCP bridge and a delegation driver that puts ChatGPT web behind a DSH session.
ChatGPT reads the folders you expose over MCP; DSH drives chatgpt.com in a plugin-owned Chrome window to send briefs (task, diff, test output) and read the answer back.
What it provides
MCP endpoint (read-only) with
workspace_info,resolve_root,read_file, andsearchover N folders per project.OAuth 2.1 gateway on
127.0.0.1:7791: authorization code + S256 PKCE, dynamic client registration, one-time pairing code, and a Bearer-gated/mcpproxy so the DSH UI is never exposed through the tunnel.Lending desk (借阅台): a standalone Host-served page embedded in DSH (
ChatGPT Proin the sidebar) with projects, workspace/session actions, read-only folders, a connection ticket, and access records grouped by delegation.Public tunnel started with the plugin:
ngrokwith a static domain by default, orcloudflare-quickfor a temporary address; the public address and pairing code appear on the plugin page.Host tools:
chatgpt_bridge_status,chatgpt_bridge_use,chatgpt_bridge_pairing,chatgpt_bridge_rotate_pairing,chatgpt_bridge_probe,chatgpt_bridge_browser,chatgpt_bridge_handoff, andchatgpt_bridge_add_root.Commands:
/cg-use [project](inspect or bind the current session's project),/cg-review(review uncommitted changes), and/cg-ask <question>steer a user message into the current session agent and return immediately. The agent callschatgpt_bridge_handoffonce; the question and tool answer appear in the conversation, followed by a brief takeaway.
Related MCP server: C2C Bridge
Requirements
DSH
>=0.2.1-rc.2, Node.js>=20.Google Chrome for Testing (from the Playwright cache or Applications) or
/Applications/Google Chrome.appas fallback. Setconfig.browser.executablePathorDSH_CHATGPT_BRIDGE_BROWSERto override automatic detection. Chrome runs with a dedicated profile and--remote-debugging-port=9333.Tunnel (default: ngrok): ngrok v3 on
PATH(brew install ngrok), an authtoken configured withngrok config add-authtoken <token>, and the free static domain assigned to your ngrok account. The plugin starts ngrok without HTTP(S)/ALL proxy environment variables because the free plan rejects proxied agents; also remove anyproxy_urlfromngrok.yml.Alternative tunnel:
cloudflaredonPATH(brew install cloudflared) withconfig.gateway.tunnel.provider: cloudflare-quickfor a temporary address.
Install
dsh plugin --profile web add github:hotheat/dsh-chatgpt-pro-bridgeRestart dsh web after installing or updating so DSH loads the client bundle.
Configure
Configure your tunnel domain in your DSH profile patch (for example ~/.dsh/profiles/web/cordis.patch.yml), not inside the installed package:
- id: dsh-chatgpt-pro-bridge
config:
gateway:
port: 7791
tunnel:
provider: ngrok
domain: your-static-domain.ngrok-free.appSet
domainto your assigned ngrok hostname withouthttps://or a path; the authtoken stays in ngrok's own config.To use Cloudflare Quick Tunnel instead, set
provider: cloudflare-quickand omitdomain.Optional browser settings under
config.browser:executablePath: custom Chrome/Chromium executable path (also supported viaDSH_CHATGPT_BRIDGE_BROWSER).idleTimeoutMs: idle auto-exit delay in milliseconds (default600000/ 10 minutes;0disables auto-exit).
Optional initial seed settings (only used when
~/.dsh/chatgpt-pro-bridge/state.jsondoes not exist yet):project(default'default') androots([{ alias, path }]).
Connect ChatGPT
Start (or restart)
dsh weband open ChatGPT Pro in the DSH sidebar.Copy the
https://<domain>/mcpaddress and the 8-character pairing code from the ticket.In ChatGPT, go to Settings → Connectors and create a connector with that URL.
Complete OAuth authorization in the browser: on ngrok's free plan, click Visit Site on the first browser warning, then enter the pairing code (the bridge rotates the code after authorization).
Click 打开登录窗口 on the lending desk page to sign into
chatgpt.cominside the plugin-owned Chrome profile.
State and workflow
Runtime state lives outside the package in ~/.dsh/chatgpt-pro-bridge/:
state.json: projects, read-only roots, session bindings, saved conversation URLs, delegation records, and last delegated project.oauth.json: registered OAuth clients, issued tokens, and pairing code.chrome-profile/: the dedicated browser profile used forchatgpt.com.
One connector serves all projects through /api/chatgpt-bridge/mcp.
During a delegation it exposes that delegation's project; while idle it exposes the last delegated project, falling back to the active project when that project is missing.
Each project keeps its read-only roots, an optional DSH workspace path, and one saved ChatGPT conversation URL.
Session bindings take priority over the longest matching cwd workspace or root, followed by the active project.
Open ChatGPT Pro in the DSH sidebar to use the lending desk (借阅台):
The ticket shows the live MCP scope, pairing expiry, client/token counts, and a warning when a previously observed tunnel address changes. Use 已更新连接器 after updating the connector.
The header pill shows 桥接浏览器 运行中 alongside the browser label, or 桥接浏览器 未启动 when stopped, with the idle auto-exit hint in its tooltip. Use 打开登录窗口 to open the bridge browser and 关闭浏览器 to exit it while idle.
Before a queued delegation starts, a changed tunnel address blocks it without opening the browser. Both
/cg-reviewand/cg-askalso check before steering a model turn and report the current address and the 已更新连接器 action. An empty public address does not block delegation.The ledger includes refused reads and completed or failed delegation results, with 本项目 / 全部 filters.
Stopping the DSH session cancels its handoff: queued handoffs are skipped, and a running handoff attempts to stop ChatGPT generation. Use 停止 in the live delegation band or
chatgpt_bridge_browser(action="stop")to cancel manually. While idle with the browser running, 停止网页生成 attempts to stop any generation left on the page. Cancelled ledger entries show 已取消.Successful delegations store
mcpCalls; zero calls add a warning above the tool answer and in its returnedwarningfield, and show 未读取文件 in the ledger. If the answer mentions MCP errors, check whether the connector address is stale or the connector is enabled in that conversation.On the project page, choose a registered DSH workspace and click 新会话 to create a session there and bind it to the project. Bound sessions can be reopened with 打开;
/cg-use <project>binds an existing session.When creating a project, the selected workspace can also become its first read-only root. Changing or clearing the workspace association leaves the read-only roots unchanged.
The project menu supports rename, conversation reset, and confirmed deletion; removed roots can be restored through the toast. Projects with running or queued delegations reject rename and deletion with HTTP 400 until their tasks finish.
chatgpt_bridge_handoffaccepts optionalincludeChanges: trueto collectgit diff --no-color --unified=3andgit status --porcelain -uallfrom the session cwd (up to 8,000 status characters and 60,000 diff characters)./cg-reviewrejects a clean workspace immediately and otherwise requests this option.All delegation entries reuse the project's saved conversation unless
chatgpt_bridge_handoffsupplies an explicitconversationUrl. Only completed delegations save ChatGPT conversation URLs, provided the saved URL still matches their starting snapshot and no conversation reset occurred. 换新对话 clears the saved URL immediately, including during a delegation.
Limits
Read-only: no write tool, no shell, and no execution path.
.env,*.pem,id_rsa*, and sensitive path components are always refused.read_filereturns at most 400 lines and refuses files over 512 KiB;searchscans at most 4,000 files, 8 levels deep.ngrok: the static domain stays the same across restarts, and persisted OAuth tokens (valid for 30 days, no refresh flow yet) let the existing connector reconnect until expiry. ngrok's free plan shows a browser warning on the first visit to the OAuth authorization page; click Visit Site to continue.
cloudflare-quick: the temporary address changes whenever the bundle reloads; update the ChatGPT connector when it does.
Serial delegation:
chatgpt_bridge_handoff,/cg-review, and/cg-askshare one queue—one handoff at a time for the plugin's browser page. Browser login, close, status, probe, and debug share the same owner and reject requests while a delegation is queued or running. The management page's connection indicator only reads the CDP endpoint and remains available during delegation.On-demand Chrome & idle exit: Chrome launches on demand for login, delegation, or diagnostics.
chatgpt_bridge_browser(action="status")and idlestopdo not launch Chrome. The bridge exits Chrome after 10 minutes of inactivity by default (config.browser.idleTimeoutMs,0disables auto-exit).Reply completion: replies finish after their text stabilizes and the streaming indicator disappears. Text remaining unchanged for 12 seconds while streaming continues does not end the wait. The total timeout returns a failure with partial text and the character count read.
Development & uninstall
From a local clone:
npm install
npm testindex.js adapts DSH tools and HTTP routes to projects.js (pure project transitions), files.js (read-only root and file access), and delegation.js (reply completion and shared browser ownership). driver.js supplies browser detection and CDP/Playwright operations. npm test (node --test test/) checks these modules and the registered plugin entry points with a fake browser.
To uninstall from DSH:
dsh plugin --profile web remove dsh-chatgpt-pro-bridgeLicense
MIT © 2026 hotheat
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Web search, data extraction and controlled browser automation for AI assistants via OAuth.
Open your team's project from the AI you use: read and write its brief, documents, tasks and notes.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables ChatGPT Web to inspect a single local workspace read-only via the OpenAI Secure MCP Tunnel, with tools for listing files, reading text, searching, and viewing Git status/diff.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables ChatGPT Pro web to securely read workspace files, git diffs, and test records through OAuth-protected read-only MCP tools, so it can plan and review while Codex handles execution without uploading the repository.MIT
- AlicenseAqualityBmaintenanceEnables ChatGPT to discover and read local project governance documents, including decisions and action items, and optionally save or edit discussions back into projects using OAuth or a secure MCP tunnel.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables the ChatGPT web app to securely read selected files, git state, and test output from a local workspace through OAuth-protected read-only MCP tools, so TeleAgent retains full execution control.1MIT