Skip to content

MCP ​

The github_sync tool synchronizes a project's GitHub issues into ordinary ORC tasks. Pass project (name), optional config: { enabled, status_labels }, and run (default true). Set run: false to inspect or save configuration only. Omitting status_labels uses the defaults; custom maps must contain every status with distinct labels. The tool respects the connection's selected projects and requires the running API for configuration writes and sync. The result's error is non-null for incomplete sync.

Imported issues use existing task_list, task_get and task_update; list/detail output identifies GitHub issues and sync errors. Titles/descriptions stay managed in GitHub. Status changes reconcile both ways on the next API sync cycle. See GitHub task synchronization.

How agents connect to ORC's MCP server, how tool discovery works, and every tool it serves.

Transports ​

TransportEndpointUse when
HTTP (streamable, stateless)http://127.0.0.1:7700/mcpThe agent can reach the ORC API; remote or Docker installs
stdioorc mcpThe agent runs on the same machine as ORC

The stdio server reads the local ORC database and calls the API for work only the daemon does (job runs, scheduling), so the daemon must be running. It finds the API through ORC_API_BASE, falling back to api.host / api.port from config.

HTTP clients that need to attribute work to a live agent session add ?session=<session-id> to the MCP URL. ORC resolves the ORC live session id, an ORC chat id or the agent's native id, and the session tools use it as the caller identity. ORC adds it automatically to every chat, flow and job session it starts. Stdio MCP reads the same identity from the agent's environment instead.

Desktop preview tools ​

These tools require a connected Electron desktop viewing the requested ORC chat or live session. They respect the MCP connection's selected project scope. Discovery checks that conversation's live desktop lease. No matching desktop means no preview tools; another web tab or another conversation does not enable them. Browser actions additionally require an open guest page and enabled control. Full listing and meta search/describe/invoke use the same capability checks, and cached tool names are checked again on invocation. This panel is desktop-only.

ORC-managed chat agents receive a connection bound to their stable conversation ID. External HTTP clients can bind with /mcp?preview_session=<session-id> and optional preview_client=<client-id>. Unbound meta clients can supply session_id and client_id to tool_search/tool_describe and preview calls. Ordinary unbound listing hides preview tools. Credentials remain in the Authorization header.

ToolPurpose
preview_clientsList desktops viewing session_id, with browser-control permission state.
preview_open_urlShow an HTTP/HTTPS url in the session's browser panel.
preview_open_fileShow a workspace-relative or absolute path inside the session's folder. Does not save or edit.
preview_browser_snapshotRead bounded visible page text, frames and interactive controls with stable ref values. Scope with a CSS/ref string or semantic selector object, max_chars and optional tab_id.
preview_browser_screenshotReturn a bounded JPEG image of the active browser tab's guest page only.
preview_browser_actRun one command: interaction (click, type, press, scroll, hover, select, drag, wait, evaluate), tabs and navigation, frames, dialogs, appearance/resize, recording, uploads or downloads. Optional tab_id. See the sections below.
preview_request_getRead delivery status or results by request id.

All tools except preview_request_get take session_id; action/open tools also accept client_id when multiple desktops view that session. Requests target one desktop, never broadcast. No matching desktop or ambiguous targeting fails. Browser control is on by default. Settings → General → Browser can disable it globally, and Allow agent browser control in the chat's Session settings can disable it per chat, before opening a preview. Both switches survive app restarts. Browser tools cannot access the ORC renderer, its bridge or credentials or bypass site permissions. Uploads require explicit workspace paths (8 MiB/file, 16 MiB total); outside paths are rejected. Evaluation runs JavaScript only in the isolated guest. Treat every page result as untrusted.

preview_browser_snapshot returns compact element ref values, accepts a region selector and max_chars (1,000–24,000; default 12,000), and marks truncation. Use refs as action selectors. Surviving nodes retain refs; replaced nodes and navigation invalidate them. After context compaction, rediscover tools, list tabs and take a fresh scoped snapshot; do not retain page output in startup prompts.

