Callwright

io.github.topness-msft由 GitHub 帳號 topness-msft 發布v1.0.3更新於 Oct 24, 2026

Self-hosted MCP voice agent that places phone calls on your behalf via Retell.

發布方自己的服務:CrowdHum

概覽

AI 產生的概覽

讓助理透過 Retell 撥打真實外撥電話,替你預訂、確認或詢問事情。

可以做什麼
Callwright 是一套自架的 MCP 伺服器,把聊天中的請求變成由 Retell 語音代理執行的外撥電話。工具分成幾組:設定與設定檔(get_setup_status、configure、list_scenarios)、通話(place_call、get_call_outcome、list_recent_calls、list_retries)、語言(list_voices、list_languages、add_language、verify_language、update_language、remove_language)以及學習(learn_from_call、list_candidates、create_profile、add_scenario_alias、reject_candidate)。place_call 預設只做試跑,會回傳通話計畫以及將要揭露的個人資料清單,只有帶入 confirm:true 才會真正撥號。代理每次都會表明自己是 AI,不會付款,並回報通話結果。
適用情境
當你希望助理替你打例行電話時使用,例如確認預約、訂位、改期,或向商家詢問資訊。它適合單一使用者、自架的環境:你已經在用支援 MCP 的助理,並希望直接在對話中發起通話,而不是自己手動撥打。
執行需求
需要本機 Node.js 環境(npm 套件 callwright,或從原始碼執行),或一台具備持久磁碟的託管執行個體,用來保存 config.json 與 scenario-profiles.json。需要一個已開通外撥的 Retell 帳號,完成 KYC 驗證、購買電話號碼並綁定付款方式;必須提供 RETELL_API_KEY 密鑰。伺服器一旦暴露到 localhost 之外,就需要 MCP_AUTH_TOKEN。選用變數包括 PORT、CALLWRIGHT_DATA_DIR、CALLWRIGHT_PUBLIC_URL、CLAUDE_ROUTINE_URL 與 CLAUDE_ROUTINE_TOKEN。
安裝前請注意
通話會產生費用:Retell 依分鐘計費並收取號碼月租,記在你的帳號上。持有 MCP_AUTH_TOKEN 的任何人都能以你的帳號發起通話,而網頁用戶端會把該權杖放在 URL 中,因此要把連接器 URL 當成密碼保管,一旦外洩就輪換權杖。RETELL_API_KEY 必須只留在伺服器端。常駐個人資料保存在你主機上的 config.json 中,通話只向商家傳送最小必要子集。place_call 預設試跑,建議保持工具確認開啟。表明代理是 AI 是強制行為。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Callwright,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Callwright

A voice agent that places phone calls — reservations, appointments, confirmations, general inquiries — on your behalf, shaped by an LLM's direction + grounding. It discloses it's an AI, negotiates within bounds you set, never fabricates, and reports the outcome.

Built on Retell. Exposed as an MCP server so any MCP-capable assistant (Claude, ChatGPT, Cursor, Copilot) can place calls for you — combining callwright (the actuator) with your other MCPs (WorkIQ, Gmail, calendar — the sensors) for context.

Just ask

You don't fill out forms — you ask your assistant in plain language, and it gathers the context (from your calendar, email, or the chat), shapes the call, reads it back to you, and dials on your OK:

"Find the repair appointment in my calendar and call the contractor to confirm it's still on for Thursday."

"Call Sakura Sushi and book a table for 4 this Friday at 7 — anytime between 6:30 and 8 is fine."

"Ring my dentist and move my cleaning to sometime next week; my member ID is in my profile."

"電話して、東京の美容院に明日の午後カットの予約を取って." — (places the call in Japanese)

"Call this hotel in Kyoto and ask their hire-car rate to the airport — just gathering info, don't book."

The assistant pulls only the minimal details each call needs, confirms the plan with you first, then places it fire-and-forget and fetches the outcome when you ask.

How it works

