mtl-agents-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mtl-agents-mcp
MCP server that lets local Claude Code and Codex sessions see and message each other.
You run Claude Code in one terminal and Codex in another. Each one only knows its own session. With this server, any session can ask "what did the Codex review find?" or "how far is the migration in the other Claude session?" and get an answer.
Features
list_sessions: recent Claude Code and Codex sessions, with title, folder and whether they are running.read_session: the last messages of a session (text only, no tool calls). Cheap and read-only.ask_session: send a question to another session and wait for the answer.
How ask_session delivers a message:
Target | Running | Closed |
Codex |
|
|
Claude Code | inbox file, picked up by a hook on its next turn |
|
An idle Claude Code session only answers after someone types in it. A busy one answers when its current turn ends.
Related MCP server: claude-intercom-mcp
Quick Start
Prerequisites
Python 3.10+ and Poetry
Claude Code and/or Codex CLI (
codex queueneeds a recent Codex version)jqfor the hook install scriptmacOS or Linux
Installation
git clone https://github.com/msmenzyk/mtl-agents-mcp.git
cd mtl-agents-mcp
poetry installRegister the server in Claude Code:
claude mcp add -s user mtl-agents -- bash -c "cd $PWD && poetry run python -m mtl_agents_mcp"Register it in Codex (~/.codex/config.toml, use your real path):
[mcp_servers.mtl-agents]
command = "bash"
args = ["-c", "cd /path/to/mtl-agents-mcp && poetry run python -m mtl_agents_mcp"]
tool_timeout_sec = 300Install the inbox hook, so running Claude Code sessions can receive messages. It adds
itself to UserPromptSubmit and Stop in ~/.claude/settings.json and keeps a backup:
./hooks/install_claude_hook.shRestart your sessions so they load the new tools.
Usage
In any Claude Code or Codex session:
Use mtl-agents to list my running sessions.
Read the last 5 messages of the Codex session "Review the login flow".
Ask the Claude session in my-api how many tests still fail.Where it reads from
Claude Code:
~/.claude/projects/*/*.jsonl, running sessions from~/.claude/sessions/<pid>.jsonCodex:
~/.codex/sessions/**/rollout-*.jsonl, titles from~/.codex/session_index.jsonl. A Codex session counts as running when its log changed in the last 15 minutes.Inbox for Claude Code:
~/.agents/inbox/<session-id>/
These are internal formats of both tools and can change between versions. If a tool update breaks parsing, please open an issue with your versions.
Development
git clone https://github.com/msmenzyk/mtl-agents-mcp.git
cd mtl-agents-mcp
poetry install
poetry run pytest
poetry run ruff check . && poetry run ruff format --check .Tests use fake session stores in a temp folder and never touch your real sessions.
Contributing
Contributions are welcome! Please read CONTRIBUTING.md before submitting a PR.
Security
This server reads every session transcript of your user, and ask_session can start agent
runs in other projects. Read the threat model in SECURITY.md. To report a
vulnerability, see the same file.
License
This project is licensed under the MIT License. See LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code instances to discover and communicate with each other across different sessions, supporting peer-to-peer messaging and coordination.33 npmMIT
- AlicenseAqualityCmaintenanceEnables local messaging between Claude Code, Codex, Pi, and other coding-agent sessions on the same machine, allowing them to discover each other, send updates, ask questions, and reply.819 npm3AGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables local discovery, reading, and messaging between running Codex and Claude Code sessions through MCP.216 npmMIT

tincanofficial
AlicenseAqualityAmaintenanceEnables live Claude Code and Codex sessions on the same machine to send each other text messages directly. It provides peer discovery, message sending, and a shared message log through MCP tools.5108 npm1MIT