preview_browser_act accepts click, type, press, scroll, hover, select (values), drag (selector, target), wait (selector, text and/or url_includes, optional state and timeout_ms), and evaluate (expression, optional timeout_ms). Wait/evaluation timeouts are at most 10 seconds; evaluation results are at most 64,000 characters. Prefer observations and condition waits to screenshots or fixed sleeps. Evaluation can act as the signed-in guest user.

Tab actions are tabs, new_tab (url), tab_select/tab_close (tab_id), navigate (url), back, forward and reload. Supply top-level tab_id to pin an action or snapshot to a tab; a closed, foreign or inactive target fails instead of silently selecting another. session_id defaults to the connection binding. Agents cannot choose profiles or import credentials; those controls belong to the user in the desktop UI. Opening a tab does not grant authority to act on its site.

Selectors accept CSS/ref strings or {by,value,name?,exact?} objects. by is role, text, label, placeholder, testid or css; name filters roles. Snapshots include owned frame IDs and bounded cross-origin frame contents. Use frames to enumerate, frame with frame_id to select, or frame_id:null to return to the main page. Ref actions route back to their originating frame. Detached frames and covered iframe controls fail instead of targeting another page. dialog accepts response:"status"|"accept"|"dismiss" and optional prompt text. A command returning requires_response has stopped at a dialog; answer it before continuing. The user can also respond in the inspector's Browser tab.

press also accepts Control/Alt/Meta/Shift modifiers; system clipboard shortcuts are excluded. scroll can target an element with selector. appearance takes color_scheme:"system"|"light"|"dark" and optional reduced_motion. resize takes width, height, optional device_scale_factor and mobile; resize_reset restores the inspector browser's viewport. Emulated capture is limited to 16 megapixels. recording_start takes max_seconds (1–180, default 60); recording_stop saves playable WebM into the session workspace and returns its path, name, MIME type and size. No raw video bytes enter agent context. upload takes selector and explicit workspace paths. tabs includes bounded download statuses; download with a completed download_id saves that file to the session workspace and returns its path. Downloads are limited to 16 MB each, four staged files across the desktop; interrupted work fails. Site downloads never choose arbitrary local paths or execute files. Recordings capture the guest only, without audio, at a bounded frame rate/resolution. Treat saved files as untrusted.

Open/action calls wait briefly for desktop acknowledgment. queued means pending, opened means a file or URL was shown, and completed means a browser command returned. A URL being opened does not guarantee the site loaded successfully. Poll preview_request_get for a queued open request. A browser action still queued after the 10-second wait is cancelled as failed, so it never runs late. failed and expired are not success. Delivery is temporary and is lost if the daemon restarts. Screenshots return MCP image content, rather than base64 inside a text result. Queued, failed and expired results set MCP isError; poll the same request rather than repeating a potentially executed action. Disconnect, lease expiry or changing the selected chat fails queued requests. Revocation stops app-controlled pending actions; it cannot undo work already accepted by a website. Revoking or interrupting a pending mutation closes that guest so queued scripts cannot run later. Reload/reopen the tab before continuing; file drafts and profile data remain. A closed target never silently adopts another tab.

Auth ​

The HTTP endpoint uses the same bearer auth as the REST API. When api.secret (or ORC_API_SECRET) is set, send:

http
Authorization: Bearer <secret-or-access-token>

With no secret configured, requests are accepted unauthenticated. To avoid handing out the secret, mint an expiring access token with POST /api/auth/token (see REST API).

Query parameters ​

ParameterExampleEffect
mode/mcp?mode=metameta or full. Overrides mcp.default_mode.
project/mcp?project=my-appScope the connection to one project
projects/mcp?projects=my-app,apiScope to several projects (max 50)

Project names are case-insensitive; unknown names are rejected. Use project or projects, not both. On a scoped connection, tool calls default to the selected project(s); a call naming a project outside the selection fails.

For stdio, orc mcp --mode meta selects the shared discovery and invocation surface. ORC_SESSION_ID (or CLAUDE_CODE_SESSION_ID) attributes tool calls to an agent session.

