Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
--hostNoHost to bind when using the streamable-http transport, e.g. 127.0.0.1.
--portNoPort to bind when using the streamable-http transport, e.g. 8765.
--configNoPath to an optional config.yaml listing devices and connector settings.
--transportNoTransport to use. Use streamable-http for a network server; the default command registration uses stdio.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Multi-purpose personal toolbox.

  • ssh_* tools: Linux boards and servers (Raspberry Pi, Jetson, ...). Start with ssh_list_targets.

  • adb_* tools: Android devices and adbd-enabled boards. Start with adb_devices. Prefer *_board_info / adb_device_info to get an overview before running ad-hoc commands.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ssh_list_targetsA

List SSH targets: devices from the misc-mcp config, Host aliases from ~/.ssh/config, and currently open connections. Any of these names can be used as target in other ssh_* tools, as can a plain [user@]host[:port] string.

ssh_execA

Run a shell command on a remote host and return exit_code, stdout and stderr.

The command runs non-interactively in the remote user's shell (no TTY; stdin is closed unless stdin is given), so use non-interactive flags such as apt-get -y. Each call is a fresh shell: use cwd or cd x && ... instead of relying on a previous cd. On timeout the command and its children are killed. For anything slower than a few minutes, or that must keep running (servers, builds, training, tail -f), use ssh_job_start instead.

Args: target: device name, ~/.ssh/config alias, or [user@]host[:port]. command: shell command line (multi-line scripts are fine). timeout: seconds before the command is killed (default from config, 60s). cwd: directory to run the command in. stdin: text fed to the command's standard input (e.g. file content for tee file). sudo: run as root. Uses the device's sudo_password if configured, else sudo -n.

ssh_job_startA

Start a long-running command in the background on the remote host and return immediately with a job_id. Output goes to a log on the device; the job keeps running even if the MCP server or connection goes away. Use for builds, servers, benchmarks, training, flashing, tail -f, etc. Then poll with ssh_job_status and stop with ssh_job_stop.

ssh_job_statusA

Get a background job's state (running / exited / dead), exit code, elapsed time and the last tail_lines lines of its output. wait_seconds (max 600) waits up to that long for the job to finish before answering, which avoids busy polling.

ssh_job_listB

List background jobs started on the remote host, with their state and command.

ssh_job_stopA

Stop a background job (SIGTERM, then SIGKILL after 5s, whole process group). With remove=true also delete its log directory (works for finished jobs too).

ssh_board_infoB

Collect a hardware/OS overview of a Linux board: model, OS, kernel, CPU, memory, disk, temperatures, network, plus Jetson (L4T/JetPack, nvpmodel) and Raspberry Pi (vcgencmd) details.

ssh_read_fileA

Read a text file from the remote host (SFTP). Returns at most max_bytes starting at offset, plus the total size so larger files can be read in chunks.

ssh_write_fileA

Create/overwrite (or append to) a text file on the remote host via SFTP. mode is an octal string like "755". For root-owned paths use ssh_exec(command="tee /path >/dev/null", stdin=content, sudo=true) instead.

ssh_uploadB

Copy a local file (or directory with recursive=true) to the remote host via SFTP.

ssh_downloadB

Copy a remote file (or directory with recursive=true) from the remote host to a local path via SFTP.

ssh_disconnectA

Close the pooled SSH connection to target, or all connections if omitted.

adb_devicesA

List devices attached to the local adb server (USB and network) and devices named in the config.

adb_connectA

Connect to a device over TCP/IP (adb connect host[:port], default port 5555). A configured device name is also accepted.

adb_disconnectA

Disconnect a TCP/IP device, or all TCP/IP devices if address is omitted.

adb_shellA

Run a shell command on the device and return exit_code, stdout and stderr.

Non-interactive (no TTY). Each call is a fresh shell, so use cwd instead of relying on a previous cd. On timeout the command and its children are killed. For long-running work (servers, logcat -f, benchmarks) use adb_job_start.

Args: command: shell command line, interpreted by the device's shell. device: configured name or serial; may be omitted when only one device is attached. timeout: seconds before the command is killed (default from config, 60s). cwd: directory to run the command in. stdin: text fed to the command's standard input. root: run through su (rooted devices only).

adb_job_startA

Start a long-running command in the background on the device and return a job_id immediately. Output is logged on the device. Poll with adb_job_status, stop with adb_job_stop.

adb_job_statusA

Get a background job's state (running / exited / dead), exit code, elapsed time and last output lines. wait_seconds (max 600) waits for the job to finish before answering.

adb_job_listC

List background jobs started on the device.

adb_job_stopA

Stop a background job (SIGTERM then SIGKILL, whole process group); remove=true deletes its logs.

adb_device_infoB

Overview of the device: Android build properties (if Android) plus model, kernel, CPU, memory, disk, temperatures and network (works on adbd-enabled Linux boards too).

adb_read_fileB

Read a text file from the device (first max_bytes bytes).

adb_write_fileB

Create/overwrite a text file on the device (pushes a temp file). mode is octal, e.g. "755".

adb_pushB

Copy a local file or directory to the device (adb push).

adb_pullC

Copy a file or directory from the device to a local path (adb pull).

adb_logcatB

Dump recent Android logcat lines (non-blocking).

Args: lines: number of most recent lines to return. filter_spec: optional logcat filter, e.g. "ActivityManager:I :S" or ":E". clear: clear the log buffer after reading.

adb_installC

Install an APK on an Android device (adb install [-r]).

adb_rebootB

Reboot the device. mode may be None (normal), "bootloader", "recovery", "sideload" or "fastboot".

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 28 tools

Disambiguation4/5

The ssh_* and adb_* families form two clearly parallel, non-overlapping domains, and within each domain the tools split cleanly into exec/job/file/device concerns. The only mild overlaps are text-writing tools (ssh_write_file, adb_write_file) versus transfer tools (ssh_upload, adb_push), but descriptions make the text-vs-file distinction explicit. ssh_job_list vs ssh_job_status and their adb twins are also easily told apart.

Naming Consistency4/5

Nearly everything follows a predictable `domain_noun_verb` pattern (ssh_job_start, adb_read_file, adb_device_info) in consistent snake_case with a domain prefix. The one deviation is ssh_list_targets, which flips to verb-noun ordering unlike ssh_job_list/adb_job_list, a minor blemish in an otherwise uniform scheme.

Tool Count3/5

28 tools is on the heavy side, but it is really two symmetric 14-tool domains (SSH and ADB), each of which covers exec, background jobs, file transfer and diagnostics with no filler. A dual-domain server justifies the size better than most, yet it still sits above the comfortable 15-tool range and could be trimmed by folding job_list into job_status.

Completeness4/5

Both domains are close to lifecycle-complete: shell exec, background job start/status/list/stop, file read/write/transfer, device/board info, and connect/disconnect are all present, with ADB adding install, logcat and reboot. Remaining gaps are modest but real — no adb_forward/reverse port forwarding, no uninstall, and no explicit file-delete (workable via shell exec).

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues