HOWILLMAKEIT

Make ChatGPT Agent — Development skill for Claude Code

Development community

让 ChatGPT 通过 MCP 读写本机代码仓库(devspace + ngrok)|Let ChatGPT read and write your local code repos via MCP, using devspace and an ngrok tunnel.

How to install Make ChatGPT Agent

This entry records only its repository, not the path inside it, so there is no exact command to give. Open HOWILLMAKEIT/make-chatgpt-agent and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Make ChatGPT Agent does

让 ChatGPT 通过 MCP 读写本机代码仓库(devspace + ngrok)|Let ChatGPT read and write your local code repos via MCP, using devspace and an ngrok tunnel.

Alternatives in Development

  • Obsidian MCP Server — Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP 686 ★
  • MCP Edit — tilth_write replaces the host Edit and Write tools 349 ★
  • Chatgpt2localbridge — Codex/ChatGPT plugin app and OAuth MCP connector for approved local workspaces 105 ★

README

make-chatgpt-agent

[![devspace](https://img.shields.io/badge/devspace-1.0.8-blue)](https://github.com/Waishnav/devspace)  [![ngrok](https://img.shields.io/badge/ngrok-free%20tier-1F1E37?logo=ngrok&logoColor=white)](https://ngrok.com/)  [![MCP](https://img.shields.io/badge/MCP-OAuth-orange)](https://modelcontextprotocol.io/)  [![Node](https://img.shields.io/badge/Node-%E2%89%A5%2020.12-339933?logo=nodedotjs&logoColor=white)](https://nodejs.org/)  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)  [![GitHub stars](https://img.shields.io/github/stars/HOWILLMAKEIT/make-chatgpt-agent?style=social)](https://github.com/HOWILLMAKEIT/make-chatgpt-agent)

**让 ChatGPT 网页端通过 MCP 读写本机的代码仓库**

[工作原理](#工作原理) | [前置条件](#前置条件) | [配置步骤](#配置步骤) | [注册命令](#注册-shell-命令可选) | [使用](#使用) | [踩过的坑](#踩过的坑)

方案由 [devspace](https://github.com/Waishnav/devspace)(npm 包 `@waishnav/devspace`)和 ngrok 隧道组成,不含自研服务端。

**让 agent 帮你配置**:把本仓库交给你的 agent(Claude Code、Codex 等),对它说"读 AGENTS.md,帮我配置"即可。AGENTS.md 写明了它能做什么、哪些步骤必须由你亲自完成(ngrok 令牌、ChatGPT 授权等)以及常见的坑。

工作原理

**MCP 服务器就是本机上的 devspace**,监听 `127.0.0.1:7676`,入口是 `/mcp`(Streamable HTTP,自带 OAuth)。ChatGPT 是 MCP 客户端。

问题在于:发请求的不是你的浏览器,而是 **OpenAI 的云端服务器**,它访问不到你电脑上的 `127.0.0.1`。ngrok 解决这件事:

  • 本机的 ngrok 客户端主动向外连到 ngrok 云端,建立一条长连接隧道。你的电脑不需要开放端口,也不需要公网 IP。
  • ChatGPT 访问你的固定域名时,请求先到 ngrok 云端,再沿这条已建立的隧道反向送回本机,转给 devspace。响应原路返回。
flowchart LR
    GPT["☁️ ChatGPT 服务端
MCP 客户端"] EDGE["☁️ ngrok 云端
固定域名"] AGENT["💻 ngrok 客户端
(本机)"] MCP["💻 devspace · MCP 服务器
127.0.0.1:7676/mcp
读写文件 / 执行命令"] AGENT == "① 启动时主动外连,建立隧道" ==> EDGE GPT -- "② HTTPS 请求" --> EDGE EDGE -. "③ 沿隧道反向转发" .-> AGENT AGENT --> MCP style GPT fill:#e0f2fe,stroke:#0284c7,stroke-width:2px,color:#0f172a style EDGE fill:#fef3c7,stroke:#f59e0b,stroke-width:2px,color:#0f172a style AGENT f