agent-runtime-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-runtime-mcpshow me my active tmux channels and their latest output"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-runtime-mcp
A generic MCP communication layer for already-existing interactive terminal Channels, with tmux as the first backend.
Product surface
The current MCP server exposes exactly:
list_channels
get_channel
read_channel
write_text
send_control
healthThe product owns the MCP capabilities and Channel semantics behind those tools.
It does not decide what a terminal represents.
A Channel may contain Codex, another Agent CLI, a shell, a REPL or any other interactive program.
Related MCP server: Terminal MCP Server
Boundary
Inside product:
MCP tool/schema contract
backend-neutral Channel model
existing-Channel discovery
bounded output read
bounded ordinary-text write
explicit ENTER / INTERRUPT / ESCAPE
backend/service health
structured Channel/backend errors
tmux scope enforcementOutside product:
Worker / Agent / Task semantics
workflow scheduling / review / recovery
worktree / branch / PR lifecycle
tmux session/pane lifecycle
process startup/restart
application completion interpretation
deployment / tunnel / proxy
TLS / DNS / firewall
workspace/client authorization policy
provider credentials / host administrationDeployment is intentionally separate: agent-runtime-mcp is responsible for MCP capability, not how an operator makes the MCP process reachable.
Current implementation
The server currently runs over stdio.
Requirements:
Node.js 20 or newer;
npm;
tmux available to the service account.
Install and verify:
npm ci
npm run typecheck
npm test
npm run test:integration
npm run test:discovery
npm run test:dogfoodtest:discovery is the official-client regression for public stdio health/discovery. test:dogfood drives the complete six-Tool public MCP flow against an externally prepared disposable tmux + bash --noprofile --norc endpoint, including marker observation, INTERRUPT, post-control reuse, external destruction and no-recreation failure proof.
Build and run:
npm run build
npm startPrepare tmux externally
The MCP never creates panes. Prepare terminal endpoints with native tmux or another upper layer, for example:
tmux -L agent-runtime new-session -d -s demo
TMUX_SOCKET_NAME=agent-runtime npm startOptional backend configuration:
TMUX_SOCKET_NAME
TMUX_SOCKET_PATH
TMUX_ALLOWED_SESSIONS
TMUX_TIMEOUT_MS
TMUX_MAX_CHANNELS
TMUX_READ_DEFAULT_LINES
TMUX_READ_MAX_LINES
TMUX_READ_MAX_BYTESSafe input contract
write_text transports bounded ordinary Unicode text as data.
LF and TAB are allowed;
other Unicode
Cccontrols are rejected;caller text never becomes shell command syntax or caller-controlled tmux key grammar;
each call has a hard 1 MiB UTF-8 maximum;
submit=trueadds one explicit Enter only after text delivery succeeds.
send_control accepts exactly:
ENTER
INTERRUPT
ESCAPEMutation success means mechanical terminal transport only, not application success. Mutations are non-idempotent and are not blindly retried after ambiguous timeout.
Health contract
health reports only backend/service mechanical health:
backend_kind
available
detail?Health does not mean a Channel exists or that a foreground application/Agent/Task is ready.
Example composition
An upper layer may do:
prepare endpoint externally
→ list_channels
→ get_channel
→ read_channel
→ write_text
→ send_control when explicitly needed
→ interpret application result outside MCPThat is the key architectural split:
upper layer = lifecycle + meaning + workflow control
Channel MCP = communication capability onlyDocumentation
Product contract:
docs/requirements.mddocs/channel-architecture.mddocs/channel-model.mddocs/mcp-contract.mddocs/backends/tmux.mddocs/security.mddocs/technology-stack.mddocs/mvp-plan.md
docs/deployment.md documents the non-product deployment boundary only.
Repository development process:
AGENTS.mddocs/tasks/
The repository workflow and deployment environment are both separate from the public MCP capability model.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for tmux operations that provides comprehensive control over tmux sessions, windows, and panes.1
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to spawn, interact with, and orchestrate multiple concurrent terminal sessions via tmux.
- AlicenseNot gradedqualityAmaintenanceEnables MCP clients to launch and interact with terminal/TUI programs, providing tools to inspect and control live CLI/TUI sessions.321Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides persistent interactive shell sessions via pseudo-terminals for MCP agents, enabling bidirectional communication, incremental reads, and stateful command execution across steps.26MIT
Related MCP Connectors
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Workflow diagnostics, capability routing, and x402 settlement for MCP-compatible agents.
Telegram bridge for your MCP-compatible agent. Bidirectional, no LLM in our stack.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/liqiangcc/agent-runtime-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server