Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ORCA_BINNoPath to the orca CLI binary. If omitted, orca must be available on PATH.
ORCA_MCP_HTTP_HOSTNoHost to listen on when ORCA_MCP_TRANSPORT is http. Use ::1 for IPv6 loopback.127.0.0.1
ORCA_MCP_HTTP_PORTNoPort to listen on when ORCA_MCP_TRANSPORT is http. Use 0 for an available port.8765
ORCA_MCP_TRANSPORTNoMCP transport to use. Valid values are stdio or http.stdio
ORCA_MCP_AUTH_TOKENNoBearer token for HTTP transport. If set, Authorization: Bearer is validated. Required when binding ORCA_MCP_HTTP_HOST to a non-loopback address.
ORCA_TERMINAL_HANDLENoHandle of the dedicated Orca terminal pane. Required when launching the MCP server outside that pane; inherited automatically when launched inside it.
ORCA_MCP_ALLOWED_HOSTSNoComma-separated allowed Host headers for HTTP transport.localhost,127.0.0.1,[::1]
ORCA_MCP_ALLOWED_ORIGINSNoComma-separated allowed Origin headers for HTTP transport.localhost,127.0.0.1,[::1]

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
orca_delegate_taskA

ゴールを Commander Agent に委譲する(非同期 submit / Commander API)。内部で run-create(run 未指定時) → task-create(固定の Commander 指示 + goal + repo + constraints を spec に書き込み) → worker-start --worktree new-child --agent (既定 codex) を行い、commanderModel / commanderEffort を渡せば worker-start --model / --effort に載せる(effort だけの指定は effort_requires_model。実際に使われた値は応答の launch.effective)。Commander の完了を待たずに { taskId, state: "running", commander: true } を返す。新規 worktree には名前が必須なので、title があればそれを、無ければ spec とタスク ID から自動生成した名前を渡す(title は省略できる)。Commander がゴールを分解して supervised worker へ差配するので、利用者が個々のワーカーやターミナルを直接指定することはない(terminal / worktree は受け付けない)。worker-start だけ失敗してもタスクは生き、warnings 付きで返す: 起動前の失敗(agent_unconfigured など)は state: "queued"(放置しても進まない)、エージェントが readiness を通れなかった場合は Orca がタスクを failed にするので state: "failed" + startOutcome: "failed"(タスクを実行していない pane が残る。workerReportPending を poll で確認し、false なら orca_release_task で閉じて起動設定を直し delegate し直す)。repo は repo セレクタで渡すこと — id: / path: は解決できるが、worktree の displayName や worktree path は repo_not_found になる(現在の worktree の repoId は orca worktree current --json の result.worktree.repoId)。

orca_get_task_statusA

