Claude Code Integration
VoiceGateway includes an MCP (Model Context Protocol) server that lets you manage providers, models, projects, and monitor costs directly from Claude Code using natural language.Setup
1. Install the MCP Extra
2. Configure Claude Code
Add VoiceGateway to your Claude Code MCP settings (~/.claude/settings.json or your project’s .mcp.json):
3. Verify the Connection
Start Claude Code and ask it to check VoiceGateway status. The MCP server exposes 17 tools across four categories: providers, models, projects, and observability.Prompt Examples
1. Check System Status
Prompt:list_providers tool and display all configured providers, their types (cloud vs. local), and whether they have valid credentials (API keys are shown masked, e.g., sk-p...z789).
2. Add a New Provider
Prompt:- Call
create_providerwithprovider_id="groq",provider_type="groq", and the API key - Call
register_modelwithmodel_id="groq/llama-3.3-70b-versatile",modality="llm",provider_id="groq" - The API key is encrypted with Fernet before storage
- Both actions are recorded in the audit log
3. Create a Project with Budget
Prompt:create_project with:
project_id:"customer-support"name:"Customer Support"daily_budget:25.00budget_action:"throttle"tags:["production", "support"]
4. Monitor Costs
Prompt:get_costs tool with period="today" and present the results as a structured breakdown. It will also call get_cost_by_project to show per-project spending and identify the most expensive model.
5. View Recent Requests and Latency
Prompt:get_recent_requests with limit=20 and analyze the results, highlighting:
- Requests with
status: "error" - Requests where
ttfb_ms > 500 - Any fallback events (
fallback_fromis not null)
6. Audit Configuration Changes
Prompt:get_audit_log and display the history of changes, including:
- What was changed (provider, model, or project)
- What action was taken (create, update, delete)
- The source of the change (api, mcp, dashboard)
- What specifically changed (from the
changes_jsonfield)
7. Delete Unused Resources
Prompt:- Call
list_modelsto get all registered models - Call
get_costswithperiod="month"to check usage - Identify models with zero requests
- Call
delete_modelfor each unused model (after confirming with you)
Available MCP Tools
Provider Tools
| Tool | Description |
|---|---|
list_providers | List all configured providers with masked API keys |
get_provider | Get details for a specific provider |
create_provider | Add a new provider with encrypted API key |
delete_provider | Remove a provider |
Model Tools
| Tool | Description |
|---|---|
list_models | List all registered models across modalities |
get_model | Get details for a specific model |
register_model | Register a new model for a provider |
delete_model | Remove a model registration |
Project Tools
| Tool | Description |
|---|---|
list_projects | List all projects with budget status |
get_project | Get details and today’s stats for a project |
create_project | Create a new project with budget settings |
delete_project | Remove a project |
Observability Tools
| Tool | Description |
|---|---|
get_costs | Get cost summary for a time period |
get_cost_by_project | Get costs broken down by project |
get_recent_requests | Get recent request logs |
get_latency_stats | Get latency statistics per model |
get_audit_log | View configuration change history |
Authentication
The MCP server supports API key authentication. Set theVOICEGW_MCP_API_KEY environment variable to require authentication for all MCP tool calls: