Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REX_MCP_HOSTNoThe listen address.127.0.0.1
REX_MCP_PORTNoThe listen port.8787
REX_MCP_TOKENNoOptional static token for the path or a Bearer header. At least 32 characters from A-Z a-z 0-9 _ -.
REX_MCP_CONFIGNoA JSON file. See rex-mcp.example.json../rex-mcp.json if it exists
REX_MCP_SERVERSNoFixed servers as name=endpoint,name=endpoint.
REX_MCP_DISCOVERNo1 adds each tailnet device with a name that ends with the suffix.on when no servers are configured
REX_MCP_STATE_DIRNoWhere OAuth clients and token hashes are kept../state
REX_MCP_PUBLIC_URLNoThe public URL, such as https://mcp.example.com. Turns on OAuth.
REX_MCP_SOCKS_PROXYNoA SOCKS5 proxy for Rex connections, such as socks5h://127.0.0.1:1055 for tailscaled in userspace mode.
REX_MCP_TRUST_PROXYNoWhich reverse proxies to trust for client IPs (the Express trust proxy setting).loopback
REX_MCP_CLIENT_LABELNoThe client name that Rex shows.rex-mcp@<hostname>
REX_MCP_OWNER_SECRETNoThe secret that the OAuth approval page asks for. At least 16 characters. Required with REX_MCP_PUBLIC_URL.
REX_MCP_DISCOVER_SUFFIXNoThe device name suffix of Rex servers.-rex

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources