On this page

User guide · ssmcp 0.10.41

Connect once.
Work in your own environment.

ssmcp connects an MCP-compatible AI application to your computer. MCP is a protocol for calling tools: the application sends a request, your computer runs a command or handles a file, and the result returns over the connection.

Connecting does not start a model. The terminal's guide QR code contains a public URL, not login credentials.

Get started / 01

Your first connection in three steps

  1. Install the client

    Choose the command for the computer you want to connect. You can also download a release manually from GitHub Releases.

    Linux / macOS
    curl -fsSL https://github.com/LIghtJUNction/ssmcp/releases/latest/download/install.sh | sh
    Windows PowerShell
    irm https://github.com/LIghtJUNction/ssmcp/releases/latest/download/install.ps1 | iex

    Run ssmcp --version after installation. When it prints the client version, continue to the next step.

  2. Connect from your project directory

    Open a terminal in the folder you want to work on. Replace yourname with your server username and run:

    ssmcp yourname@ssmcp-relay.tailb3304f.ts.net

    The device connects without logging in. Register a new name in the browser with ssmcp yourname@ssmcp-relay.tailb3304f.ts.net --register.

    Keep this terminal running. On later visits, ssmcp can reuse the saved connection configuration. Open the account portal to check your account.

  3. Add the relay to your AI application

    Enter this address in the application's MCP connection settings and authorize the same GitHub account.

    https://ssmcp-relay.tailb3304f.ts.net/mcp

    For example, open ChatGPT Plugins, select Add, fill in Name and Connection, then follow the prompts to Create and authorize the connection.

    Return to the conversation and ask the AI to list online clients. Confirm the computer and working directory before starting a task. If the list is empty, see troubleshooting.

Get started / 02

Connect another device

The person using the device runs the client from the project directory they choose to share. Replace yourname with the controller’s registered username on the same relay. The device needs neither a signed-in account nor a server invitation code. The controller still signs in to their relay account, and MCP apps complete the relay’s OAuth authorization.

ssmcp yourname@ssmcp-relay.tailb3304f.ts.net --register

Run ssmcp next time to reuse the last successful connection. Ending the client process closes the device connection.

How do accounts, devices, and collaboration members differ?

A server account determines who may connect to a device. A client represents a connected computer. A collaboration member registered with collab.join participates in messages and tasks within a session; membership does not replace device authorization.

In the main window, /invite generates instructions for collaborating in a session. Device access remains subject to the connection’s allow list and existing permission checks. Allow lists reject bare usernames, @github, and accounts on another server. Traffic is charged to the actual controller account. Changes to one controller's quota or access do not disconnect other authorized controllers.

Everyday use / 01

Write a request with useful context

Pressing Enter sends ordinary input through the selected message route. You can write another draft while work continues. The AI must keep making tool calls to have an opportunity to receive queued input.

InputWhat it does
@src/main.rsReference a workspace file. Quote paths with spaces, such as @"docs/usage notes.md". A missing file produces a warning; the literal message can still be sent.
@assets/chart.pngLet the agent read an actual image. Native image reading supports PNG, JPEG, GIF, and WebP, up to 400 KiB per image.
$skill-nameReference a project or user skill with its source, metadata and reading information. Read the full skill before applying it; referencing it does not execute it. Use Tab or Enter to accept a completion, then Enter again to send.
!git status --shortRun a local shell command in the workspace and show its output and exit status.
/sessions · /messageChoose a recipient and confirm. Escape returns without discarding the draft.
/queue · /copyInspect queued requests or copy the latest complete agent reply.
F1 · F7Open help, or pause mouse capture so you can select text with your terminal.

The / commands above belong in the SSMCP chat composer, not the system shell. /paste imports the clipboard and /attach PATH attaches an image. Pastes over 8 KiB are saved as file references; you can still add a short request after them.

When does a message include local files?

Ordinary local requests and /send to a local listener prepare @ / $ references. A /send addressed to a native member or group sends literal text, disables reference completion, and does not implicitly attach local files or skills.

queued, included, and acknowledged describe message delivery. They do not prove that someone has read the message or completed the task. Check the actual reply and task result.

Everyday use / 02

Start with a concrete outcome

Change a project

Name the relevant files, the observed problem, and the result you need.

@src/main.rs Fix the reported bug.
Run the relevant tests and show the diff.

Follow a long-running task

A managed task can continue after one code_mode call returns. Keep its real task ID and read its status and output.

Run the tests and follow this task.
Report the exit code and any failure.

Review an image

Send the image with a specific question. Terminals with image support display pixels; other terminals display an attachment card.

@assets/chart.png
Explain the trend and unclear labels.

Invite collaborators

