Skip to main content
Glama

orca-duet MCP

日本語

A small MCP server that lets Claude on claude.ai (for example Duet, or any chat with a custom connector) read the "needs you" items of your Orca bots and send questions to one Orca bot on your own computer, while you are away from it.

It is added to claude.ai as a custom connector. claude.ai calls it from Anthropic's cloud, so your computer needs a way to be reached from the internet. This README uses Tailscale Funnel for that.

Status: version 0.1.0, an early release. See What has been tested for exactly what was checked and what was not. The Tailscale steps below were written from its public documentation. For claude.ai, screen names differ between apps and languages; see Add it to claude.ai.

What it can do (five tools)

Tool

What it does

Suggested permission in claude.ai

list_needs_you

Lists items that need you or are waiting, for the bots you configured

Always allow

show_item

Shows one item and its recent events (bot name + item number)

Always allow

ask_orchestrator

Sends one question to your orchestrator bot. A line (body_prefix) is added at the top so the bot knows where it came from. Subject up to 100 characters, body up to 2000

Ask every time

wait_reply

Waits for the reply to a question it sent. One call waits up to 45 s, reading the inbox every 5 s; up to 8 calls per question (about 6 minutes). Read only

Always allow

read_replies

Shows replies to earlier questions, grouped by question id. Does not wait. Read only

Always allow

What it cannot do: change items, change status, run automations, create bots, create terminals, or send to any bot other than the orchestrator. Only four exact orca command shapes can run (list items, show one item, send a question, read the inbox); everything else is refused before orca is started (check_allowed in server.py). The inbox is read with orca orchestration inbox, which does not mark messages read, and only messages linked to questions this server sent are returned.

Related MCP server: OpenClaw MCP Server