委譲したタスクの現在状態を正規化して返す(非同期 poll)。内部で task-list / dispatch-show / worker-list / gate-list / run-list / check(呼び出し Run の受信箱の pending ask を peek)/ inbox(ask の asker の dispatch 受信箱。回答の配達確認)を読むだけで、何も変更しない — このターミナルが Run の担当でなければ run-use で担当を奪わず、ask を読まずに warnings に理由を残す。state は queued / running / blocked / completed / failed / cancelled、phase は queued / starting / implementation / decision_gate / settling / finished。commander は Commander 自身の worker、children は Commander が task-create で分解した直接の子タスク(direct children、parent_id が対象タスクと一致するもの)とその worker(state 付き)なので、1 回の poll で配下の進捗が見える。孫以降(deep DAG)は children に現れない(子タスク自身の poll で見る)。gates が pending のときは orca_resolve_gate で承認/却下できる。gates は対象タスクと直接の子タスクのもの(taskId と runId 付き)。gates[].runId はそのゲートの所属 Run で、sub-run 内のゲートは呼び出し元 Run と違う Run ID になる(実測: 呼び出し元 Run の gate-list は 0 件、sub-run に pending が 1 件) — orca_resolve_gate にはこの runId をそのまま run として渡す。blockedReasons[] に止まっている理由(kind: gate / ask / ask_undelivered / task_report / agent_auth / agent_prompt / turn_unobserved / unknown)が入るので、blocked のときはまずそれを読む(gate 由来の detail には gateId / runId がある)。turn_unobserved は「worker が指示文を受け付けたのに作業を始めていない」(放置しても進まない)— detail.suspectedCause が submit_missing なら、人間に Orca で detail.terminalHandle の pane を開いて Enter を 1 回押してもらう(Codex が指示文を送信せず入力欄に保持する実測。承認プロンプトやエラーが出ていたら押さない。MCP からは送れない)。agent_auth は認証切れの推定(detail.matchedPattern)で、ログインを直してもらう。ask_undelivered(undeliveredAsks[])は「ask は回答済みだが asker が回答を読んでいない」— Orca は子 Run の coordinator を兼ねる Commander に回答を配達しない(1.4.250〜1.4.253 実測)ので、orca_reply_message をもう一度呼ばず、asker の pane で人間に detail.recoveryCommand(ask --resume)を実行させる。回答済みで asker が受け取った ask は asks[] から外す。agent_prompt(人間にしか答えられないエージェントの承認待ち)は worker-show の observation.agentWait(Orca の判定。根拠は detail.agentWait の source: hook / prompt-text / title)を優先し、Orca が見ていない worker だけ出力末尾の文言から推定する — MCP からは解除できないので pane で人間が答える。ゲート無しの blocked は phase: blocked になる。生の status は rawStatus に残す。launch token 無しで失敗した dispatch(dsh 型)で worker terminal が生存中の場合は workerReportPending: true と workerReportNote を添える — その failed は一時的で、worker の task-update 報告により completed が後から届く(実測)。state は偽装しない。sub-run: Commander が run-create で子 Run を作ると、その中のタスクは呼び出し元 Run の task-list に 1 件も出ない(実測で childCount: 0 + sub-run 内に子 6 件)。既定 includeSubRuns: true は run-list を cursor でページングして読み(実測で 60 件 + nextCursor)、coordinatorHandle 照合し、その配下を children に sourceRunId 付きで合算する(拾った Run は subRuns / subRunsDiscovered に載せる)。子が見えないのに childCount: 0 のときはまず subRuns を確認すること。subRuns 行は所有判定も持つ: ownership = verified(coordinator_handle + pane key + process incarnation まで一致)/ probable(handle 一致のみ)/ unverified / conflicting、cancelEligible は verified のみ true、verificationReasons に根拠、discoverySource(explicit / provenance / handle)。スキャンの正直さも応答に出す: subRunScanComplete(打ち切ったら false)/ subRunsTruncated(MAX_SUB_RUNS 超)/ subRunScanPageCount / subRunScanRunCount / subRunOwnershipComplete / subRunWorkerScanComplete(sub-run 側の worker-list を読み切ったか。打ち切ったら cancel は完全停止を保証しない)。

orca_get_task_resultA

タスクの成果とワーカー出力を読む(非同期 result)。内部で task-list / dispatch-show / worker-read / run-list を読むだけで、何も変更しない。worker 出力は 1 件あたり既定 40 行・最大 4000 文字に切り詰める。既定では Commander 自身の成果と出力だけを返し、includeChildren: true で直接の子タスク(direct children)の result と出力(子 10 件・worker-read 8 件まで)を集約する。孫以降は集約しない(その子自身の result で見る)。Commander が sub-run を作っていた場合、includeChildren: true(既定 includeSubRuns: true)はその sub-run の子タスクも sourceRunId 付きで集約する — 呼び出し元 Run だけの result は sub-run の成果を丸ごと見落とす(実測)。集約の完全性は poll と同じ応答フィールドで出す: subRunScanComplete / subRunsTruncated / subRunOwnershipComplete / subRunWorkerScanComplete(打ち切りのときは warnings に理由が出る)。

orca_send_messageA