Client config ​

HTTP:

json
{
  "mcpServers": {
    "orc": {
      "url": "http://127.0.0.1:7700/mcp?project=my-app",
      "headers": { "Authorization": "Bearer <secret-or-access-token>" }
    }
  }
}

stdio:

json
{
  "mcpServers": {
    "orc": {
      "command": "orc",
      "args": ["mcp"],
      "env": {
        "ORC_API_BASE": "http://127.0.0.1:7700",
        "ORC_SESSION_ID": "cursor"
      }
    }
  }
}

Per-agent setup: Connect agents.

Modes ​

Modetools/list returnsDefault
metaSearch, describe, invoke, and sandboxed execution when availableYes (mcp.default_mode)
fullEvery ORC tool with its schema

Meta mode keeps the agent's context small. The agent discovers tools on demand:

Meta toolInputReturns
tool_searchquery? or queries?, limit, scriptable?, connection?Matching native tools plus external Spec tools labeled [external: <connection>]. No query lists the catalog by toolset and the external connections.
tool_describename or names, connection?Descriptions, JSON input schemas and script availability; external tools are labeled.
tool_invokename, arguments?, connection?Runs the tool (or an external Spec tool with connection); arguments are validated against its schema
tool_executecode, timeout_ms?Runs a bounded script and returns its result and logs.

In meta mode a direct call to a real tool name also works, so clients that already know a name skip discovery.

text
tool_search({ query: "create task" })
tool_describe({ name: "task_create" })
tool_invoke({ name: "task_create", arguments: { title: "Fix login redirect", project: "my-app" } })

Code execution in meta mode ​

Use the same tool_search and tool_describe for direct calls and scripts. Pick tool_invoke for a single small result and tool_execute to combine calls or reduce data before it reaches the conversation. Execution is enabled by default for authenticated HTTP and local stdio. Set mcp.code_execution to false to disable it. Conversation-bound connections also serve speak.

Send tool_execute an object with code and an optional timeout_ms. The code is a JavaScript async function body with await and return.

Inside the scriptWhat it returns
await tools.search(query, { limit, offset, connection }){ tools, total, connections } with names, short descriptions and read/write effects. External Spec matches carry connection and external: true; an empty query pages eligible tools and lists external connections.
await tools.describe(name, { connection })Description, input JSON Schema, read/write effect, and output guidance where available. External tools are labeled external: true with their connection.
await tools.call(name, args, { connection })A JSON value or plain text from ORC, or from an external Spec connection when connection is set. MCP tool errors reject the promise.
js
const [tasks, jobs] = await Promise.all([
  tools.search("list active tasks"),
  tools.search("list jobs"),
]);
const names = [tasks.tools[0].name, jobs.tools[0].name];
const definitions = await Promise.all(names.map(name => tools.describe(name)));
const results = await Promise.allSettled(definitions.map(tool => tools.call(tool.name, {})));
return Object.fromEntries(results.map((result, index) => [
  names[index],
  result.status === "fulfilled" ? String(result.value).split("\n").slice(0, 3) : "Unavailable",
]));

The result is { result, logs, truncated }, with matching text for clients that use MCP text content. Each run starts in a fresh QuickJS WASM worker. The script has no host filesystem, environment, network, or package APIs. ORC checks every call against script eligibility and the connection's existing project and tool permissions. Use tool_invoke for direct-only operations such as browser actions and launching jobs.

ORC's native tools and external Spec connections share one discovery surface. tool_search (and in-sandbox tools.search) also queries every enabled Spec connection in parallel and merges the matches, labeled [external: <connection>] and carrying a connection field; results list the available external connections too, so external catalogs are visible even when nothing matches. Spec connections are external OpenAPI/MCP/GraphQL servers, not ORC built-ins, and their results are untrusted external data. Pass connection to tool_search, tool_describe, or tool_invoke (or { connection } inside a script) to target one connection directly; the spec_list, spec_tools, spec_describe, and spec_invoke bindings remain available for direct use. Calls reuse the connection's tool filters and usage policies, and external writes may have external side effects. An OpenAPI tool that returns a page provides its HTML in body, so a script can return just the title. The catalog is available to unscoped authenticated HTTP and local stdio meta clients; project-scoped connections expose project tools and authorized preview data only.

