mcp

v1.6.8
dev.aicommander/mcp Checked 5 hours ago Published 2 days ago

Remote shell and detached long-running jobs on your own machines — no SSH, open ports or VPN.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

remote_exec Execute Remote Command

Run one shell command on a machine reachable through AI Commander. For a remote shell, remote terminal or SSH-style request, use it to run a specific command the user is authorized to run, such as a check or a command to install or fix something. For a connect or reachability check, use session_status first. Name the machine with `code` exactly as the user said it — an AIC- session code (e.g. AIC-XYZ-1234) or, when authenticated to an account with OAuth or an API key, a saved alias such as 'office-m3'. A name that starts with aic-/AIC- (or matches the AIC-XXX-NNNN code format) is likely one…

session_status Check Machine Status

Check whether a remote machine the user has linked to AI Commander is online, active, reachable and ready, and which platform it runs. Start here when the user asks to connect to, reach or log into such a machine, or asks about its state (e.g. "connect to office-m3", "is office-m3 online?", "can you reach AIC-XYZ-1234?"). Name the machine with `code` exactly as the user said it — an AIC- session code (e.g. AIC-XYZ-1234) or, when authenticated to an account with OAuth or an API key, a saved alias such as 'office-m3'. A name that starts with aic-/AIC- (or matches the AIC-XXX-NNNN code format)…

ParameterTypeDescription
code *stringPass the identifier exactly as the user provided it. Use an AI Commander session code (AIC-…) or an alias saved to the authenticated account, such as 'office-m3'. A hostname works only if it is save…

list_machines List Machines

List the machines saved to the authenticated AI Commander account, including pending or plan-restricted records. Use it for a requested inventory of AI Commander machines. Takes no arguments. Requires account authentication (set AICOMMANDER_TOKEN). A free AI Commander account can use this inventory. Pending approval and plan restrictions are independent. Free permits use of the 10 oldest by creation time, then id, subject to device approval. Pro permits up to 100 saved records. Both blocked and planRestricted entries expose no liveness or telemetry. Report the applicable restriction shown in t…

remote_screenshot Capture Remote Screenshot

Capture a screenshot of a remote desktop machine and return it as an image. USE THIS when the user asks to see, view or screenshot what is on the screen of a remote machine linked to AI Commander. Name the machine with `code` exactly as the user said it — an AIC- session code (e.g. AIC-XYZ-1234) or, when authenticated to an account with OAuth or an API key, a saved alias such as 'office-m3'. A name that starts with aic-/AIC- (or matches the AIC-XXX-NNNN code format) is likely one of the user's AI Commander machines. macOS/Windows desktop app only. ONE SCREENSHOT IS ONE DISPLAY — many mach…

ParameterTypeDescription
code *stringPass the identifier exactly as the user provided it. Use an AI Commander session code (AIC-…) or an alias saved to the authenticated account, such as 'office-m3'. A hostname works only if it is save…
displayWhich display to capture. Omit for the primary screen (index 0) — that is the safe default and what every machine did before this argument existed. Pass a 0-based index (0, 1, 2, …) to capture ano…

remote_job_start Start Remote Job

