Agent gateway and MCP
Elyra Workspace includes a small MCP server. Through it, agents can work with Elyra's threads. One agent can split a job into parts, start a thread for each, wait for them and collect the results. Other apps such as Claude Desktop or Codex can also control Elyra.
The server listens only on your own machine (127.0.0.1). Every caller needs a
token, and every call is written to an audit log. The address is shown in
Settings → Agents & MCP.
Tools
| Tool | What it does | Read-only clients |
|---|---|---|
symbols |
Where a function, method, class or type is defined and who calls it, from a tree-sitter index of the project (Rust, TypeScript, JavaScript, Python, Go, PHP, C, and Vue, Svelte and Blade templates); in the agent's own folder, or a named project or thread | ✓ |
why |
Why a line is there: the thread and message that had an agent write it, when, what the agent said afterwards, and whether a person has read it, plus git blame | ✓ |
ask_author |
Ask the agent that wrote a line why: a read-only side chat with that agent (same provider and model) picked up where the turn that wrote it ended, with what the turn changed and the code around the line now; waits for its answer and returns it (Ask why) | |
error_origin |
The Laravel app's latest logged errors, each with the line in the app's own code it failed on and the instruction that had an agent write it (Laravel Boost) | ✓ |
history |
The turns that wrote a file or a symbol (thread, message, agent, date), newest first, plus the file's git log | ✓ |
intent_board |
What other agents changed in the same repository during the last hour: thread, agent, same folder or another branch, file and the functions they changed (see Agents side by side) | ✓ |
undo_instruction |
Take back one earlier instruction in a thread: what its turn changed is undone, later work stays, and files that changed again are listed (Undo an instruction) | |
restack_preview |
How the branch would read as one commit per instruction: the new commits, the ones they replace, and whether those are pushed (Restack by instruction) | ✓ |
conflict_context |
When a merge left conflicts: each conflict with both sides and the instruction (message, thread, agent) behind each side (Merge conflicts) | ✓ |
who_broke_it |
When the checks fail: the earlier instruction whose turn made them fail, found by running the check command against the folder's earlier states in a temporary checkout (Who broke it?) | ✓ |
changes_by_instruction |
What the current branch adds compared with main, grouped by the user message that had an agent write it (thread, agent, date, checks, files), and the lines no agent wrote (What this branch does) | ✓ |
search_threads |
Full-text search over every thread's messages, tool calls and tool output, best match first and grouped by thread, optionally for one project or with archived threads (Search threads) | ✓ |
list_projects |
Projects with id, name and path | ✓ |
list_threads |
Threads with status, optionally for one project and including archived ones | ✓ |
read_thread |
The conversation of a thread (most recent part) | ✓ |
wait_for_thread |
Wait until a thread finishes its turn or needs input, then return its status and last reply (default 10 minutes, at most 1 hour) | ✓ |
create_thread |
Start a thread in a project with a first message; optionally provider, model, title and a new worktree | |
send_message |
Send a message to a thread (queued if it's busy) | |
interrupt_thread |
Stop a thread's running turn | |
set_thread_title |
Rename a thread | |
archive_thread |
Archive a thread | |
propose_automation |
Propose an automation, on a schedule or when something happens, as a card in the agent's own thread; it is created only if you accept it (agents in threads only) | |
start_duel |
Start a Red vs. Blue duel on a requirement: one agent writes failing tests, another the code with them locked | |
challenge_test |
For Blue in a duel: challenge one of Red's locked tests; Red answers and may change it (at most three per duel) | |
propose_invariant |
Propose an invariant, a check Elyra runs after every turn (a glob and a regular expression the files must or new lines mustn't match, or a command), as a card that tries it on the code; saved only if you accept it (agents in threads only) | |
schedule_followup |
Come back to the agent's own thread later with a message to itself, at most three waiting, 5 minutes to 7 days ahead (Follow-ups; agents in threads only) | |
browser_open |
Open a local development page in a thread's browser | |
browser_snapshot |
The page's structure as an outline of its elements and text | ✓ |
browser_query |
Elements matching a CSS selector, with position, size and computed styles | ✓ |
browser_console |
What the page wrote to the console since it loaded | ✓ |
browser_network |
The page's fetch and XHR calls (status, timing, start of the body) and the files it loaded | ✓ |
browser_screenshot |
A picture of the page (the Browser tab must be on screen) | ✓ |
browser_reload |
Reload the page | |
browser_click |
Click an element by CSS selector or visible text (asked the first time) | |
browser_fill |
Fill in a field by selector, label or placeholder; selects and checkboxes too (asked the first time) | |
browser_press |
Press a key; Enter in a form field submits it (asked the first time) | |
browser_wait |
Wait until an element or a text appears (at most 60 seconds) | ✓ |
browser_save_journey |
Save the flow just walked through (or given steps) as a journey in the project | |
browser_run_journey |
Replay one journey, or all, and report the step that failed (asked the first time) | |
browser_list_journeys |
The project's journeys and their steps | ✓ |
Projects can be named by id, name or path. A thread can't wait for, interrupt or archive itself.
why, history, error_origin and ask_author work from what Elyra Workspace records after every turn:
the lines the turn added, with its thread and message. That covers every agent,
also when it committed on its own; lines written by hand or before the record
started have git's blame and log only. The record stays on this Mac (in Elyra
Workspace's database), nothing is added to commits.
symbols gives every agent (Claude Code, Codex, Elyra, Pi, ACP agents) a
tree-sitter index of the project: definitions with their signatures and
references with the function they're in, as file:line, so an agent reads only
the lines it needs instead of grepping. The index is built the first time
(about three seconds for a few thousand files), follows .gitignore, is
refreshed incrementally afterwards, and is kept in ~/.elyra/index, not in the
project.
The browser tools work on the caller's own thread; other clients pass
thread_id. They only open and read pages served from this Mac (localhost,
127.0.0.1, *.test, *.local and similar); see Browser.
Letting agents manage threads
Turn on Settings → Agents & MCP → Let agents manage threads. Agents started
afterwards get the tools above as an MCP server named elyra. In Claude Code they
appear as mcp__elyra__….
- Supported by Claude Code, Codex, Elyra (0.9.46 or later) and ACP agents. Pi can use MCP servers through an extension with its own configuration, but doesn't get the gateway from Elyra Workspace yet.
- With Elyra 0.9.47 or later the gateway's tools are there from the first message
of a thread. With 0.9.46 Elyra registers them in the background, so an agent may
have to reach them through
mcp_searchandmcp_callfirst. - Tool calls follow the thread's permission mode like any other tool. In Ask for approval mode you approve each one.
- An agent may read any thread, but the first time it messages, stops, renames
or archives another thread, or opens, reloads or clicks and types on a page
in its browser, Elyra asks you: Don't allow, Allow once or
Always allow. Always remembers that pair of threads; Settings → Agents &
MCP → Agents changing other threads shows how many are remembered and forgets
them. Threads an agent started with
create_threadare its own, so it isn't asked about those. Paired clients such as Claude Desktop aren't asked: pairing them was the permission. - Each agent gets its own token, which only lasts while Elyra is running.
Example prompt:
Split the migration into three parts. For each, create a thread in this project with a worktree, then wait for all three and summarize what each did.
The gateway is off by default, because agents that start other agents can use a lot of tokens quickly.
Connecting Claude Desktop, Codex or Claude Code
Under External clients in Settings:
- Press Pair read-only client or Pair full-access client. Read-only clients can list, read and wait, but not change anything.
- Use the copy buttons on the new client:
- Copy Claude Desktop config: JSON for
claude_desktop_config.json - Copy Codex config: a block for
~/.codex/config.toml - Copy Claude Code command: a
claude mcp add …command to run in a terminal
- Copy Claude Desktop config: JSON for
- Paste it, and restart the client if it needs that.
Claude Desktop and Codex start Elyra's built-in bridge, which passes their requests to the running app:
"/Applications/Elyra Workspace.app/Contents/MacOS/elyra" mcp-bridge <url> <token>
Elyra Workspace must be running for this to work. The server's port is kept between launches, so pasted configs keep working.
Revoke (trash icon) removes a client; its token stops working at once. The list shows when each client was last used.
Audit log
Activity in the same Settings page lists the latest calls, newest first: time, caller (a client's name, or agent: thread title), tool, arguments, and whether it succeeded. Elyra keeps the latest 5,000 entries.