Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REX_BIN_DIRNoFallback parent directory used to locate the `rex` executable when `REX_MCP_BINARY` is not set.
REX_MCP_BINARYNoPath to the `rex` executable. `REX_BIN_DIR` is used as a fallback parent directory.rex
REX_MCP_WAIT_MAXNoWait ceiling in milliseconds for `wait` calls.90000

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
rex_skillA

Read the installed Rex CLI guide verbatim (about 20 KB). Read this before the first rex call; it documents commands, targets and flags for the installed Rex version.

rexA

Run the rex CLI against the local Rex server. This bridge runs outside any Rex terminal, so there is no default session or block: scope every call explicitly. Discovery: list (sessions), then block ls -s SESSION or session inspect -s SESSION. Act: capture -b BLOCK reads a terminal screen; send or send-key types into a terminal and needs an explicit target (-b BLOCK, -w WINDOW or -s SESSION); run -s SESSION -- CMD starts a command in a new block, with --wait to block until it exits (its exit status becomes the call's exit status) and --keep-open to keep the block for capture afterwards; wait TARGET blocks until a block, window or session ends, capped at 90000 ms; help shows syntax; rex_skill reads the full guide. To run a command and read its output: run -s SESSION --wait --keep-open -- CMD, then capture -b BLOCK. On wait_timeout, capture the target (a reply may already be on screen) and repeat wait with the same target if the exit status is still needed; otherwise carry on and check back later. send confirms typing, not that a command finished. Supply exactly one of args (array of strings) or command (quote-only string). Disabled here: do (Lua), events, kill, cp, forward, new, split, focus, zoom, move, swap, resize, actions, keymap, version, home, hosts, config, server, login-server, skill; inside the allowed verbs, block new/close/focus/zoom/move/swap/rename/stream/call and api call; and -S server routing, because this bridge drives the local Rex server only.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.4/5.0

Scored across 2 tools

Disambiguation4/5

The two tools are mostly distinct: rex executes CLI commands and rex_skill reads documentation. There is minor overlap in that rex's own `help <command>` verb and rex_skill both serve a discovery purpose, but the guidance to read rex_skill before the first call makes the boundary clear enough.

Naming Consistency4/5

Both names share the `rex` prefix and use snake_case, forming a coherent family. The bare `rex` is a noun rather than a verb_noun action name, which is a minor deviation but predictable for a CLI passthrough.

Tool Count3/5

Two tools is thin for a surface that spans sessions, blocks, capture, send, run, and wait; the entire domain is funneled through one heavily overloaded `rex` tool with dozens of hidden verbs and flags. Each tool does earn its place, but discoverability suffers with only an execution tool plus a docs tool.

Completeness3/5

Core agent workflows (list sessions, inspect, capture, send, run, wait) are covered, but a long list of verbs is explicitly disabled: no session creation (`new`), no `kill`, no events, no window/focus/move management, and no block lifecycle beyond new/close/focus. Agents cannot create or tear down sessions or subscribe to events, which are notable gaps for a terminal-bridge domain.

Maintenance

ActivityNo data
ResponsivenessOutdated data