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 分