CDN.MN

官方

支援AI代理透過MCP安裝與操作的全球圖片CDN。

你可以用 CDN MN MCP 做什麼?

  • 分析公開網站 — 請助理分析公開網站或來源,並在進行變更前估算可節省的圖片用量。
  • 建立與檢視專案 — 讓助理建立新的 CDN.MN 專案、列出既有專案,並讀取專案設定。
  • 驗證並啟用網域 — 為網站申請來源所有權驗證並啟用正式環境交付,附帶核准選項。
  • 清除快取與讀取分析資料 — 請助理清除指定的物件,並回報用量、節省量與帳務資料。
  • 管理檔案與分享連結 — 列出集合與檔案、上傳檔案、設定集合存取權,以及建立或撤銷分享連結。
  • 設定來源與回復 — 變更來源設定或回復先前的設定,支援試執行與冪等性。

文件

即刻上線

裝置碼註冊、範圍化存取、各範圍的核准閥與即時撤銷、機器可讀的探索機制(auth.md、llms.txt、OpenAPI 與 SKILL.md 工作流程),以及內含 43 項工具的 MCP 伺服器——讀取操作、公開網站圖片分析與節省估算、專案建立、快取清除、網域驗證,以及所有置於敏感範圍之後的正式環境變更操作:主機名稱啟用、加值、來源設定、專案封存,以及套用交付設定。每一項都能為自主代理獨立執行——除了金錢相關操作,它一律等待你的核准——或者在你要求參與流程時開啟核准卡。已發布的 @cdnmn/cli + @cdnmn/sdk 讓代理能直接從專案中偵測、設定、改寫、測試與驗證——並遵循儲存庫的 AGENTS.md。

逐步推出

整合規劃 + 預覽工具組(整合計畫、非正式環境預覽)與匿名免認領註冊路徑已在規劃中——凡出現之處均於下方標示。

面向機器的介面

驗證與探索已於 well-known 位置正式上線——代理今天就能註冊並持有範圍化權杖:

GET  /auth.md                → the human-readable access guide
GET  /llms.txt               → machine index of the agent surfaces
GET  /openapi.json           → OpenAPI 3.1 for the REST endpoints
GET  /.well-known/oauth-protected-resource
GET  /.well-known/oauth-authorization-server
POST /api/agent/register     → device_code + user_code
POST /api/agent/token        → poll → cdnmn_at_… bearer token
POST /api/mcp                → MCP 2025-06-18: tools/list, tools/call

由 CDN.MN 應用程式即時提供

兩種上線途徑:純裝置認領路徑會將代理配對到你的帳號——你開啟認領連結(/agents/claim)並授予範圍;或者,持有你電子郵件的代理可透過 provision_workspace 註冊,立即取得可用的工作區與權杖,無需任何人為步驟,你之後再從電子郵件認養它。在你認養之前,帳務與刪除功能維持鎖定。

代理技能工作流程已上線

安裝工作流程已發布於 /SKILL.md——這是一份逐步操作手冊,涵蓋各項上線工具(驗證 → 啟用 → 加值)。下方封裝的平台參考資料與驗證腳本仍在逐步推出:

cdn-mn-agent/
├── SKILL.md
├── scripts/
│   ├── detect-platform
│   ├── analyze-images
│   ├── create-preview
│   └── verify-installation
├── references/
│   ├── nextjs.md · wordpress.md · nuxt.md
│   ├── static-sites.md · nginx.md
│   └── rollback.md
└── assets/
    ├── config-templates/
    └── report-template.md

規劃中的封裝配置——SKILL.md 工作流程今日已上線。

精確範圍,而非萬能金鑰

代理只請求它確切需要的能力。沒有像 api.write 這種通用範圍。

site:analyze分析公開網站或來源

project:read檢視 CDN.MN 專案

project:create建立新專案

origin:read檢視來源設定

origin:write設定或變更來源

integration:plan產生整合計畫

integration:preview建立非正式環境預覽

integration:apply將已核准的變更套用至正式環境

domain:read檢視網域狀態

domain:verify對網站執行來源所有權驗證

domain:activate啟用正式環境交付

analytics:read讀取用量與節省資料

cache:purge清除選定的物件

billing:read讀取方案與用量

billing:write變更方案或授權支出

project:delete刪除專案

files:read列出檔案集合與檔案

files:write建立集合與上傳檔案

files:publish將集合設為公開或私人

precheck:read執行 CDN.MN Domains 預先檢查並讀取存取狀態

precheck:download列出並下載已核准的 Domains 資料集

precheck:write申請 Domains 存取權或資料集下載

registry:read讀取 registry 饋送與執行紀錄

registry:write推送即時更新、上傳區域檔案(每次上傳都需要你的核准)、變更饋送設定並請求擷取

紅色的範圍(origin:write、integration:apply、domain:activate、billing:write、project:delete、files:publish、precheck:write、registry:write)預設絕不授予。當你確實授予其中一項時,代理會在其範圍內自行行動——除非你在連線時勾選「每次都需要我的核准」,以保留每次使用的核准卡。金錢(billing:write)一律需要該核准——其閥門已鎖定且無法選擇退出。