委譲したジョブのエージェントへメッセージを送る(指示の補足・質問・エスカレーション・完了報告)。内部で orca orchestration send --json を 1 回呼ぶだけ。宛先は run: / dispatch: / @all / @codex / @worktree:、省略時は Run の受信箱。MCP 側は Run バインドを持たないので run(orca_delegate_task が返した runId)を渡すこと。type=worker_done には outcome(succeeded/failed)と dispatchId(orca_get_task_status の workers[].dispatchId)が必要で、欠けていれば CLI に叩き合う前に outcome_required / dispatch_id_required で返す。worker_done 以外に outcome を付けると outcome_not_allowed。

orca_cancel_taskA

委譲ジョブをキャンセルする。内部では orca CLI の手順どおり、対象タスクの dispatch を worker-stop(または mode=abandon なら worker-abandon)で fence してから task-update --status failed --result cancelled を呼ぶ。既定 cascade: true で、Commander が分解した子孫タスクとその worker を子から順に止める(cascade の由来)。まず全対象の dispatch を読み切る preflight を行い、子孫 12 件超は cancel_scope_too_large、1 タスク 3 dispatch 超は cancel_dispatch_scope_too_large で何も変更する前に断る。Commander の fence に 1 件でも失敗すれば cancel_incomplete(state: partial / cancelled: false)で対象 task は更新しない。成功応答の fullyStopped は「全 dispatch が fence され、停止後に worker-list を読み直して生存 worker が 0 件」を意味する。mode=abandon の場合は worker-abandon がプロセス停止を主張しないコマンドなので、fullyStopped: true も OS のエージェントプロセス終了は保証しない(pane 上のプロセス確認は人間側)。完了済み・キャンセル済みのタスクには何もしない(冪等)。worktree やターミナルの削除は行わない。sub-run: Commander が sub-run を作っている場合、task ツリーだけ追う cascade はその worker を走りたままにする(実測)。既定 includeSubRuns: true は run-list の coordinatorHandle 照合で sub-run の部分木を cascade 対象に組み込み、呼び出し元 Run の Commander より先に止める(拾った Run は subRunsDiscovered / subRuns に載せる)。上限 12 件は sub-run 込みの件数で判定する。所有検証: auto-cancel は pane key / process incarnation まで一致した verified の sub-run だけ — 検証に失敗した sub-run が 1 件でもあれば preflight で cancel_ownership_unverified を返し、何も変更しない(probable を叩くと別 job の worker を止める事故になる)。sub-run を含めずに止める逃げ道は includeSubRuns: false / cascade: false。同一 dispatch は 1 回だけ叩く。停止後は worker-list を読み直し、残っている worker を residualWorkers に載せ、その 1 件でも fullyStopped: false(探索を打ち切った場合も false)。探索の完全性: run-list / worker-list は cursor でページングし、上限到達・hasMore に対して nextCursor 無し・同じ cursor の周回を打ち切りとして検出する(subRunScanComplete / subRunWorkerScanComplete)。worker-list のページングを打ち切ったら完全停止を保証しない(fullyStopped: false)。cascade + includeSubRuns の既定構成では、前提となる読み取り(呼び出し元 Run の worker-list / sub-run 探索の run-list / Commander の terminal handle)が揃わないときに preflight で cancel_discovery_incomplete を返し、何も変更しない(見落とした worker を走りたまま cancelled: true で返さないため)。読み取りの失敗だけでなく、探索コマンドが使えない場合(client に worker-list / run-list が無い、呼び出し元 Run が特定できない)も同じ語彙で断る。停止後に worker-list を読み直せる Run が無いときも fullyStopped: false。

orca_release_taskA

