Skip to content

MCP server ​

@kolwire/mcp-server exposes Kolwire to AI assistants (Claude, ChatGPT, Cursor, your own agents) over the Model Context Protocol. Ask an assistant to "buy a 415 number and point it at our support agent", "call +1… with the appointment agent", or "summarize yesterday's calls that mention cancellation".

Install ​

bash
claude mcp add kolwire -e KOLWIRE_API_KEY=vi_test_… -- npx -y @kolwire/mcp-server
json
{
  "mcpServers": {
    "kolwire": {
      "command": "npx",
      "args": ["-y", "@kolwire/mcp-server"],
      "env": { "KOLWIRE_API_KEY": "vi_test_…" }
    }
  }
}
bash
KOLWIRE_API_KEY=vi_test_… npx -y @kolwire/mcp-server --http --port 3333
# MCP endpoint: POST http://127.0.0.1:3333/mcp  (stateless)

Start with a test key (vi_test_…): calls and messages are simulated and nothing is billed.

Transports ​

  • stdio (default) — for local assistants that launch the server as a subprocess.
  • Streamable HTTP (--http --port <n> [--host 127.0.0.1] [--path /mcp]) — stateless: every POST /mcp is handled independently (JSON responses, no session state), so it scales horizontally. GET /healthz for probes.
    • A request's Authorization: Bearer vi_… header overrides the environment key, so one hosted server can serve many workspaces.
    • Binding to a non-local interface while holding KOLWIRE_API_KEY requires KOLWIRE_MCP_HTTP_TOKEN; clients then send Authorization: Bearer <token>. Without it the server refuses to start. On local binds the Host header is checked (DNS-rebinding protection).

Configuration ​

VariableDefaultEffect
KOLWIRE_API_KEY—API key (required for stdio).
KOLWIRE_BASE_URLhttps://api.kolwire.com/v1API base URL.
KOLWIRE_MCP_READ_ONLYfalsetrue exposes only read tools (no calls, messages, purchases or config changes). Same as --read-only.
KOLWIRE_MCP_TOOLSallComma-separated allowlist of tool names.
KOLWIRE_MCP_HTTP_TOKEN—Bearer token guarding the server's own key over HTTP.

Tools ​

ToolWhat it doesRead-only
search_available_numbersFind purchasable numbers by country, area code, digits✓
buy_numberBuy a number and route it to an agent, flow or webhook
list_numbersNumbers in the workspace and their routing✓
place_callPlace an outbound call with an AI agent, a flow, or a spoken message
get_callStatus, duration and parties of a call✓
search_callsFilter calls, or full-text search transcripts and summaries✓
get_call_transcriptFull diarized transcript✓
get_call_summaryAI summary, action items, sentiment, extracted fields✓
send_smsSend an SMS
send_whatsappSend a WhatsApp message (free-form or template)
list_conversationsMessaging threads✓
get_conversation_messagesMessages in a thread✓
list_ai_agentsAI agents available for calls✓
create_campaignCreate an outbound campaign (draft)
import_campaign_leadsAdd leads to a campaign (DNC-checked)
control_campaignStart or pause a campaign
get_campaign_statsProgress and outcomes✓
get_wallboardLive agents, queues and active calls✓
get_balancePrepaid balance✓

Tools that place calls, send messages or spend money carry openWorldHint (and read tools readOnlyHint) so clients can ask you to confirm before they run; their descriptions also tell the model to confirm recipient, content and cost. API errors are returned as tool errors (isError: true) with status, code, details and a hint, so the model can correct itself.