Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CONTROL_MCP_HAS_CREDNoSet to "1" to declare that a credential exists when it cannot be resolved from config or from Windows Credential Manager (cmdkey).
CONTROL_MCP_PW_<HOST>NoSecret naming convention for a host's password: CONTROL_MCP_PW_<HOST>. Resolved before any inline password; preferred over storing secrets in the config file.
CONTROL_MCP_CONFIG_PATHNoPath to the control-mcp TOML config file. Overrides the per-user default location (%APPDATA%\control-mcp\config.toml on Windows); an explicit path wins, otherwise the per-user default is used. If the config is missing or invalid, the server starts with zero hosts and host-scoped tools answer CAPABILITY_UNAVAILABLE naming the offending path.
CONTROL_MCP_DISABLE_MAINNoWhen set, the entry point is disabled so importing src/index.ts does not call main() and open the stdio server (used by the test suites).

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
host_listA

List configured hosts (name, address, os, alternate addresses, declared capabilities, ssh user, rdp configured flag) and never any secrets; answers CAPABILITY_UNAVAILABLE when control-mcp started without a valid config.

host_statusA

Probe one host over every configured interface (ping, tcp/22, tcp/3389, Windows RDP policy) and report the honest verdict for each transport, including the exact reason RDP is refused; run this before any RDP tool when you do not know why a box is unreachable.

execA

Run a shell command on a host over SSH and report stdout/stderr/exit code/truncation; commands that would stop the service carrying the live transport are refused with TRANSPORT_SEVERED_RISK unless override is "sever-transport".

admin_execA

Run a command over SSH expecting administrator effect. Elevation is NOT faked or added: control-mcp runs the command on the same SSH connection and first measures the effective privilege of that account (Windows: whether the sshd token carries the High mandatory label S-1-16-12288; Linux: whether uid is 0). If the account is not privileged the command still runs with whatever rights it has and access-denied comes back from the target. Same safety gate as exec; there is no runas/UAC wrapper.

shell_openB

Open a persistent interactive shell session on a host over SSH and return its session id; auth or network failures are reported honestly (AUTH_FAILED/HOST_UNREACHABLE).

shell_runA

Run one command inside an open shell session (it keeps cwd and env); unknown or dead session ids fail with SESSION_GONE, and the safety gate applies like exec.

shell_listA

List open shell sessions (id, host, open/closed) so ids can be found and reused; an empty list honestly means none are open.

shell_closeA

Close an open shell session by id and free its channel; returns SESSION_GONE when the id is unknown or already closed.

file_uploadA

Upload a local file (absolute path) to a remote path on a host over SFTP and report byte counts; auth/network failures appear as AUTH_FAILED/HOST_UNREACHABLE. Refuses an existing remote destination unless overwrite:true.

file_downloadB

Download a remote file to an absolute local path over SFTP and report byte counts; missing remote files fail with REMOTE_ERROR. Refuses an existing local destination unless overwrite:true.

file_listB

List a remote directory over SFTP (name, size, mode, mtime); missing directories fail with REMOTE_ERROR.

net_pingB

Ping an address from this machine and report whether it answers; a pure local network probe that needs no host config.

net_probe_tcpA

Open a TCP socket to address:port and report whether something listens there (22 = ssh, 3389 = rdp); timeout/error strings explain refusals.

wol_wakeA

Send the Wake-on-LAN magic packet for a MAC address over the LAN and report per-interface send results. Without an explicit broadcast target it fans out to every IPv4 interface's directed broadcast plus 255.255.255.255; malformed MACs fail with BAD_ARGS.

arp_tableA

Read this machine ARP route cache (address to MAC) so MACs and addresses can be cross-checked; an empty table honestly means the arp command yielded nothing parseable.

cdp_discoverA

Listen with a raw-socket CDP listener on a network interface (Get-NetAdapter InterfaceIndex) for Windows CDP neighbor frames up to timeoutMs; an empty result honestly means no neighbors were observed, and a listener that cannot run fails with REMOTE_ERROR.

rdp_connectB

Create or inspect an MsRdpEx RDP control session for a host (action: connect/disconnect/status); headless connect fails against MsRdpEx on this box, so status honestly reports the real last error and never fakes success.