終わったジョブの後片付け: settled(succeeded / failed)な worker の agent terminal を orca orchestration worker-release で閉じる。完了しても worker の terminal は retained のまま残り続ける(実測)。対象タスクが終端(completed / failed / cancelled)でも queued でもなければ release_job_active で何も変更しない(走っているジョブは orca_cancel_task で止めてから)。readiness で落ちた起動(タスクは failed)の、タスクを実行していない pane もこれで閉じる。launch token 無しで dispatch だけ失敗し pane がまだ動いている worker は report_pending として skipped に残す(後から task-update で報告が届き得る)。既定 cascade: true で子孫タスクの worker も対象にし、includeSubRuns: true で Commander 自作の sub-run のうち所有確認が verified のものも対象にする(verified でない sub-run は skippedSubRuns に残して触らない)。settled でない worker(not_settled)とユーザーが UI で Keep open した / 引き取った worker(user_retained。pane で承認プロンプトに答えただけでも引き取り扱いになる。新しい worktree の worker に Orca が既定で付ける keep-open = retainedReason user_requested は閉じる)は skipped に残して触らない — fullyReleased は落とさず、件数を retainedByUserCount と warning で出す(pane は残る)。解放済みは alreadyReleased。対象が 36 件を超えると release_scope_too_large で何も変更しない。worker-release は閉じる前に出力を archive するので、orca_get_task_result の worker 出力は引き続き読める(すでに止まっていた worker は archive が取れないことがある)。worker-release は Run バインドを要求しないので run-use は呼ばず、どの Run の担当も動かさない。worktree・setup terminal・ユーザーが引き取った terminal は閉じない(CLI の保証)。閉じたと数えるのは receipt が released / already_released のものだけ(releasedCount)。release_pending は pendingCount、retained は notClosedCount、release_unknown などは failedCount に分け、閉じていない行には Orca の lastError / recovery を添える。pane がすでに消えた worker は release_unknown になる(プロセスが消えたと証明できないため。実測)。fullyReleased は全候補が閉じたと確定し、探索漏れ・skippedSubRuns・not_settled が 0 件のときだけ true。Commander の terminal が閉じた後(cancel 後など)も、sub-run は objective マーカーで見つけ、所有は Commander の dispatch 記録の来歴で確かめる。

orca_resolve_gateA

pending の判断ゲート(Decision Gate)を承認/却下して Commander を進める。内部で gate-list から対象を読み、orca orchestration gate-resolve --id --resolution --json を 1 回呼ぶだけ。gate は Run バインドスコープなので run は必須(consumer_fenced 時だけ run-use で切り替えて 1 回再試行)。run には poll(gates[].runId / blockedReasons[].detail.runId)で得た そのゲートの所属 Run を渡すこと — Commander が sub-run を作っていると、ゲートは呼び出し元 Run と違う Run に存在する。gateId と run の組が一致しない場合は何も変更せずに gate_run_mismatch で拒否する。解決済みのゲートには何もしない(冪等)。Commander Prompt が「承認ゲート無しでは merge/push/deploy をしない」と約束しているため、これを呼ぶ手段が無いとジョブが途中で止まる。認可の境界: gate-resolve は「Run ID と Gate ID を知る誰でも」解決できる CLI 構造で、MCP 側は単一ユーザー / 信頼できるクライアント前提の認可を持たない。自分の job のゲートだけを解決させたい場合は taskId(通常は orca_delegate_task の taskId)を渡す — ゲートの task がその task またはその部分木に属さなければ gate_task_mismatch で何も変更せずに拒否する。指定なしは所属 task を点検しない。taskId の点検は任意の誤操作防止であり厳密な認可ではない(Run をまたぐ親子関係は検証しない)。

orca_reply_messageA

pending の ask(質問メッセージ)に回答して asker のブロックを解く(Human-in-the-loop)。asker は orchestration ask --to run:<親Run> --wait(タイムアウト後は ask --resume)でブロックして回答を待つので、reply すると ask が answer 付きで解ける。ターンを終えて Orca の wake を待っている asker には届かないことがある(Orca 1.4.250〜1.4.253 は Run の coordinator を兼ねる terminal に回答を配達しない)ので、reply の後に asker の terminal が Run を coordinate しているかを dispatch-show / run-list で読み取り確認し、該当すれば delivery.wakeLikelyBlocked: true・warnings・nextAction(asker の pane で ask --resume を実行させる)を返す(確認できなければ wakeLikelyBlocked: null。reply の結果は変えない)。内部で check(--all)から対象メッセージを読み点検したうえで、orca orchestration reply --id --body --json を 1 回呼ぶだけ。body には ask の --options で出した選択肢の値(例: approve / reject)を書く。run は ask の宛先 Run(--to run: の親 Run。orca_delegate_task が返した runId)で必須(reply は Run バインドスコープ。consumer_fenced 時だけ run-use で切り替えて 1 回再試行)。messageId が指定 Run の受信箱に無ければ何も変更せず ask_not_found で拒否、taskId を渡して asker の payload.taskId がその task と部分木に属さなければ何も変更せず ask_task_mismatch で拒否する(sub-run の worker からの ask は呼び出し元 Run の task-list に現れないので、その場合は taskId を外す)。点検は任意の誤操作防止で、厳密な Job 単位の認可ではない。