Generate connection instructions in the main window and give them to the coordinator and external workers.

/invite
/invite worker

A worker invitation requires a linked pool. Copying instructions only shares connection information; the agent becomes available after actually joining and waiting. See the worker workflow below.

Technical reference · Workers

Coordinate in chat, delegate through a worker pool

From an interactive terminal in your project, open the main chat and a linked worker monitor. The default worker is an external agent using its existing application and model. SSMCP supplies the queue, tools and receipts; it does not start a model.

ssmcp yourname@ssmcp-relay.tailb3304f.ts.net --worker 3

All three stations start offline. The main window keeps its chat input; the worker window shows task states and logs. Startup needs an available terminal adapter to open the second window.

Main-window commandResult
/inviteGenerate connection instructions for the coordinator
/invite workerGenerate instructions for an external worker to join the linked pool
/worker lsInspect stations and registered, working, standby and offline counts
/worker +2Add two offline stations, opening a linked window if none exists
/worker -1Request one fewer station; await task completion and retirement confirmation

Enter /invite in the connected main window and press Enter. Paste its instructions into the authorized coordinator conversation; the coordinator joins the control session as main and binds its own credentials. Before /invite worker, use /worker ls to confirm the linked pool is connected and has room, then paste the worker invitation into each separate authorized worker conversation.

Both invitation commands open a scrollable panel and try to copy the instructions. Copy manually if the clipboard is unavailable, and press Esc to close. Each agent keeps its own credentials private; wait for a connected, stable pool with room before inviting a worker.

Give the instructions to the intended agent. Each external worker joins the pool connection with collab.join and role: "worker", binds its private credentials, then calls ssmcp.worker.wait to register a station and await a task. registered_workers counts registered workers, working counts active assignments, and standby/idle identifies available capacity. Creating stations or copying an invitation does not connect a worker.

After binding as the pool's manager, the coordinator submits work with ssmcp.worker.submit. The worker preserves the complete claim, reports the actual outcome with ssmcp.worker.complete, then uses a new wait request ID. Wait retries reuse the original ID. Cancellation awaits the executor's acknowledgement; an unknown outcome after disconnect is never automatically replayed. See the worker guide for window closure, reload and resizing.

Wait for real events

The prompt hook at the end of a Code Mode reply reads the linked pool's actual state and checks the caller's binding, coordinator role and permissions. Its throttled, bounded hints suggest delegation and, when independent work is finished, waiting for user.input_available, worker.completed, worker.idle and worker.progress. A hint does not execute work or start a model.

events.policy changes the current participant's enabled, window_ms, kinds and strategy settings. The strategy is advisory text. Use the control-session ID and that connection's own credentials obtained earlier:

Change the waiting guidance
await collab.bind(controlId, controlCredentials);
return await events.policy(controlId, {
  patch: {
    enabled: true,
    window_ms: 55000,
    kinds: ["user.input_available", "worker.completed", "worker.idle", "worker.progress"],
    strategy: "Finish independent work first, then await user input and worker events."
  }
});

Use the public await or events tool for long observations, with a default and maximum window of 55 seconds. Inside JavaScript, events.wait defaults to and is limited to one second. Retain wait_id across windows and explicitly acknowledge the event and wait-result cursors after handling them. An input event only wakes the observer; retrieve its text through the existing input channel. See the subscription, binding and waiting examples.

Technical reference · Extensions

Maintain tools in independent Git repositories

ssmcp-tools supplies the official Code Mode JavaScript helpers. Project and global repositories can extend or override orchestration functions, with their own commits, tests and Git history.

LayerLocationActivation
Project./.ssmcp/tools/ under the current workspaceThe trusted RC's tools.projects registers that exact canonical absolute workspace
Global~/.ssmcp/tools/tools.global = true in the trusted RC
Official$XDG_DATA_HOME/ssmcp/tools/official, default ~/.local/share/ssmcp/tools/officialThe selected client's official source

Loading follows official → ordered RC overrides → enabled global → registered project. Later same-name exports replace earlier ones. Project selection matches the canonical absolute workspace exactly, without searching parent directories. Creating a directory or cloning a repository does not activate it.

ssmcp tools paths
ssmcp tools init project --git
ssmcp tools init global --git
ssmcp tools status

Run project commands from the workspace you intend to register. paths only reports locations. init creates a factory, manifest and README offline, then registers the layer. --git creates an independent Git repository without a commit or remote; an existing destination is preserved and reported as an error. Use ssmcp tools enable project for reviewed existing source and ssmcp tools disable project to disable it while keeping the files. Replace project with global for that layer.

