Files
千川白浪andClaude Opus 5.5 d682620fe5 feat(mcp)!: 工具设计范式更新到 0.2.0 (#6)
Serve six computer-use tools on the mcp channel and add the guest,
restore point, clone and test tools on a new mcp-dev channel.

- vm_power replaces vm_start, vm_shutdown, vm_suspend and vm_resume and adds
  force_stop.
- screen replaces the screenshot and zoom actions and wait_for_screen: it can
  wait for a change or a stable frame (up to 180 s while booting) and return
  one region at up to source resolution.
- computer_input replaces computer and computer_batch: it checks every step
  before sending input, holds modifiers around pointer actions, stops on a
  wait_screen timeout, and releases held keys and buttons on success, error
  or cancellation.
- Coordinates follow the last full image returned, so scaled screenshots no
  longer misplace clicks; results report the image size and a short sha256
  as compact JSON and structuredContent.
- Calls on one VM run in order instead of all tools sharing one lock;
  request ids and cancellation are scoped per client connection, and a
  closed connection cancels its calls.
- guest_wait_ready returns the plugin public key; logs_read pages guest and
  test logs; test_wait returns the result once finished; sessions and test
  runs always use a clone. Removed the screen resource.
- Tools carry annotations and one-sentence descriptions, and arguments the
  schema does not name are refused.

Requires a Reims-Go host with region screenshots, held-key input,
host/console.release and forced shutdown.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 23:52:45 -07:00

46 lines
3.9 KiB
Markdown

# Reims-Go MCP Service
`reims.agent` is the official Reims-Go L3 plugin that exposes host-authorized virtual machine information and desktop controls to MCP clients. The host retains QMP access and permission checks. The plugin communicates with the host through `reims-go plugin connect`; it does not open a network listener.
Configure an MCP client to launch one of these commands over stdio. Grant the plugin permissions in Reims-Go before calling VM tools. Source builds and package checks are documented in [CONTRIBUTING.md](CONTRIBUTING.md).
| Command | Tools |
| --- | --- |
| `reims-go.exe plugin connect reims.agent mcp` | The six computer-use tools |
| `reims-go.exe plugin connect reims.agent mcp-dev` | The computer-use tools plus guest SSH, restore point, clone and test tools |
## Computer-use tools
- `vm_list` and `vm_get` read the VMs this plugin may use.
- `vm_power` starts, shuts down, force-stops, suspends or resumes a VM.
- `vm_unlock` types the saved login password and returns the screen once it settles.
- `screen` returns the display. It can first wait for the display to change or settle, for up to 180 seconds while a VM boots, and it can return one region at up to source resolution.
- `computer_input` runs up to 50 mouse and keyboard actions in order and returns the screen after the last one. A `wait_screen` step waits for the UI to respond, and a timeout stops the sequence.
Version 0.2 needs a Reims-Go build whose Host API provides region screenshots, held-key input, input release and forced shutdown.
Every x and y is a pixel of the last full screen image the plugin returned, whatever its scale. Each result reports that image's width, height and a 16-digit `sha256` that later waits can use as a baseline. `computer_input` checks every step before it sends any input, and it releases held keys and buttons when it finishes, fails, or is cancelled. Calls on one VM run one at a time; calls on different VMs and the guest and test tools run independently.
## Development tools
These tools are only served on the `mcp-dev` channel.
- `guest_wait_ready` and `guest_trust_host` set up SSH. `guest_wait_ready` returns the host fingerprint to review and the plugin public key to add to the guest.
- `guest_exec`, `guest_put` and `guest_get` run commands and copy files over SSH.
- `snapshot_list`, `snapshot_create` and `snapshot_restore` manage restore points. Restore works only on temporary clones created by this plugin.
- `session_create` and `session_dispose` create and delete temporary clones.
- `test_run`, `test_wait` and `test_cancel` run guest tests on a temporary clone with optional workspace sync, JUnit summaries and artifact collection.
- `logs_read` pages through the output of a `guest_exec` call or a test run.
Screenshots are returned to the MCP client and are not retained by the plugin. The plugin package contains a native Windows sidecar and therefore runs with the current Windows account's permissions. Reims-Go presents the declared capabilities and requires approval before enabling them.
Guest SSH requires port forwarding and a configured username in the host VM settings. Review the fingerprint from `guest_wait_ready` before calling `guest_trust_host`, and add the returned public key to the guest account's `~/.ssh/authorized_keys`. SFTP transfers are limited to the guest user's home directory and 64 MiB per file.
Enable **Allow AI to access this VM** in the MCP Service settings for each VM before using its desktop or SSH tools. This permission is stored per VM and can be revoked there at any time.
## Releases
Tags named `vX.Y.Z` run the Windows CI, tests, vet, build the sidecar, and package the plugin with the Reims-Go CLI. The resulting `reims.agent-X.Y.Z.zip` and its SHA-256 are attached to the GitHub Release. Market registration is maintained separately in [reims-go/plugins](https://github.com/reims-go/plugins).
The L3 release workflow builds the executable from this public source repository. The binary is not committed to Git.