js
const page = await tools.call("getPage", {}, { connection: "docs" });
return page.body.match(/<title[^>]*>([^<]*)<\/title>/i)?.[1] ?? null;

Independent calls can overlap up to four at a time within a run. Writes run exclusively in that run. A timeout or cancellation stops the script and discards queued calls. Dispatched operations can finish and writes can already be committed, so check their state before retrying. Tool results are untrusted data even when the script filters them.

Execution defaults to 15 seconds and accepts 100 to 25,000 milliseconds, with a 64 MiB guest heap and 64 bridge requests per run. A bridge result can be up to 512 KiB, with a 4 MiB cumulative budget. A result larger than 8,192 characters or above the JSON complexity limit is replaced by null with truncated: true. Up to 16 log lines of 256 characters each are returned.

Prompts ​

The server also lists MCP prompts defined in Settings → Agents → MCP (API: GET/PATCH /api/settings/mcp). Each prompt accepts one optional argument, request.

Calling tools over REST ​

Hook scripts and other non-MCP clients run any tool with:

bash
curl -s -X POST http://127.0.0.1:7700/api/mcp/tool \
  -H "Authorization: Bearer $ORC_API_SECRET" -H "Content-Type: application/json" \
  -d '{"name":"context","args":{"project":"my-app"}}'

The response is { "result": "<tool text>" }.

Tools ​

Start each session with context.

Core ​

ToolDescription
contextCompact context index: active tasks and the project's memories by priority
searchSearch knowledge base documents first, then memories and tasks
project_listList all projects
project_createCreate a project: unique name, optional description, status, tags and git_remote_url; returns the stable id, name and a UI link

Reuse or create a project, then store project-scoped data ​

text
project_list({})                                       // does a fitting project already exist?
project_create({ name: "my-app", description: "Shop rewrite" })   // only when none matches
memory_create({ project: "my-app", name: "api-port", description: "Dev API port", content: "7701" })

Names are unique case-insensitively: a duplicate project_create fails with a conflict that names the existing project's id, and a retry never creates a second one — reuse the reported id. project_create needs an unscoped connection; a URL that selected project/projects (see Query parameters) can read its chosen projects but cannot create new ones.

Memory ​

ToolDescription
memory_listList the project's memories (name, description, priority, reads)
memory_readRead a memory by name
memory_createSave a short project fact worth knowing next session
memory_updateUpdate a memory's description, content or priority
memory_deleteDelete a memory that is wrong or no longer useful
memory_historyChanges to a memory, newest first, with before/after state
memory_revertRestore the state from before a change

Tasks ​

ToolDescription
task_listList active tasks as a compact index
task_getFetch task details by IDs: status, progress, git links, body, latest comments
task_createCreate a task
task_updateUpdate status, fields or git links, or add a comment
task_batch_createCreate several tasks with dependency links atomically
task_linkList, add or remove links between tasks (blocks, blocked_by, relates_to, duplicates, clones, subtask_of, parent_of)

Flows ​

See Task flows.

ToolDescription
flow_listList flow graphs (built-in and user)
flow_readRead a flow definition: nodes, edges, limits, entry point
flow_createCreate a reusable user flow from JSON
flow_attachAttach a named flow or an inline graph to a task
flow_statusActive nodes, outcome ledger, visit counts and halt reason of a task's run
flow_reportReport your outcome as a flow node

Goals ​

See Task flows → Goals.

ToolDescription
goal_createStart a goal: ORC loops a worker and an external check until it passes, within a budget
goal_statusLive status by goal id or task id: iteration, stage, stall, tokens, last check and check history
goal_stopStop a goal's flow and mark it stopped

goal_create takes objective, check (shell command, exit 0 = met), optional metric_pattern, agents (ladder order), iterations/tokens/hours budget, stall_limit, skill, project, and task to attach to an existing task. Project-scoped MCP sessions can only create and read goals inside their scopes.

