Documentation Index
Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
Use this file to discover all available pages before exploring further.
vers mcp
Run the MCP (Model Context Protocol) server to expose vers tools to AI agents.Usage
Subcommands
serve
Start the MCP server so agent clients can call vers operations as tools.Options
| Option | Default | Description |
|---|---|---|
--transport | ”stdio” | Transport type: stdio or http |
--addr | ”:3920” | Listen address for HTTP transport |
--allow-insecure-set-key | false | Allow setting API key via tool (local dev only) |
Examples
Start with stdio transport (default)
Start with HTTP transport
Use custom port
Local development mode
How it works
The MCP server exposes vers CLI operations as tools that AI agents can call:- Server startup: Initializes the MCP server with the specified transport
- Tool registration: Exposes vers commands as callable tools
- Request handling: Processes tool calls from connected agents
- Response formatting: Returns results in MCP-compatible format
Transport types
stdio (default)
- Communicates via standard input/output
- Best for integration with AI agents that spawn the server as a subprocess
- No network exposure
http
- Listens on a network port for HTTP requests
- Useful for remote agents or testing
- Requires specifying a listen address
Use cases
AI agent integration
Configure your AI agent to use vers as an MCP tool provider:Testing MCP tools
Prerequisites
- Authenticated with Vers platform (unless using
--allow-insecure-set-key) - For HTTP transport: Available network port
See Also
- vers login - Authenticate before using MCP server