SOVR exposes 5 tools via the Model Context Protocol. Any MCP-compatible agent (Claude, GPT, custom) can call SOVR for policy checks, approvals, and audit — in 3 lines of config.
Send an MCP initialize request, then tools/list to see all 5 tools.
# Step 1: Initialize MCP session
curl -X POST https://YOUR_DOMAIN/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-SOVR-API-KEY: sovr_your_api_key" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"my-agent","version":"1.0"}}}'
# Step 2: List available tools
curl -X POST https://YOUR_DOMAIN/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-SOVR-API-KEY: sovr_your_api_key" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'Use tools/call with the tool name and arguments. See the tool reference below for all 5 tools.
Add this to your claude_desktop_config.json to give Claude access to SOVR tools. Uses mcp-remote for HTTP transport.
{
"mcpServers": {
"sovr": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://YOUR_DOMAIN/api/mcp"],
"env": {
"HEADERS": "X-SOVR-API-KEY:sovr_your_api_key"
}
}
}
}sovr_gate_checkCheck if a role is allowed to perform an action on a resource. Returns allow/deny with audit trail.
| Name | Type | Required | Description |
|---|---|---|---|
| role | string | required | The role to check (e.g., admin, operator, auditor, user) |
| resource | string | required | The resource path (e.g., payment/stripe, database/users) |
| action | read | write | delete | execute | export | required | The action to perform |
{
"allowed": true,
"reason": "RBAC policy: admin can write payment/stripe",
"irreversible": true,
"requiresApproval": true
}curl -X POST https://YOUR_DOMAIN/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-SOVR-API-KEY: sovr_your_api_key" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sovr_gate_check",
"arguments": {
"role": "operator",
"resource": "payment/stripe",
"action": "execute"
}
}
}'Streamable HTTP/api/mcpapplication/jsonapplication/json, text/event-streamX-SOVR-API-KEYAuthorization: Bearer sovr_...sovr_