
Custom Domain API
io.github.siretov0.11.1更新於 Oct 10, 2026
Register a SaaS app's customer hostnames, show their DNS records and checks, recheck or delete them.
概覽
讓助理透過 Custom Domain API 註冊、查看、重新檢查並刪除客戶的自訂主機名稱。
- 功能
- 包裝 Custom Domain API,讓助理能為某個工作區註冊客戶的主機名稱,並取回要交付的 DNS 記錄。它可以取得單一網域的狀態、記錄與四項檢查結果,依工作區或狀態分頁列出網域,並把 DNS 記錄整理成附逐條說明的文字。它也支援在修正 DNS 後重新檢查網域、刪除主機名稱,以及列出不含密鑰的 webhook 訂閱。
- 適用情境
- 適用於 SaaS 應用讓客戶把自己的主機名稱指向該服務的情境:讓助理完成主機名稱上線、向客戶說明 DNS 記錄,或排查網域為何尚未生效。它偏向客服與上線流程,而非一般 DNS 管理。
- 執行需求
- 以 stdio 在本機執行,透過 uvx 或 pip 安裝,因此需要 Python 與該套件。必須設定兩個環境變數:CUSTOM_DOMAIN_API_URL(https 邊緣位址)與 CUSTOM_DOMAIN_API_KEY(以 cd_ 開頭的應用程式 API 金鑰)。僅支援桌面版 MCP 用戶端,沒有網頁版。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Custom Domain API,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
custom-domain-mcp
An MCP server for the Custom Domain API. It lets an AI assistant (Claude, Cursor, any MCP client) register your customers' hostnames, show them their DNS records, check why a domain isn't live yet, and recheck or delete it. It acts as one application, with that application's own API key.
Setup
It reads two settings from the environment:
Claude Code:
Claude Desktop, Cursor and other clients (mcpServers in their config):
Tools
What it can't do
- No operator actions. It never holds an operator token, only the application's key, so it can do exactly what the application's backend can.
- No webhook creation or rotation. Their responses carry the signing secret, which would end up in the assistant's conversation. Create webhooks through the API or the portal.
Customer data is data, not instructions. Hostnames, workspace
references, metadata and check messages come from your application's
customers and from DNS. The server tells the assistant to report them,
never to follow them, and to call delete_domain only when you explicitly
asked for that domain to be deleted, repeating its hostname back to you
first. Your MCP client's own confirmation for destructive tools adds a
second check.
The server's instructions also tell the assistant the one rule integration
code must follow: select the tenant from the verified
X-Custom-Domain-Assertion, never from Host
(verifying requests).
來源:mcp-server/README.md,提交 0434ba1
工具
0版本歷史
1- v0.11.1最新Oct 10, 2026


