Verlon AI MCP

ai.verlon由 verlon.ai 發布v0.4.1更新於 Oct 24, 2026

Inspect and manage Verlon AI gates, logs, recommendations, and experiments from any MCP client.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

Verlon AI MCP 讓助理檢視你的 Verlon AI 閘道、請求日誌、建議、實驗與模型,並可選擇切換閘道所用的模型。

可以做什麼
依閘道 ID 或整個帳戶列出並讀取閘道,包含完整設定、備援鏈、支出上限與子閘道。依閘道、時間、成功狀態與數量查詢近期請求日誌,含成本與延遲。取得 Cortex 智慧報告,包含主題、漂移偵測與最佳化建議。列出影子與分流實驗及其狀態、變體與目標指標。依供應商列出可用聊天模型,含即時價格與能力評分。啟用寫入後,切換閘道路由的模型。
適用情境
當你使用 Verlon AI,並希望編碼助理不必離開編輯器就能查看閘道設定、近期請求成本與失敗情況或最佳化建議時適用。若也希望助理依需求變更閘道的路由模型,也可以加入。
執行需求
透過 stdio 在本機執行,由 MCP 用戶端以 npx 啟動,因此需要 Node.js 以及連線 Verlon API 的網路。必須在 VERLON_API_KEY 環境變數中提供 Verlon API 金鑰。VERLON_BASE_URL 為選用,用於自架 Verlon 時覆寫 API 基礎位址。寫入工具需以 --enable-writes 參數啟動伺服器。
安裝前請注意
伺服器持有可存取你帳戶的 Verlon API 金鑰(VERLON_API_KEY),請勿放入共用設定。預設為唯讀,但啟用 --enable-writes 後,switch_model 工具會變更閘道路由的模型,並在執行中工作階段的下一個回合生效。README 說明後續還計畫在同一開關後提供更多寫入工具。當請求看似相關時,助理可能自行呼叫這些工具。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Verlon AI MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@verlon-ai/mcp

[npm version] [license] [CI]

Model Context Protocol server for Verlon AI. Exposes your Verlon resources (gates, logs, recommendations, experiments) as MCP tools so coding agents — Claude Code, Cursor, Cline, any MCP-compatible client — can inspect and manage your AI infrastructure natively.

Status: 0.4.0 — listed in the MCP Registry as ai.verlon/mcp. Ships 6 read-only tools (list_gates, get_gate, list_logs, get_recommendations, list_experiments, list_models) plus one write tool, switch_model, registered only with --enable-writes. The broader write surface (create_gate, update_gate, run_chat, start_experiment) lands in a future release behind the same flag.

Install

You don't install it directly. Your MCP client (Claude Code, Cursor, etc.) spawns it as a subprocess via npx. Add the snippet below to your client's MCP config.

Claude Code

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent on your OS:

json
{  "mcpServers": {    "verlon": {      "command": "npx",      "args": ["-y", "@verlon-ai/mcp"],      "env": {        "VERLON_API_KEY": "sk-vrln-..."      }    }  }}

Then restart Claude Code. The verlon server should appear in the tools list, and Claude can call verlon:list_gates against your account.

Cursor

Add to your Cursor MCP config (Settings → Features → MCP Servers):

json
{  "mcpServers": {    "verlon": {      "command": "npx",      "args": ["-y", "@verlon-ai/mcp"],      "env": {        "VERLON_API_KEY": "sk-vrln-..."      }    }  }}

Any other MCP-compatible client

The server speaks MCP over stdio. Spawn npx -y @verlon-ai/mcp with VERLON_API_KEY in the subprocess environment.

Tools

The default tool set is read-only — see Security note for the rationale. Write tools register only when the server starts with --enable-writes.

ToolInputsWhat it returns
list_gatesnoneEvery gate in the account — id, name, description, model, taskType, taskSubtype, createdAt
get_gategateId (UUID)Full gate config — model, fallback chain, task type, spending limits, sub-gates, orchestration
list_logsgate?, since? (ISO 8601), success?, limit? (1-100, default 20)Recent request logs — timestamp, gate, model, cost, latency, success/failure
get_recommendationsgateId (UUID)Cortex intelligence report — themes, drift detection, optimization recommendations. { report: null } when no run has been produced yet
list_experimentsgateId?, status?, projectId?Experiments (shadow + split) — id, name, status, test type, variants, goal metric, configuration
list_modelsprovider? (openai, anthropic, google, mistral, …)Chat models a gate can route to, with live pricing (USD per 1M tokens) and capability scores

Write tools (--enable-writes only)

ToolInputsWhat it does
switch_modelmodel (id from list_models), gateId?Switches which model a coding gate routes to. Takes effect on the next turn of any running session, no restart. With gateId omitted, targets the account's Claude Code connector gate. Idempotent; the change is one reversible field.

Configuration

Env varRequiredDefaultNotes
VERLON_API_KEYYes—Your Verlon API key (sk-vrln-...).
VERLON_BASE_URLNohttps://api.verlon.aiOverride for self-hosted Verlon.

CLI flags

FlagPurpose
--enable-writesRegister write-capable tools (switch_model today). Default is read-only — a misaligned agent can't accidentally destroy resources.
--help, -hPrint usage.

Security note

Read-only by default is a deliberate choice. The MCP client (Claude Code, Cursor, etc.) sees this server's tools and may invoke them autonomously when a user's request makes them seem relevant. A read-only default means even a misaligned agent can only inspect your account, not modify it. Opt in to write tools (--enable-writes) only after you understand the implications. The only write tool today is switch_model, deliberately the narrowest possible first write: one reversible field on one gate. Creating, updating, or deleting resources is not yet exposed.

Development

bash
npm installnpm test          # vitestnpm run build     # tsc → dist/

Publishing (maintainers)

The package is dual-published: to npm as @verlon-ai/mcp (automated, with provenance), and to the MCP Registry as ai.verlon/mcp (manual). The registry validates that the npm version exists before accepting a publish, so npm always goes first.

Per-release flow

Bump versions in lockstep across three files — CI fails on drift:

FileField
package.jsonversion
server.jsonversion AND packages[0].version
src/server.tsVERLON_MCP_VERSION constant

Then:

bash
# 1. Merge the bump to main (CI enforces the lockstep), then tag:git tag v0.4.1 && git push origin v0.4.1# The publish workflow runs `npm publish --provenance` automatically.
# Wait ~30s for npm CDN; verify:npm view @verlon-ai/mcp version   # should print the new version
# 2. MCP Registry publish (manual — needs mcp-publisher + DNS-verified ai.verlon namespace)npm run publish:mcp

One-time setup (registry publishing)

bash
# Install the MCP Registry publisher (NOT npm — it's a prebuilt binary)brew install mcp-publisher
# DNS-verify the verlon.ai domain (required to publish under the ai.verlon namespace)mcp-publisher login --help   # follow the DNS verification flow it prints# Add the TXT record on verlon.ai; verify with `dig TXT verlon.ai +short`

Verification

bash
# All three versions match?npm view @verlon-ai/mcp versionjq -r .packages[0].version server.jsongrep VERLON_MCP_VERSION src/server.ts
# Registry listing live?curl 'https://registry.modelcontextprotocol.io/v0/servers?search=verlon' | jq
# End-to-end smoke against the published artifactVERLON_API_KEY=sk-vrln-... npx @modelcontextprotocol/inspector npx -y @verlon-ai/mcp

License

MIT — see LICENSE.

來源:README.md,提交 15aaf0a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.4.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分