The trusted RC is $XDG_CONFIG_HOME/ssmcp/ssmcprc.toml, default ~/.config/ssmcp/ssmcprc.toml. After editing, explicitly select the client in a new MCP code_mode request:

{
  "tool_client_id": "CLIENT_ID_FROM_LIST",
  "code": "return 'sources loaded';"
}

Check the outer structuredContent.tool_sources receipt for the layers, paths, SHA-256 hashes and Git HEAD/dirty state actually loaded. JavaScript orchestration can evolve independently and reloads on a new call. New native operations still require a supporting CLI/relay version. Overrides preserve host authentication, permissions and native argument checks; an invalid selected source stops the call.

ssmcp tools check fetches official upstream state; ssmcp tools update only fast-forwards a clean official checkout. Maintain project and global repositories through their own Git workflows.

Maintain reusable workflows

Dreaming can maintain these repositories and workflows through existing execution, filesystem and Git operations. Initialization starts no model or scheduler. See tool repository management and source selection and receipts.

See the client overview for Web, native desktop, Android and iOS entry points and validation status, and the GUI gateway guide for HTTP connections and pairing.

This guide follows the server build. The selected client's actual tool schema defines its capabilities. Installers fetch published releases; new features need a corresponding client process.

Technical reference / 01

Discover the interface before calling it

list returns online clients. Select one, then use code_mode to inspect its currently registered tools and parameter schemas. Versions and loading state may differ, so use the interface actually returned by that client.

const clientId = "ID_FROM_LIST";
return await tools.search(clientId, {
  name_prefix: "ssmcp.fs.",
  query: "read",
  limit: 5,
  include_schemas: true
});
CapabilityHow it works
Commands and filesRun commands and read files in the client's workspace. Results should include actual output and exit status. One read does not represent the entire job log.
Asynchronous tasks and waitsAfter starting a task, read or wait by ID. A bounded wait timing out does not mean the task completed. Cancelling an observation is different from cancelling the underlying task.
Messages and collaborationUse real members registered in the current connection and their delivery receipts. Another agent finishing cannot substitute for the user's approval of a finish request.
Additional MCP toolsOptional harnesses load explicitly on demand. ssmcp.harnesses.list shows cached state; ssmcp.harnesses.load loads a chosen harness. Its original parameters and approval rules still apply.
Example: return an actual image

Each code_mode call has its own scope. Use the selected client's real ID and a path in that workspace.

const clientId = "ID_FROM_LIST";
image(await call(clientId, "ssmcp.fs.read_image", {
  path: "assets/chart.png"
}));

Desktop and browser tasks: use Zuse CLI directly

SSMCP's computer interface only manages the independent Zuse CLI: version, download, install, and uninstall. Desktop and browser programs run through general command execution. SSMCP no longer embeds browser control, private-desktop actions, or a dedicated Playwright bridge.

ssmcp computer version --json

Check the returned availability and path, then follow the selected Zuse version's help when writing a program. Managed installation does not modify PATH or take ownership of a system or separately installed version. See the four management commands and the Zuse guide.

Technical reference / 02

Understand state and permissions

Tools use local permissions

General commands run with the operating-system permissions of the client process. Connection authorization controls access through SSMCP; it does not revoke the same user's permissions through other programs.

Finishing needs a real decision

The activity page's pending-question badge means there is a question you can answer. Press Shift+↑ to open Questions. It is not proof of a blocking wait: only a real active ui.wait shows the red countdown.

Send a message with finish_task: true, or call ui.wait with intent: "finish", to wait on the real finish question. Timeout, interruption and a plain “Yes” message are not approval. Without approval, the result instructs the agent to call the blocking wait again.

Order state comes from the server

Traffic and orders shows the current price, allowance, and expiry. Check the page and checkout for the pre-tax amount and final amount including tax. Returning to the order page does not mean payment has been credited.

Reference

Check these first

No online clients

Keep the local client running. Confirm that the application and client use the same relay and an authorized GitHub account, then refresh list. For a device allow list, also check the complete server username.

The ssmcp command is missing after installation

Open a new terminal and check that installation actually succeeded. Use the release page to confirm your operating system and architecture. An error in installation output is not a successful install.

A message is queued but there is no reply

Keep the AI conversation working so the agent can make subsequent tool calls. Check the recipient and /queue. A delivery receipt describes message progress, not task completion.

A tool is missing from the catalog

Confirm the selected client and version, then query its live catalog. External harnesses require explicit loading. Migrate old embedded browser and desktop calls to the independent Zuse CLI.

I paid but the order is still processing

Read the server state on the order detail page. A return from checkout or a URL parameter cannot replace payment confirmation. Payment arriving after the month ends may need an administrator's refund review; it does not grant current-month traffic.