Verlon AI MCP
Inspect and manage Verlon AI gates, logs, recommendations, and experiments from any MCP client.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
@verlon-ai/mcpclaude mcp add verlon-ai-mcp -e 'VERLON_API_KEY=<your verlon_api_key>' -e 'VERLON_BASE_URL=<VERLON_BASE_URL>' -- npx -y @verlon-ai/mcp@0.4.1
{
"mcpServers": {
"verlon-ai-mcp": {
"command": "npx",
"args": [
"-y",
"@verlon-ai/mcp@0.4.1"
],
"env": {
"VERLON_API_KEY": "<your verlon_api_key>",
"VERLON_BASE_URL": "<VERLON_BASE_URL>"
}
}
}
}
Variables d'environnement
VERLON_API_KEYobligatoire secret Verlon API key (sk-vrln-...). Generate at https://verlon.ai/dashboard/settings/keys.VERLON_BASE_URLOverride the Verlon API base URL. Defaults to https://api.verlon.ai.
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
@verlon-ai/mcp
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:
{
"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):
{
"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.
| Tool | Inputs | What it returns |
|---|---|---|
list_gates | none | Every gate in the account — id, name, description, model, taskType, taskSubtype, createdAt |
get_gate | gateId (UUID) | Full gate config — model, fallback chain, task type, spending limits, sub-gates, orchestration |
list_logs | gate?, since? (ISO 8601), success?, limit? (1-100, default 20) | Recent request logs — timestamp, gate, model, cost, latency, success/failure |
get_recommendations | gateId (UUID) | Cortex intelligence report — themes, drift detection, optimization recommendations. { report: null } when no run has been produced yet |
list_experiments | gateId?, status?, projectId? | Experiments (shadow + split) — id, name, status, test type, variants, goal metric, configuration |
list_models | provider? (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)
| Tool | Inputs | What it does |
|---|---|---|
switch_model | model (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 var | Required | Default | Notes |
|---|---|---|---|
VERLON_API_KEY | Yes | — | Your Verlon API key (sk-vrln-...). |
VERLON_BASE_URL | No | https://api.verlon.ai | Override for self-hosted Verlon. |
CLI flags
| Flag | Purpose |
|---|---|
--enable-writes | Register write-capable tools (switch_model today). Default is read-only — a misaligned agent can't accidentally destroy resources. |
--help, -h | Print 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
npm install
npm test # vitest
npm 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:
| File | Field |
|---|---|
package.json | version |
server.json | version AND packages[0].version |
src/server.ts | VERLON_MCP_VERSION constant |
Then:
# 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)
# 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
# All three versions match?
npm view @verlon-ai/mcp version
jq -r .packages[0].version server.json
grep 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 artifact
VERLON_API_KEY=sk-vrln-... npx @modelcontextprotocol/inspector npx -y @verlon-ai/mcp
License
MIT — see LICENSE.
Questions fréquentes
Qu'est-ce que Verlon AI MCP ?
Inspect and manage Verlon AI gates, logs, recommendations, and experiments from any MCP client.
Comment installer Verlon AI MCP ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add verlon-ai-mcp -e 'VERLON_API_KEY=<your verlon_api_key>' -e 'VERLON_BASE_URL=<VERLON_BASE_URL>' -- npx -y @verlon-ai/mcp@0.4.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Verlon AI MCP ?
Oui. Il attend VERLON_API_KEY, à renseigner dans sa configuration.
Verlon AI MCP est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Verlon AI MCP ?
Il est publié par verlon-ai. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.