Start a LONG-RUNNING command on a remote machine as a detached background job. USE THIS INSTEAD OF remote_exec for anything expected to take more than a few minutes — ML training, fine-tuning, dataset preparation, large downloads, long builds, benchmarks, batch rendering, anything you would run under nohup/screen/tmux. Reason: remote_exec is hard-KILLED at 1 hour of wall-clock time, so a training loop dies mid-run and hours of GPU time are lost; and its reply is truncated at 1 MiB of output, so a run that prints per-step loss loses exactly the log you wanted (the byte cap only tries, best-ef…

ParameterTypeDescription
code *stringPass the identifier exactly as the user provided it. Use an AI Commander session code (AIC-…) or an alias saved to the authenticated account, such as 'office-m3'. A hostname works only if it is save…
command *stringShell command to run as the job. WHICH SHELL DEPENDS ON THE MACHINE'S OS — read `platform` from list_machines or session_status first: POSIX machines ('darwin'/'linux') run it via `/bin/sh -c`, Wind…
cwdstringWorking directory on the remote machine. Defaults to a per-job workspace directory the machine creates.
elevatedbooleanNOT SUPPORTED FOR JOBS — accepted by this schema only so that asking for it is REJECTED with an explanation instead of being silently downgraded to an ordinary job. A job always runs as the signed-i…
envobjectExtra environment variables for the job (string values only), e.g. HF_HOME or TORCH_HOME so model weights land somewhere with space rather than in the service account's home directory.
gpu_indexnumberReserve this NVIDIA device (the `index` from the machine's GPU list, as reported by list_machines / session_status) exclusively for the job and set CUDA_VISIBLE_DEVICES accordingly. Refused with `gpu_…
locksarrayNames of resources this job must have to itself while it runs (at most 8, each 1–128 characters from A-Z a-z 0-9 . _ : @ / -), e.g. ['dataset:imagenet', 'repo:/srv/app']. All are taken or none: if a…
namestringShort human-readable label for the job, so you and the user can recognize it later in remote_job_list. The machine generates one if omitted.
operation_idstringIdempotency key you choose for this piece of work (1–128 characters from A-Z a-z 0-9 . _ : @ / -), e.g. 'train-resnet-run1'. STRONGLY RECOMMENDED for anything you might have to retry: if the call's…
shellstringNOT SUPPORTED FOR JOBS — accepted by this schema only so that asking for it is REJECTED with an explanation instead of being silently dropped. A job always runs in the machine's default shell (`/bin…

remote_job_list List Remote Jobs

List the detached jobs on a remote machine — what is running right now, and which recently finished jobs are still retained (about a week). USE THIS to answer "what is running on the GPU box?", to find the jobId of work started in an earlier conversation, or before starting new GPU work so you don't collide with an existing run. Each entry has the jobId, name, status (running / exited / unknown), exit code, start and end times, the reserved GPU index if any, and the current size of its output log. An `unknown` job's end time is marked as ESTIMATED and says so in the text: nothing recorded it…

ParameterTypeDescription
code *stringPass the AIC- session code or the authenticated account's saved alias exactly as the user provided it.
include_commandbooleanAlso return each job's command line. Off by default so command strings are not echoed back unnecessarily.
limitnumberReturn only the newest N jobs (default 20; must be at least 1). The machine retains 7 days of history, so a busy box can hold dozens of entries and listing them all burns your context for no benefit.…
statusstringOnly return jobs in this state. Omit for all retained jobs.

remote_job_status Check Remote Job Status

Check one detached job: is it still running, what exit code did it finish with, how big is its log. USE THIS to poll work started with remote_job_start — poll at a sensible interval (e.g. every few minutes for a training run), not in a tight loop. Status `running` means the process was alive when the machine looked; `exited` means the exit code is authoritative (0 = success); `unknown` means the process is gone with no recorded exit code — a SIGKILL, the OOM killer, an escalated or Windows cancel, or the agent going down all leave no exit marker — never report `unknown` as success, say t…

ParameterTypeDescription
code *stringPass the AIC- session code or the authenticated account's saved alias exactly as the user provided it.
include_commandbooleanAlso return the job's command line. Off by default.
job_idstringThe jobId returned by remote_job_start (16 hex characters). Omit it when looking the job up by `operation_id` instead.
operation_idstringLook the job up by the operation_id it was started with, instead of by job_id — the way to find a job whose start answer was lost. `not_found` then means this machine never accepted a start under th…

remote_job_logs Read Remote Job Logs

Read the output (stdout and stderr, interleaved as a terminal would show it) of a detached job. USE THIS to follow a long run — training loss, build progress, a stack trace after a failure. By default it returns the tail of the log, which is what you want for "how is it going?". To follow a growing log without re-reading it, take the `offset_bytes=N` value the previous reply's header line names ("To continue reading, call remote_job_logs again with offset_bytes=N") and pass it back as `offset_bytes`; each reply is capped at 256 KiB so a huge log is paged, never dumped. Name the machine with…

ParameterTypeDescription
code *stringPass the AIC- session code or the authenticated account's saved alias exactly as the user provided it.
job_id *stringThe jobId returned by remote_job_start (16 hex characters).
max_bytesnumberRequested slice size in bytes. Must be an integer from 1 to 262144 (256 KiB, also the default and the hard per-reply ceiling); a larger value is rejected rather than silently clamped, so page a long l…
offset_bytesnumberRead forward from this byte offset instead of tailing — pass the offset_bytes value the previous reply's header tells you to continue from, to follow a growing log. Must be an integer of 0 or more;…
tail_linesnumberReturn the last N lines of the log (default 200). Must be an integer of at least 1 — validated, not silently corrected. Ignored when offset_bytes is given.

remote_job_cancel Cancel Remote Job

Stop a running detached job on a remote machine, terminating its whole process tree (a training run is rarely a single process) and releasing any GPU it had reserved. USE THIS when the user asks to stop/kill/abort a job, when a run is clearly failing, or before starting replacement work on the same card. Cancelling a job that has already finished is not an error — you simply get its final state back. The reply answers whether the job STOPPED: the call waits a few seconds for the process to actually go and then says either that the job is no longer running (an exited job reports its exit code…

ParameterTypeDescription
code *stringPass the AIC- session code or the authenticated account's saved alias exactly as the user provided it.
job_id *stringThe jobId returned by remote_job_start (16 hex characters).

remote_pull Pull File from Remote Machine

PRO PLAN ONLY. Copy a requested file from an authorized online machine to temporary AI Commander relay storage. Free and anonymous callers cannot start file transfers. Plan information is available at https://aicommander.dev/pricing/. A plan-restricted machine fails with `reason:"plan_device_limit"`. The agent reads the file with its OS permissions from an absolute path that resolves to a regular file. That path can reach an external network share, including through a Windows UNC path. The limit is 100 MiB per file. Name the machine with `code` exactly as the user said it — an AIC- session c…

ParameterTypeDescription
code *stringPass the AIC- session code or the authenticated account's saved alias exactly as the user provided it.
path *stringAbsolute path on the remote machine, such as `/home/u/aic-jobs/train/out.ckpt` or `C:\Users\u\out.png`. It must resolve to a regular file the agent can read.

remote_push Push File to Remote Machine

PRO PLAN ONLY. Write an existing relay blob to an authorized online machine. Free and anonymous callers cannot start file transfers. Plan information is available at https://aicommander.dev/pricing/. A plan-restricted machine fails with `reason:"plan_device_limit"`. The relay checks that the authenticated account owns the blob. Supply the blob ID from remote_pull or from a file upload. Uploading requires a signed-in Pro account. A blob stops being readable after 24 hours. Blobs created before a plan downgrade keep their existing TTL, and starting a push requires current Pro access. If the use…

ParameterTypeDescription
blob_id *stringThe blobId from a previous remote_pull, or from POST /api/v1/files (32 hex characters). Blobs belong to the account that created them and stop being readable after 24 hours.
code *stringPass the AIC- session code or the authenticated account's saved alias exactly as the user provided it.
dest_path *stringAbsolute destination path on the remote machine, such as `/home/u/data/train.csv`. The parent directory must already exist. The agent replaces an existing destination file when permitted by the OS. Ch…