orca_statusA

Orca のアプリ/ランタイム/グラフの準備状態を JSON で返す。内部で orca status --json を実行するだけで、何も変更しない。

orca_readinessA

委譲の前に、Orca ランタイムが起動しているか / orchestration が有効か / orchestration skill がインストール済みかを機械的に確認する。commanderAgent を指定すると、そのエージェントが orchestration skill を読めるか(skills installed の providers)まで見る。内部で orca status --json と orca skills installed --json を読むだけで、何も変更・インストールしない。足りないものは missing と nextAction(実行コマンド)で返す。

orca_list_worktreesA

Orca 管理のワークツリー一覧を JSON で返す。内部で orca worktree list --json を実行するだけで、何も変更しない。repo セレクタと limit を指定できる。

orca_get_worktreeB

1 件のワークツリー詳細を JSON で返す。内部で orca worktree show --worktree <selector> --json を実行するだけで、何も変更しない。セレクタは active / current / branch: / name: / path: / id::: / identity: / issue:。

orca_list_agentsA

起動中のエージェント(dsh / codex / claude など)を worktree 横断で一覧化する。内部で orca worktree ps --json を 1 回実行するだけで、起動・送信・停止は一切行わない。既定では prompt を 200 文字に切り詰め、lastAssistantMessage は省略する。

orca_list_runsA

orchestration Run を列挙する(read-only 観測)。内部で orca orchestration run-list --json を実行するだけで、何も変更しない。各行は { runId, objective, coordinatorHandle, createdAt, updatedAt }(coordinatorHandle = その Run を作成した coordinator の terminal handle、未設定なら null)。Run は poll / cancel の境界なので、子タスクが見えないときはこれで Run を突き止める: Commander が run-create で作った sub-run は呼び出し元 Run の task-list に 1 件も出ない(実測)。sub-run の runId を手に入れたら orca_get_task_status({ taskId: <sub-run の task>, run: <sub-run の runId> }) で poll できる。cursor は前回応答の nextCursor(作成順の keyset)。

orca_get_runA

1 件の Run 詳細を読む(read-only 観測)。内部で orca orchestration run-show --id <runId> --json を実行するだけで、何も変更しない。返すのは { runId, objective, coordinatorHandle, createdAt, updatedAt }。coordinatorHandle はその Run を作成した coordinator の terminal handle で、sub-run の帰属を突き止めるときに使う。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 15 tools

Disambiguation4/5

Most tools target clearly distinct resources/actions (delegate, poll, result, cancel, release, resolve gate, list runs). The only adjacent pairs are orca_status vs orca_readiness and orca_send_message vs orca_reply_message, but the descriptions draw usable boundaries between them. An agent can generally pick the right tool without much risk of misselection.

Naming Consistency4/5

All names share the orca_ prefix and snake_case, with a mostly predictable verb_noun pattern (list_worktrees, get_task_status, cancel_task, resolve_gate). The noun-only orca_status and orca_readiness are minor deviations but remain readable and consistent in style.

Tool Count5/5

15 tools sits at the top of the well-scoped range and each maps to a distinct orchestration concern rather than redundant wrappers. Given the complexity of delegation, polling, gates, messaging, cancellation, release, and observability, the count is justified.

Completeness4/5

The core lifecycle is covered end-to-end: readiness, delegate, poll status, read results, reply/send messages, resolve gates, cancel, and release, plus worktree/run/agent observability. Minor gaps remain, such as worktree mutation operations, explicit skills installation, and a run-use tool referenced in descriptions but not exposed. These are workable but could force agents into manual CLI fallbacks.

Maintenance

ActivityActive
ResponsivenessNo recent community issues