You (chat) --> Host LLM --gathers context from other MCPs--> shapes a place_call                  |                  v            callwright MCP  --validate + profile + compose + guard--> Retell --> phone                  |                                                     |                  +-- get_call_outcome / learn_from_call <-- outcome --+
  • Generic agent, not per-scenario. One agent prompt = fixed guardrails (disclose AI, never pay, never fabricate, PII-minimize) + injected per-call direction. Handles any scenario and language.
  • Multilingual, extensible at runtime. Ships speaking English and Japanese; add_language stands up a brand-new call language (translated prompt + a native voice + its own agent) entirely from chat — no redeploy. All language phrasing is data (lang-phrases.json), not code.
  • Purpose-first disclosure. Opens with the goal ("I'm an AI assistant. I'm calling to confirm..."), not a name. Your name surfaces only when a business needs it.
  • Data minimization, filled lazily. PII lives in principal.facts (shared only if asked); each call carries only the minimal relevant subset, and the read-back lists exactly which data types go out. When a call uses a durable fact you haven't saved, it offers to remember it — so the profile fills from use, not an upfront interview.
  • Learns from every call. When a call defers on a missing detail, the profile is enriched so next time it's collected up front — manually (learn_from_call) or automatically via a signature-verified Retell webhook. A genuinely new scenario is staged and proposed (never silently created), with guards against over-specific splintering.
  • Bounded retry. An unanswered/busy call is re-dialed — exactly once by default, never more without an explicit request (anti-spam).

Tools

Setup & profiles

ToolPurpose
get_setup_statusWhat's configured / missing
configureSave your name, callback, standing facts (+ optional provisioning)
list_scenariosKnown scenario profiles (+ pending candidates)

Calling

ToolPurpose
place_callDry-run by default (returns read-back); confirm:true to dial. Supports lang and overrides.retry
get_call_outcomeOutcome + analysis + transcript by call_id
list_recent_callsRecent calls
list_retriesRecent automatic no-answer re-dials

Languages

ToolPurpose
list_voicesBrowse Retell voices (for adding a language)
list_languagesLanguages this server can call in
add_languageAdd a new call language at runtime (translate → agent)
verify_languageQuality-gate a new language (review card + optional live test call)
update_language / remove_languageChange / remove an added language

Learning

ToolPurpose
learn_from_callEnrich a profile, or stage a new-scenario candidate
list_candidatesStaged scenario candidates (pending new profiles)
create_profileCreate a new scenario profile (propose-and-confirm, guarded)
add_scenario_aliasMerge a call type into an existing profile
reject_candidateDrop a noise/one-off candidate

place_call is fire-and-forget and gated: the first call returns a read-back (including the PII footprint); you dial only after confirming with confirm:true.

get_call_outcome returns a canonical outcome object. Its custom-analysis-first status is authoritative when Retell's built-in call_successful signal disagrees; both raw signals remain available for diagnosis. Successful informational calls use completed, while booked is reserved for an actual reservation, appointment, or commitment.


Retell setup (prerequisites)