Requirements

  • Orca installed, with at least one bot (the "orchestrator" you want to talk to). Find bot names with orca bot list.

  • Python 3.11 or newer (for tomllib).

  • A way for claude.ai to reach your computer over HTTPS. This guide uses Tailscale (free Personal plan) with Funnel. Checked with Tailscale 1.106.4 on Windows; earlier versions have not been checked.

  • A claude.ai plan that allows custom connectors.

  • Git to download this repository (or use GitHub's "Download ZIP" button and unpack it instead).

This server runs on your computer with your user's permissions and can run the orca command as you (limited to the four command shapes above). Read server.py (about 900 lines) before you run it, as you would with any software you install.

Install

git clone https://github.com/atoreti/orca-duet-mcp.git
cd orca-duet-mcp
python -m venv .venv
# Windows
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install -r requirements.txt -c constraints.txt
# macOS / Linux
./.venv/bin/python -m pip install --upgrade pip
./.venv/bin/python -m pip install -r requirements.txt -c constraints.txt

Upgrade pip before installing anything: python -m venv copies the pip that came with your Python, so an older Python gives you an older pip with known vulnerabilities (a check of a fresh environment found six in pip 25.0.1). Those vulnerabilities concern installing packages; the running server does not use pip.

Configure

Settings come from, in order of strength: environment variables > config file > built-in defaults.

  1. Copy config.example.toml to ~/.config/orca-duet-mcp/config.toml (Windows: %USERPROFILE%\.config\orca-duet-mcp\config.toml), or pass --config <path>, or set ORCA_DUET_CONFIG=<path>. The config file is looked for only there (or at --config / ORCA_DUET_CONFIG). Changing state_dir does not move it: a config.toml placed in your own state_dir is not read.

  2. Set at least orchestrator to the name of your bot as shown by orca bot list, without the bot: in front (orca bot list prints "bot:Research bot"; write "Research bot", the server adds bot: itself). Add other bots you want Claude to read to bots. Listing the orchestrator in bots as well is fine (it is not counted twice). Names may use any language; save the file as UTF-8.

  3. Windows paths in the file: write them with forward slashes ("D:/orca-duet/state") or in single quotes ('D:\orca-duet\state'). A backslash inside double quotes is read as an escape and the server stops with a Config error: cannot read ... message such as Unescaped '\' in a string or Invalid hex value.

  4. Check what the server will use (the key is never printed):

python server.py --show-config

This prints the values in use, not which file was read. If no file is found at the default place, the built-in defaults are used without a warning, so check that orchestrator shows your bot's name, not Orchestrator.

If you use --config <path>, add it to every command: starting the server, --show-config and --new-key. Without it the server uses the default place, and --new-key would replace the key there instead of yours. Setting ORCA_DUET_CONFIG once in the terminal avoids this.

Key

Default

Environment variable

Meaning

orchestrator

Orchestrator

ORCA_DUET_ORCHESTRATOR

Bot that ask_orchestrator sends to

bots

[] (= orchestrator only)

ORCA_DUET_BOTS (comma separated)

Bots Claude may read

orca_exe

auto (orca on PATH, then %LOCALAPPDATA%\Programs\orca\resources\bin\orca.exe)

ORCA_DUET_ORCA_EXE

Path to the orca CLI

host / port

127.0.0.1 / 8791

ORCA_DUET_HOST / ORCA_DUET_PORT

Where the server listens

state_dir

~/.config/orca-duet-mcp

ORCA_DUET_STATE_DIR

Key, call log, sent question ids

body_prefix

Request from Duet (claude.ai):

ORCA_DUET_BODY_PREFIX

First line of every question

auth_fail_limit / auth_fail_window_sec / auth_lockout_sec

5 / 60 / 300

ORCA_DUET_AUTH_...

Door lock after wrong keys (see Security)

send_limit_per_hour

20

ORCA_DUET_SEND_LIMIT_PER_HOUR

Max questions per rolling hour; 0 = read only

Start

Start it in a terminal tab inside Orca (not in an agent chat tab). orca needs to know which terminal is sending (ORCA_TERMINAL_HANDLE); started elsewhere, the read tools work but ask_orchestrator cannot send. Started inside an agent session, the server refuses to start, because messages would go out in that agent's name.

cd orca-duet-mcp
.\.venv\Scripts\python.exe server.py      # Windows
./.venv/bin/python server.py              # macOS / Linux

With your own config file, add --config <path> to the command (see Configure).

When it prints listening on http://127.0.0.1:8791/mcp, it is running. Keep the tab open. The first start creates the key file in state_dir (the line also shows where: Key file: ...).

Only one program can listen on a port. If another copy of this server (or anything else) already uses port, stop it first or choose another port; otherwise the start fails with an "address already in use" style error.

Replies from the orchestrator arrive in the inbox of the Orca terminal that sent the question. The server remembers each sent question id and that terminal (sent.jsonl, no subject or body), so replies can still be read after restarting the server in another tab.

Stop

Press Ctrl+C in the tab (or close the tab). Then also stop Funnel (below) so nothing is exposed.

python server.py --version prints the version you have.

Make it reachable (Tailscale Funnel)

  1. Create a Tailscale account at https://login.tailscale.com/start (the free Personal plan is enough).

  2. Install Tailscale (Windows: winget install --id Tailscale.Tailscale -e) and log in. Check with tailscale status.

  3. With the server running, expose its port:

tailscale funnel --bg 8791

The first time, Tailscale prints a link to enable Funnel (and HTTPS certificates) for your tailnet. Open it, enable, and run the command again. 4. tailscale funnel status shows a URL like https://<machine>.<tailnet>.ts.net/. The connector URL is that URL plus mcp, for example https://my-pc.example-tailnet.ts.net/mcp.

To stop exposing it: tailscale funnel --https=443 off (or tailscale funnel reset to remove everything).

Add it to claude.ai as a custom connector

Screen names differ between the web, the desktop app and the language of the screen, and they change over time. Two layouts are known:

  • From Anthropic's documentation (not checked on screen): Settings → Connectors (or Customize → Connectors), then Add custom connector.

  • Seen once in the Windows desktop app with Japanese screens (December 2026): the side menu プラグイン ("Plugins") → マイプラグイン ("My plugins") → the connector's page, which has a row for the connector with a button 連携/連携させる ("Connect") and an 権限 ("Permissions") tab. The English labels in brackets are translations; the English screen was not checked.

Steps:

  1. Open the connector list in one of the places above and add a custom connector.

  2. Name: orca-duet. URL: the Funnel URL ending in /mcp.

  3. Give it the key as an API key, then connect (the Connect / 連携 button). Where the key field appears depends on the screen; in the documentation it is Advanced settings → sign-in method API key. claude.ai sends it as Authorization: Bearer <key>. Never put the key in the URL (the server refuses it). Copy the key without printing it (the key file is key in your state_dir; the lines below use the default place):

    • Windows PowerShell: Get-Content "$env:USERPROFILE\.config\orca-duet-mcp\key" | Set-Clipboard

    • macOS: pbcopy < ~/.config/orca-duet-mcp/key

    Paste right after copying. If you take a screenshot or copy anything else in between, the clipboard now holds that instead, and claude.ai gets a wrong key (this happened once while testing). If connecting fails, copy the key again and paste it at once.

  4. Set tool permissions as in the table above. Keep ask_orchestrator on ask every time so you see each question before it reaches Orca. Keep wait_reply on always allow, or every wait will ask you.

To replace the key of a connector you already added (for example after --new-key): delete the connector and add it again as a new custom connector with the new key (steps 1 to 4 above). Disconnecting it from its "..." menu and pressing Connect (連携/連携させる) again does not ask for a key, so it does not connect (checked once in the Japanese desktop app).

After replacing the key, wait 5 minutes (auth_lockout_sec, default 300 seconds) before you delete and re-add the connector. A connector that still holds the old key locks the door after a single request (see Security), and while the door is locked even the new key is refused, so re-adding it at once looks like a failure.

If claude.ai cannot connect

claude.ai's message does not say why. With a wrong key it was only "could not connect ... check the server URL and that the server is running" (seen in the Japanese desktop app). Look at the last lines of calls.log in state_dir:

Last lines of calls.log

Meaning

What to do

"tool": "(auth)" with "note": "wrong_key"

The key reached the server but is not the right one

Copy the key again and paste it at once (see the clipboard note above)

"tool": "(auth)" with "note": "no_key"

A request came without any key

If every try gives no_key, check that the key was entered as an API key for this connector (single no_key lines can also come from other requests, such as scanners)

"tool": "(auth)" with "note": "locked"

The door is locked after wrong keys

Wait auth_lockout_sec seconds (default 300), or restart the server, then try again. If five wrong_key lines come right before it within a few seconds, claude.ai retried an old key by itself: replace the key in the connector (delete and re-add) only after the wait

No new line at the time you tried

The request did not reach the server

Check that the server is running, Funnel is on, and the URL ends in /mcp

All note values are listed under "What it stores" in the Security section.

Try it in a chat: "Do I have any Orca items waiting for me?", "Show item 1 of Orchestrator.", "Tell Orchestrator I will answer item 1 tonight."

What leaves your computer

What

Where it goes

How to stop it

Tool results: titles, questions, recent events and descriptions of open items of the bots in bots, and replies to questions this server sent (long texts are cut)

Anthropic (claude.ai), when Claude calls a tool

Remove bots from bots; stop the server; remove the connector

The questions Claude sends to your orchestrator

Stay on your computer (written by Claude in claude.ai, delivered to Orca locally)

Set send_limit_per_hour = 0, or set ask_orchestrator to ask every time and decline

HTTPS requests from claude.ai and the server's answers

Pass through Tailscale's Funnel relay to your computer

tailscale funnel --https=443 off

The key

Stored in your claude.ai connector settings

Replace it with --new-key; remove the connector

The server itself makes no outgoing network connections: it only listens, and runs the local orca command.

Services you rely on, and your responsibility

Using this server means using Orca, Tailscale (Funnel) and claude.ai (custom connectors). Each has its own terms of service and acceptable-use rules, and your organisation may have rules about exposing a computer or sending work data to an AI service. This project does not interpret those terms for you: check them yourself before use, and use the server at your own responsibility (see also the no-warranty clause in LICENSE).

Security: read this before you expose it

  • You are opening a path from the internet to your computer. Anyone who finds the Funnel URL can knock. Only the key stands between them and the tools. Expose it only while you need it, and stop Funnel when done.

  • One key protects everything. It is 48 random bytes, compared in constant time, accepted only in the Authorization: Bearer header. Requests with a key-like word in the URL are refused.

  • Repeated wrong keys lock the door. After auth_fail_limit wrong keys within auth_fail_window_sec, every request, even with the right key, gets HTTP 429 for auth_lockout_sec. Requests without any key get 401 but do not count, so random scanners cannot lock you out. Someone who keeps guessing can keep you locked out; if that happens, change the Funnel URL or stop Funnel. claude.ai retries a refused key by itself: in testing it sent the same wrong key 5 times within about 5 seconds (seen twice), which is exactly the default auth_fail_limit. So one request from a connector that still holds an old key is enough to lock the door for auth_lockout_sec (default 5 minutes). After you replace the key, wait for the lock to end, then delete and re-add the connector with the new key.

  • Sending is capped. At most send_limit_per_hour questions per rolling hour (0 makes the server read only). wait_reply is capped per question.

  • If the key may have leaked, replace it at once:

python server.py --new-key

If you start the server with --config <path>, run this with the same --config <path>, or it replaces the key in the default place instead. The old key stops working when you restart the server. Then paste the new key into claude.ai by deleting the connector and adding it again (see "To replace the key of a connector you already added").

  • What it stores (in state_dir, outside this folder by default): the key; calls.log with one line per request: time, tool name, success, and for failures a short reason code note (no key, no message text); sent.jsonl with question ids, the sending terminal handle and time (no subject or body); errors.log with the full text of errors, which may contain local paths. .gitignore keeps these out of git if you point state_dir here.

    The note values in calls.log:

    tool

    note

    Meaning

    (auth)

    no_key

    Request without any key; refused with 401, not counted for the lock

    (auth)

    wrong_key

    Bearer key that is not the right one; 401, counted

    (auth)

    not_bearer

    Authorization header that is not Bearer; 401, counted

    (auth)

    key_in_url

    A key-like word in the URL (even with the right header); 401, counted

    (auth)

    locked

    Refused with 429 because the door is locked

    a tool name

    refused

    The tool refused the input (unknown bot, wrong number, send limit, ...)

    a tool name

    timeout

    orca did not answer in time

    a tool name

    another word (an error type)

    Unexpected error; the full text is in errors.log

  • Errors shown to Claude are short: a fixed message and an error id, never the exception text, so local paths, your account name and command lines do not reach claude.ai. The full text is in errors.log under the same id.

  • What Claude can see: the titles, questions and recent events of open items of the bots you list in bots, and replies to questions this server sent. Do not list bots whose items you do not want in claude.ai.

  • Item text from Orca is passed to Claude as data. Treat what bots write there like any other untrusted input.

Uninstall: what stays on your computer

  1. Stop the server (Ctrl+C) and stop Funnel: tailscale funnel reset.

  2. In claude.ai, remove the orca-duet connector (where you added it; see "Add it to claude.ai").

  3. Delete state_dir (default ~/.config/orca-duet-mcp, Windows %USERPROFILE%\.config\orca-duet-mcp). It holds the key, calls.log, errors.log and sent.jsonl, and with the default state_dir also config.toml (if you made one). If you changed state_dir or used --config, delete that folder and that config file too. The logs and the sent list grow by one line per call, error or question and are never trimmed; deleting them while the server is stopped is safe (the server then forgets earlier questions, so read_replies no longer finds their replies).

  4. Delete this folder (it contains .venv).

  5. If you installed Tailscale only for this, uninstall it from your system's app settings.

Tests

python -m unittest test_server -v     # unit tests, never run orca
python check_live.py                  # starts the real server on port 8792 with a temporary key and calls the read tools
python check_live.py --send           # also sends one real test question (run it in an Orca terminal tab)

check_live.py --seed <msg_id>@<term_handle> puts an earlier question into the sent list first, so read_replies and wait_reply can be checked without sending anything new.

What has been tested

Checked (Windows 11, Python 3.12, Orca 1.4.291, mcp 1.30.0, uvicorn 0.55.0, version 0.1.0):

  • Unit tests (test_server.py), also with ORCA_DUET_* variables set to unusual values.

  • Each safeguard broken on purpose makes the unit tests fail (lockout, counting rules, send cap, config loading, command gate).

  • A fresh copy installed into a new virtual environment from requirements.txt and constraints.txt, without any Git or GitHub login (in Git Bash and in PowerShell), passes the tests.

  • check_live.py against a real Orca: 401 for no key / wrong key / key in URL, 200 for the right key, the read tools return real items. Nothing was sent.

  • The real path on 2026-12-06: Claude in claude.ai (Duet) → Tailscale Funnel (1.106.4) → a Windows PC → Orca, with this version set up from this README. list_needs_you, show_item, ask_orchestrator and wait_reply worked.

  • After ask_orchestrator, Claude called wait_reply without being told and showed the bot's reply in the chat. Tried twice, worked both times. Both tries were in the same Duet chat, and before the first one Claude had read the test steps through a tool result; a chat with no earlier exchange was not tried.

  • Through the Funnel URL: 401 for no key / wrong key / key in URL, 200 for the right key; after 5 wrong keys, 429 with Retry-After: 300, and 200 again after 5 minutes. These requests were sent from the same PC, so whether they went through Tailscale's outside relay was not checked.

Not checked yet:

  • macOS and Linux (including the pbcopy and ./.venv/bin/python lines above).

  • Tailscale versions other than 1.106.4.

  • read_replies through claude.ai (it was not called during the test above).

  • Cloning from GitHub (the repository was not public when this was written).

Why the numbers

  • One wait_reply call waits 45 s because claude.ai's tool-call time limit is not clearly documented (different pages mention 60, 180 and 240 seconds); 45 s fits under all of them.

  • MCP progress notifications are not used, because it is unclear whether claude.ai shows them.

License

MIT. See LICENSE.

Built on the MCP Python SDK (MIT) and Uvicorn (BSD-3-Clause), installed by requirements.txt.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers