AgentBridge

AgentBridge

Enables local coding agents to send prompts to a user-authorized ChatGPT webpage through a browser extension and retrieve the final answer via MCP.

Category
访问服务器

README

AgentBridge

AgentBridge lets a local coding agent ask a user-authorized web AI through a browser extension. Version 0.1 connects Codex to the signed-in ChatGPT webpage running in Microsoft Edge.

Codex --MCP ask_chatgpt(prompt)--> AgentBridge --WebSocket--> Edge extension
      <-- final answer ------------------------------------ ChatGPT webpage

Current status

The v0.1 end-to-end path has been verified with a real ChatGPT webpage:

Codex → ask_chatgpt("1+1等于多少?") → ChatGPT → "2" → Codex

Current boundaries:

  • One local Edge extension connection.
  • One dedicated signed-in ChatGPT tab.
  • One text-only request at a time.
  • User confirmation remains enabled for MCP calls.
  • ChatGPT DOM changes can require adapter updates.

Quick start on Windows

Create the project environment:

py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
npm install

If your network needs a local proxy, append its temporary proxy option to pip and npm; do not commit proxy credentials or environment files.

Start the local bridge:

.\Start-AgentBridge.ps1

Load the unpacked Edge extension from:

extension

Then open a signed-in https://chatgpt.com/ tab. See EDGE_MVP.md for the detailed installation and test flow.

Use from Codex

The project includes a project-scoped MCP configuration at .codex/config.toml. To use AgentBridge from any local Codex task, register the same Streamable HTTP endpoint globally:

codex mcp add agentbridge --url http://127.0.0.1:8765/mcp

Start a new Codex task after changing MCP configuration. Ask it to use the tool explicitly, for example:

请调用 ask_chatgpt 工具,独立审查这个方案。不要发送密钥、私有文件全文或个人信息。

Repository layout

agentbridge_server/  MCP server and authenticated WebSocket bridge
extension/           Edge Manifest V3 extension and ChatGPT DOM adapter
.codex/              Project-scoped MCP configuration
scripts/             Smoke tests for MCP and bridge round trips
tests/               Python tests and browser-adapter fixture

relay_server/, local_connector/, and web/ are the earlier local-control prototype retained during the transition. AgentBridge is the active path.

Safety model

  • Bind AgentBridge to 127.0.0.1 in v0.1.
  • Authenticate the extension with a locally generated token.
  • Accept extension WebSockets only from a chrome-extension:// origin.
  • Treat all web-AI output as untrusted advisory text.
  • Never send API keys, passwords, tokens, private file contents, or personal data through ask_chatgpt.
  • Never let web-AI output directly authorize shell commands, file writes, or permission changes.

Tests

.\.venv\Scripts\python.exe -m pytest
.\.venv\Scripts\python.exe -m scripts.smoke_agentbridge_mcp
.\.venv\Scripts\python.exe -m scripts.smoke_agentbridge_roundtrip
node --check .\extension\background.js
node --check .\extension\chatgpt_adapter.js
node --check .\extension\content.js

Roadmap

  1. Stabilize the ChatGPT adapter with diagnostics and streaming.
  2. Add a second web-AI provider through the same adapter contract.
  3. Add a second local-agent adapter.
  4. Introduce bounded planning and review workflows across agents.
  5. Publish a public release after security review, documentation, and license selection.

Security reporting

Do not report credentials, browser sessions, local logs, or security details in public issues. See SECURITY.md.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选