
Herald
io.github.btouchard由 GitHub 帳號 btouchard 發布v1.0.0更新於 Oct 25, 2026
Stop copy-pasting between Claude Chat and Claude Code.
概覽
Herald 是自託管的 MCP 橋接服務,讓 Claude Chat 把編碼任務派送到本機的 Claude Code,並遠端查看結果。
- 可以做什麼
- 啟動、查看、取消和列出 Claude Code 任務,支援優先順序、逾時、工作階段續接和 Git 分支選項,並取回完整結果或 JSON 輸出。查看任務的 Git 差異,列出已設定的專案及其 Git 狀態。在專案範圍內讀取檔案,並具備路徑穿越防護。把 Claude Code 工作階段推送到 Herald,以便在其他裝置上監控和繼續。查看日誌與活動紀錄,任務更新會以通知形式推送到對話中。
- 適用情境
- 適合想透過 Claude Chat 在手機或瀏覽器上啟動並追蹤本機 Claude Code 工作、避免在兩者之間複製貼上的情境,也適合希望每個任務在獨立 Git 分支上隔離執行的情況。
- 執行需求
- 需要一個可透過 HTTPS 存取的自託管 Herald 實例,可用反向代理或內建 ngrok 通道(需 ngrok 驗證權杖,可透過 HERALD_NGROK_AUTHTOKEN 提供)。主機需安裝 Claude Code CLI,並準備列出專案和允許工具的 YAML 設定;Claude Chat 端透過 OAuth 2.1 驗證,用戶端密鑰會自動產生,可用 HERALD_CLIENT_SECRET 覆寫。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Herald,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.btouchard%2Fherald/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"herald": {
"type": "http",
"url": "https://your-herald-instance.example.com/mcp"
}
}
}README
Herald
Code from your phone. Seriously.
The self-hosted MCP bridge between Claude Chat and Claude Code.
[Go 1.26+] [AGPL-3.0 License] [GitHub Stars]
Documentation ·
Quick Start ·
How It Works ·
Features ·
Security ·
Roadmap
🇫🇷 Version française
[圖片]
You're on the couch. On your phone. You open Claude Chat and type:
"Refactor the auth middleware in my-api to use JWT instead of session cookies. Run the tests."
Four minutes later, it's done. Branch created, code refactored, tests passing, changes committed. Your workstation did all the work. You never opened your laptop.
That's Herald.
The Problem
Claude Chat and Claude Code are two brilliant tools that live in completely separate worlds.
You've been copy-pasting between them. Or worse — you've been waiting until you're back at your desk. That's over.
The Solution
Herald is a self-hosted MCP server that bridges Claude Chat to Claude Code using Anthropic's official Custom Connectors protocol. One Go binary. Zero hacks.
The bridge is bidirectional. Claude Chat dispatches tasks to Claude Code, and Claude Code can push session context back to Herald for remote monitoring and continuation from another device.
Your code never leaves your machine. Herald just orchestrates.
How It Works
Three tools. That's the core loop. Start, check, get results — all from wherever you are.
Reverse flow: Claude Code → Herald
Working in your terminal and want to continue from your phone? Claude Code pushes its session to Herald:
Features
Core
- Native MCP bridge — Uses Anthropic's official Custom Connectors protocol. Not a hack, not a wrapper, not a proxy.
- Async task execution — Start tasks, check progress, get results. Claude Code runs in the background while you do other things.
- Git branch isolation — Each task runs on its own branch. Your main branch stays untouched.
- Session resumption — Multi-turn Claude Code conversations. Pick up where you left off.
- Bidirectional bridge — Claude Code can push session context to Herald via
herald_pushfor remote monitoring and continuation from another device.
Multi-Project
- Multiple projects — Configure as many projects as you need, each with its own settings.
- Per-project tool restrictions — Control exactly which tools Claude Code can use. Full sandboxing per project.
Operations
- MCP push notifications — Herald pushes task updates directly to Claude Chat via MCP server notifications. No polling needed.
- SQLite persistence — Tasks survive server restarts. Full history, fully searchable.
Engineering
- Single binary — One Go executable, ~15MB. No Docker, no runtime, no node_modules.
- Zero CGO — Pure Go. Cross-compiles to Linux, macOS, Windows, ARM.
- 6 dependencies — chi, mcp-go, modernc/sqlite, uuid, yaml, testify. That's the entire dependency tree.
Quick Start
Prerequisites: Claude Code CLI installed, HTTPS via ngrok (built-in) or a domain with reverse proxy.
1. Install
Or build from source (requires Go 1.26+)
2. Configure
3. Run
Edit ~/.config/herald/herald.yaml with your domain and projects:
Then connect from Claude Chat:
- Claude Chat → Settings → Custom Connectors
- Add connector:
https://herald.yourdomain.com/mcp - Authenticate via OAuth
- Done — Claude Chat now has 10 new tools to control your workstation
Quick Start with ngrok (No Reverse Proxy Needed)
Don't have a domain or reverse proxy? Use ngrok to expose Herald instantly over HTTPS:
1. Get ngrok auth token
Sign up at ngrok.com (free plan works) and grab your auth token from the dashboard.
2. Enable tunnel in config
Edit ~/.config/herald/herald.yaml:
3. Run Herald
Connect from Claude Chat using the ngrok URL shown in the banner. That's it — no Traefik, Caddy, or DNS setup required.
Note: The ngrok tunnel is optional. If you already have a reverse proxy (Traefik/Caddy), leave
tunnel.enabled: falseand use your domain as usual.
Full configuration reference
MCP Tools
Herald exposes 10 tools that Claude Chat discovers automatically via the MCP protocol:
Security
Herald exposes Claude Code to the network. We take that seriously.
Architecture
Design principles: single binary (everything compiled into one Go executable), async-first (each task is a goroutine), stateless MCP with stateful backend, fail-safe (Herald crash doesn't kill running Claude Code processes).
Tech stack
6 direct dependencies. No ORM. No logging framework. No build toolchain.
Deployment
Herald runs best as a native binary (direct access to Claude Code and your files). Docker is available as an option.
Docker Compose with Traefik
Roadmap
Have an idea? Open an issue. We build what users need.
Contributing
Herald is in early alpha — the best time to shape a project.
Commit messages follow Conventional Commits (feat:, fix:, refactor:, docs:).
Whether it's a bug fix, a new notification backend, or a documentation improvement — all contributions are welcome.
Why Herald?
Herald uses the same protocol Anthropic built for their own integrations. No reverse engineering, no unofficial APIs, no hacks that break on the next update.
AGPL-3.0 License — Built by Benjamin Touchard
If Herald saves you time, leave a star. It helps others find the project.
來源:README.md,提交 5e9982e
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分