代理如何進入

遵循 auth.md 模型——並提供實用的備援方案,而非「適用於所有代理」的宣稱。

01 · 預先配置工作區

已上線

無需任何人為步驟即可開始

持有你電子郵件的代理透過 provision_workspace 註冊,立即取得可用的工作區 + 範圍化權杖——它能分析、建立專案、驗證網域,並以一次性 $5 起始額度提供服務,開始時無需核准。你之後再從電子郵件認養該工作區;在你認養之前,帳務、刪除與自訂來源維持鎖定。

owner_email + provision_workspace → 首次輪詢即取得權杖 · 透過電子郵件認養 · 未認養者約 72 小時後清除

02 · 使用者認領

已上線

你確認認領碼

代理註冊裝置碼並向你顯示認領連結。你登入 CDN.MN,確切看到它請求的範圍,然後核准——代理接著輪詢並取得範圍化持有者權杖。當你偏好事先授予存取權時,這是一條可行的途徑。

在 CDN.MN 擁有的頁面上進行裝置碼儀式 · 權杖以雜湊形式儲存

03 · 匿名預覽

規劃中

無使用者身分

在任何真人涉入之前,代理可請求的唯讀預覽範圍——分析公開網站,但不觸碰任何客戶擁有的內容。免認領路徑及其計畫/預覽工具仍在逐步推出。

site:analyze · analytics:read · billing:read(計畫/預覽範圍保留至其工具推出為止)

04 · 代理驗證

規劃中

供應商證明身分

在代理供應商支援身分斷言的情況下,代理將在你同意後請求特定受眾的斷言;CDN.MN 驗證後回傳範圍化憑證。規劃中,且絕不會是唯一途徑。

隨供應商採用而到來——上述途徑始終可用

高階、冪等的 MCP 工具 43 項工具已上線

今日有 43 項工具可在 /api/mcp 呼叫——讀取操作、公開網站圖片分析、專案建立、網域驗證、快取清除,以及所有敏感的正式環境變更操作。敏感工具會為自主代理獨立執行——除了加值,它一律等待你的核准——或者在你要求參與流程時開啟核准卡;整合規劃 + 預覽工具仍在逐步推出,且代理絕不會盲目組裝低階設定:

list_projects

get_analytics

get_billing

get_domains

get_approval_status

activate_hostname

verify_domain

add_funds

change_plan

configure_origin

delete_project

apply_integration

purge_urls

create_project

rollback_configuration

analyze_website

estimate_image_savings

detect_integration_strategy

list_collections

list_files

create_collection

upload_file

set_collection_access

get_share_access_log

list_share_links

get_share_agreement

revoke_share_link

create_share_link

publish_share_agreement

invite_to_share_link

revoke_share_invite

check_domains

check_label

get_domains_access

list_domain_downloads

request_domains_access

request_domain_download

list_registry_feeds

push_registry_updates

fetch_registry_feed

update_registry_feed

create_domain_zone_upload

get_domains_stats

create_preview

generate_integration_plan

verify_image_delivery

綠色 = 現在可呼叫 · 灰色 = 逐步推出中

每項變更工具都支援

設計上讓你不易意外建立重複項目、路由到錯誤的來源,或產生無上限的帳單。今日已在每項敏感工具上線(此處以 activate_hostname 為例):dry_run 與 idempotency_key 會被接受並繫結至該動作,且以相同金鑰重複呼叫絕不會執行兩次。

accepted on every sensitive tool (example: activate_hostname):
  site_id: "s_..."
  dry_run: true
  idempotency_key: "..."

→ returns now, when autonomous:
  status: executed · execution.hostname
  (the action ran inline)

→ returns now, when you require approval:
  approval_required · approval_id
  poll_with: get_approval_status

→ every sensitive action returns a self-describing contract:
  proposed_changes · warnings
  rollback_plan · verification_steps
  (on the tool response, on get_approval_status,
   and on the owner's approval card)

可複製的代理提示詞

這些內容出現在首頁、程式碼儲存庫、代理技能與框架指南中。

Add CDN.MN to this website.

Keep the current origin and existing application behavior. Analyze the
image pipeline, estimate potential savings, detect the safest
integration strategy, create the CDN.MN project, configure responsive
image delivery and modern formats, run the project tests, and ask me
before changing DNS, billing, or production deployment.

專案可選的 AGENTS.md 片段

AGENTS.md 是為編碼代理提供持續性專案指引的新興慣例。若你的代理遵循它,請加入此區段,讓每一項 CDN.MN 變更都遵循你專案的規則——你的直接指示永遠優先。

## CDN.MN image delivery

- Read the current CDN.MN project configuration before changing image URLs.
- Keep the existing image origin as the fallback unless explicitly instructed.
- Never commit CDN.MN access tokens, claim tokens, or API credentials.
- Create integration changes in a separate branch.
- Run the project build, tests, and broken-image verification before completion.
- Use a CDN.MN preview before requesting production activation.
- Do not modify DNS, billing, or production deployment without explicit approval.
- Report all changed files, configuration changes, verification results,
  and rollback steps.