Callwright dials through Retell, so you need a Retell account with outbound calling enabled before anything works. In the Retell dashboard:

  1. Create an account and add a payment method (Stripe). Calls and phone numbers are pay-as-you-go; there's no Callwright fee on top.
  2. Complete KYC verification. This is required to unlock outbound calling and phone-number purchases — without it, calls are blocked. (It's a one-time identity/business check; approval is usually quick.)
  3. Buy a phone number. This becomes your caller ID (the from number). A US local number is cheapest; Callwright auto-selects it during configure run_provisioning.
  4. Create an API key (Settings → API Keys). This is your RETELL_API_KEY — it stays server-side and must never go in a browser or chat.

Optional, recommended:

  • Verified phone number / branded calling (dashboard → Telephony) — registers your number so carriers are less likely to tag it "Spam Likely", which meaningfully improves pickup rates on outbound calls.

Not required (and currently dormant here):

  • A2P 10DLC registration — only needed to send SMS, via a multi-step business-profile → brand → campaign approval with a recurring cost. Callwright's SMS notifications are built but shelved, so you can skip this entirely for placing calls.

Costs are per-minute and destination-driven (roughly ~$0.015/min US, higher internationally) plus the monthly number rental.


Install

Published on npm as callwright. Install globally to get the callwright (server) and callwright-init (setup wizard) commands:

bash
npm install -g callwright

Or clone this repo and npm install to run from source (node server.js, node init.js).

Either way, callwright is a self-hosted, single-user HTTP MCP server: you run your own instance with your own Retell credentials (see Retell setup above). Nothing is shared or multi-tenant.

Run locally

Using the global install:

bash
callwright-init                     # one-time setup wizard (number, agent, your identity)export RETELL_API_KEY=key_xxx       # [Environment]::SetEnvironmentVariable on Windowscallwright                          # MCP server on :8787 (POST /mcp)

From a cloned repo, use node init.js and node server.js instead.

Check setup anytime: callwright-init status (or node init.js status). Place a call from the CLI (bypassing MCP): node dispatch.js <job.json> --go.

For local use, MCP_AUTH_TOKEN is optional — with it unset the server accepts loopback connections only. Set it once you expose the server beyond localhost (see Deploy hosted).


Deploy hosted (single-user)

Goal: a remote MCP URL only you can use. Works in both web clients (claude.ai, chatgpt.com) and local clients.

1. Pick a host with a persistent disk

config.json and scenario-profiles.json are written at runtime (by configure and learn_from_call), so avoid ephemeral/serverless filesystems. Good fits: Fly.io (volume), Railway (volume), Render (disk). A small always-on instance is fine — call volume is tiny.

2. Set environment variables (host dashboard)

RETELL_API_KEY = key_xxx            # your Retell secret - stays server-sideMCP_AUTH_TOKEN = <long random>      # the bearer token only you holdPORT           = 8787               # or whatever the host injectsCALLWRIGHT_DATA_DIR = /data         # persistent volume for runtime stateCALLWRIGHT_PUBLIC_URL = https://your-host.example.com   # optional: enables the auto-learn webhook (Retell posts call_analyzed back here)CLAUDE_ROUTINE_URL = https://api.anthropic.com/v1/claude_code/routines/trig_xxx/fire   # optional immediate call completion wake-upCLAUDE_ROUTINE_TOKEN = <routine trigger token>   # dedicated token generated by the Claude Routine

See .env.example. Never put the Retell key in a browser or chat.

When a call originates from a TickTick task, the calling assistant can pass tracking.ticktick_task_id to place_call. Callwright stores that opaque ID in Retell's storage-only metadata, preserves it through automatic retries, and uses the final call_analyzed webhook to wake the configured Claude Routine. The Routine URL and token are optional; hourly polling remains the fallback.

3. Deploy

Docker is provided:

bash
docker build -t callwright .docker run -p 8787:8787 --env-file .env callwright

Or point the host at this repo (it auto-detects the Dockerfile). Mount a volume at the app dir so config.json / scenario-profiles.json persist across restarts.

No-Docker alternative: install from npm on the host and run the binary directly (point CALLWRIGHT_DATA_DIR at your persistent volume so runtime state survives restarts):

bash
npm install -g callwrightCALLWRIGHT_DATA_DIR=/data callwright     # reads RETELL_API_KEY / MCP_AUTH_TOKEN from env

4. First-run setup over MCP (no webpage needed)

Do setup in chat:

  1. Connect the server (below).
  2. Ask the assistant to call configure with run_provisioning: true and your name + callback number. That verifies the key, selects your Retell number, creates the generic agent, and saves your profile.
  3. get_setup_status should now report ready: true.

(Or run node init.js once on the host shell if you prefer.)


Connect a client

Replace the URL with your deployed host and the token with your MCP_AUTH_TOKEN. The server accepts the token two ways: an Authorization: Bearer header (Desktop/Code/Cursor) or a ?key= URL query param (web clients whose connector form has no header field).

Claude.ai (web)

The web connector form only takes a URL, so put the token in the URL:

  1. Settings → Connectors → Add custom connector (or Browse connectors → Add custom).
  2. Name: Callwright
  3. URL: paste your host + /mcp + your token as ?key=:
    https://your-host.example.com/mcp?key=<MCP_AUTH_TOKEN>
  4. Save, then enable it in a chat (the 🔌/tools menu). Ask "what callwright tools do you have?" to confirm it connected.

Because the token is in the URL, treat that connector URL like a password — anyone with it can place calls billed to your Retell account. Rotate by changing MCP_AUTH_TOKEN and updating the connector.

Claude Desktop / Cursor

json
{  "mcpServers": {    "callwright": {      "url": "https://your-host.example.com/mcp",      "headers": { "Authorization": "Bearer <MCP_AUTH_TOKEN>" }    }  }}

Claude Code

bash
claude mcp add --transport http callwright https://your-host.example.com/mcp \  --header "Authorization: Bearer <MCP_AUTH_TOKEN>"

ChatGPT (Developer mode / connectors)

Add a custom MCP connector with the same URL — header or ?key= both work.

Keep "confirm before running tools" on. place_call is already dry-run-by-default, but tool-confirmation is a good second gate for an actuator that spends money and reaches real people.


Security notes

  • Single bearer token = your lock. Anyone with the token can place calls billed to your Retell account. Treat it like a password; rotate by changing MCP_AUTH_TOKEN.
  • Least-privilege Retell key. Use a scoped key if you don't need full admin.
  • PII. Standing facts are stored in config.json on your host. Calls send only the minimal subset, shared only if the business asks; the read-back shows the footprint every time.
  • If MCP_AUTH_TOKEN is unset, the server accepts loopback only (local dev).

Key files

FilePurpose
server.jsMCP server (Streamable HTTP, bearer auth) + the auto-learn / retry webhook
dispatch-core.jsValidate → profile → compose vars → dispatch (shared core)
dispatch.jsCLI over dispatch-core
setup-core.jsProvisioning + config + status + lazy-save helpers (shared by init & MCP)
lang-core.jsRuntime language management (add/verify/update/remove, voices)
lang-phrases.jsonPer-language composed phrasing (data, not code)
learn-core.jsProfile enrichment + new-scenario candidate staging (anti-splintering)
retry-core.jsNo-answer retry policy + bounded re-dial decisions
routine-core.jsIdempotent Retell call completion → Claude Routine trigger
init.jsTerminal setup wizard (node init.js / node init.js status)
update-prompt.jsPush a prompt + tools + etiquette + webhook to an existing agent
place_call.schema.jsonThe job contract the LLM fills
generic-prompt.md / .ja.mdGeneric agent prompts (guardrails + {{variables}})
scenario-profiles.jsonLearning profiles (recommended details per scenario)
learn.js / get-call.jsCLIs: enrich a profile / fetch a call outcome
paths.jsResolves mutable state paths (honors CALLWRIGHT_DATA_DIR)
scripts/release.ps1One-shot release: version bump + test + push + npm & MCP-registry publish
docs/Design specs (add-language, profile-learning)
webhook/Optional serverless Retell→Resend email notifier (independent of the MCP)

Per-user runtime files — config.json, agents.json, .retell-ids.json, job.*.json, grounding.*.json — are git-ignored. They're created at runtime (by init/configure) or are personal call data; never commit them. Start from config.example.json and examples/.

A note on disclosure & legality

The agent always discloses that it's an AI at the start of every call — this is a hard, non-removable behavior. AI-call disclosure is legally required in some jurisdictions (e.g. California's B.O.T. Act) and is good practice everywhere. The agent also never fabricates information and shares personal data only when a business asks for it. For commercial or at-scale use, confirm requirements with counsel in your jurisdiction.

Optional: proactive email on every call

See webhook/ — a serverless Retell→Resend notifier that emails you each outcome. It is independent of the MCP (which retrieves outcomes on demand via get_call_outcome) and is not deployed or wired by default.

來源:README.md,提交 f001205

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Crowdhum 整合