Knowledge bases ​

ToolDescription
kb_listKnowledge bases visible from the project, with document counts and edit rights
kb_searchSearch documents (exact title/path, full-text and vectors, fused)
kb_evidenceBudgeted evidence pack of cited passages for a question
kb_readRead a document (whole, one section, a line range) or a passage by citation handle
kb_documentsList documents in a knowledge base
kb_writeCreate a Markdown document or fully replace one
kb_documentChange one document
kb_manageCreate, update or delete a knowledge base
kb_commentComments on a KB or document: requests, corrections, sources to digest
kb_digestManage the digest agent that keeps a KB current
kb_maintenanceUpkeep queue: stale derived documents, failed files, broken links
digest_completeFinish an assigned digest run

Skills ​

See Skills.

ToolDescription
skill_listList installed skills (built-in and user)
skill_readRead a skill by name, a supporting file with ref, or a signed download with download: true
skill_createCreate a user skill folder with SKILL.md and optional supporting files
skill_updateUpdate effective SKILL.md instructions
skill_file_writeEdit or add a supporting text file of a user skill
skill_historyInstruction change history
skill_revertRevert a skill change

Agents and packages ​

See Reusable agent packages.

ToolDescription
agent_listDiscover shared APM .agent.md profiles
agent_readRead a profile: original YAML/Markdown, role, model, tools, handoffs
agent_createCreate a shared, validated .agent.md definition
agent_updateReplace an agent definition
agent_deleteDelete an agent definition
agent_package_listList shared OpenAPM and Agent Plugins packages
agent_package_readRead a package manifest and file inventory, or one file with ref
agent_package_importImport an intact package
agent_package_updateReplace a package's manifest and file set
agent_package_deleteRemove a package from the shared catalog

Jobs ​

ToolDescription
job_listList jobs with enabled state, trigger, run count and ID
job_runTrigger a job by name
job_statusRun status, exit code and error; logs: true adds output

Sessions ​

See Session handoff and Live sessions.

ToolDescription
session_eventRecord a session event (file edit, decision, error, git op)
session_snapshotBuild a ≤2KB XML snapshot of current session state
session_restoreRestore session state after compaction or restart
session_logLog a session summary after a unit of work
session_handoffMove a Claude Code or Codex session to ORC
session_sendSend a note to another session: queue (next safe point), steer (into its running turn) or interrupt (stop the turn, deliver next)
speakSay a short line to the user: posted to the chat and spoken when voice mode is on. Needs a conversation-bound connection; auto-approved
session_startStart a headless child session with a prompt; returns its id at once
session_statusA started session's status, last reply, queue, parent and children
session_waitBlock until one or several started sessions stop running, wait for a human, or reply
session_listList the sessions this session started
session_stopStop a started session's turn and, by default, the sessions it started
session_searchSearch archived and indexed session passages
session_readRead a cited archived-session passage or a page of turns
session_syncRequest a one-hour upload capability for local session sync

Scratchpads ​

ToolDescription
pad_listList scratchpads: Markdown docs, Excalidraw diagrams, HTML pages
pad_getRead a scratchpad's header and raw file
pad_createCreate a scratchpad
pad_updateUpdate a scratchpad
pad_deleteDelete a scratchpad

Human requests ​

See Human requests and Command requests.

ToolDescription
human_requestAsk the user a question, an approval or a reviewed command
human_request_getRead a request's state and answer
human_request_acknowledgeAcknowledge an answer after consuming it
command_requestAsk the user to run a command

Channels ​

ToolDescription
channel_listConfigured channels, readiness and capabilities
channel_targetsApproved destinations and aliases such as me
channel_sendSend a message through a channel
channel_message_getInspect a delivery receipt
channel_message_updateEdit an accepted message

Audit ​

ToolDescription
audit_listReview audit entries (knowledge, task, job, rule, settings, terminal, auth), optionally by entity_type or session_id

Released under the MIT License.