rdp_screenshotA

Capture the RDP window (found by class "AxHostWindow", else the hwnd rdp_connect recorded) to an absolute PNG path via PrintWindow and write it with fs; fails with BAD_ARGS on hosts where rdp_connect never connected or no window is open -- run host_status first.

rdp_clickB

Send mouse-click window messages (WM_*) to the RDP control window, which forwards them to the remote desktop; BAD_ARGS when no window exists for this host.

rdp_keyB

Send key window messages to the RDP control window: key is a VK name (ENTER, LEFT, F1, ...) or vk is a number, with optional modifiers for a hotkey; fails BAD_ARGS when no window is found.

rdp_typeB

Type text into the RDP control window via WM_CHAR window messages (the control forwards them to the remote desktop); BAD_ARGS when no window exists.

monitor_startA

Start polling a host's system log (Windows event log critical/error/warning via Get-WinEvent; journald priority<=3 on Linux) every intervalMs. The first poll only baselines existing records and emits nothing, so only events occurring while watched are reported. Events reach the caller by monitor_events drains (poll-based, never push): an MCP client calls monitor_events periodically and any drained events are returned there. Re-calling start() for a watched host is a no-op.

monitor_stopA

Stop polling a host's system log; queued undrained events are dropped.

monitor_listA

List hosts currently watched by the system-event monitor; empty means none.

monitor_eventsA

Drain and clear queued system events (critical/error/warning) from all watched hosts or one host; returns immediately, possibly empty -- call it on your own cadence to poll. This is how monitored log events reach the caller: no push exists over stdio MCP.

adb_statusA

Probe the local adb CLI (Android Debug Bridge) and list connected devices with serial/state/model; honestly reports adb not installed as available=false rather than failing.

adb_execA

Run a shell command on an adb-connected Android device (adb -s shell); returns stdout/stderr/exit; timeouts kill the adb child.

adb_screencapA

Capture the Android device screen to an absolute local PNG path (screencap -p streamed via exec-out); validates the PNG signature before writing.

adb_tapC

Tap the Android device screen at (x,y) via input tap.

adb_swipeC

Swipe the Android device screen from (x1,y1) to (x2,y2) over durationMs via input swipe.

adb_typeB

Type text into the Android device via input text; restricted to [A-Za-z0-9 ._-] (spaces become %s) so no control characters can reach the shell.

adb_rootB

Restart adbd as root on an Android device (adb root); honest about devices that refuse (production builds, verified boot).

host_rebootA

Reboot a LAN host over its transport (windows: shutdown /r /t 5, linux: systemctl reboot); it refuses unless confirm is exactly "yes" and refuses any host whose address matches this machine, because these power ops are loud by design.

host_shutdownB

Power a LAN host off over its transport (windows: shutdown /s /t 5, linux: systemctl poweroff); it refuses unless confirm is exactly "yes" and refuses any host whose address matches this machine, because powering the wrong box off is only reachable by rebooting it on site.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 34 tools

Disambiguation4/5

Most tools are clearly separated by resource and transport: shell, file, RDP, ADB, monitoring, network probes, and power operations form distinct clusters. The main overlap is between exec/admin_exec/shell_run and between host_status/net_ping/net_probe_tcp, though the descriptions give usable guidance for choosing among them.

Naming Consistency4/5

Names are overwhelmingly snake_case and use predictable domain prefixes such as shell_, host_, file_, rdp_, adb_, net_, and monitor_. There are minor deviations like the bare exec and action-oriented names such as admin_exec, but the overall convention is easy to infer.

Tool Count2/5

The server covers several large domains, which explains some breadth, but 34 tools is heavy and exceeds the practical well-scoped range. Several clusters could be consolidated or parameterized further, even though most individual tools have a real purpose.

Completeness4/5

The surface covers core remote-control workflows well: host inventory/status, SSH command execution and sessions, file transfer, RDP interaction, monitoring, ADB control, network discovery, and power operations. Minor gaps remain, such as file deletion/mkdir and Android app install/uninstall, but agents can often work around them through exec or adb_exec.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues