12 Commits
Author SHA1 Message Date
千川白浪 1b1f02739f refactor(sidecar): serve the MCP channels through pkg/pluginsdk
The transport, the handshake and the Host API calls now come from the shared SDK, so this package only routes channel messages and the host's JSON-RPC error codes reach the MCP tools.
2026-12-05 02:01:04 -07:00
千川白浪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
千川白浪 0ad3692acb fix(mcp): retry guest SSH readiness until boot timeout 2026-12-04 06:20:36 -07:00
千川白浪 23d0271c93 fix(mcp): explain a missing login password in vm_unlock
vm_unlock returned the host's raw "secret setting is empty" when a VM had no
saved password, which reads like an internal fault and hides what the user has
to do. Wrap the typeSecret failure with the step that failed and keep the
host's readable explanation, and say in the tool description that the VM (or
an MCP clone's source VM) must have a saved login password.

model: deepseek/deepseek-v4.1-flash
agent: lead (DeepSeek Harness)
2026-12-04 06:16:46 -07:00
千川白浪 6b6a7ff81b feat(mcp): expose virtual machine suspend and resume 2026-12-03 08:32:04 -07:00
bvz rays 40740f7cd0 fix: keep MCP test controls responsive 2026-12-03 02:11:17 +08:00
bvzrays 4c7b4bb052 fix: enforce MCP operation boundaries 2026-12-02 16:58:49 +00:00
千川白浪 98aea3bd14 feat(mcp): add cursor-tolerant wait_for_screen, computer_batch, and round-trip optimizations 2026-12-02 07:59:14 -07:00
bvzrays 650f4bc1fd fix: keep asynchronous test runs alive 2026-12-02 19:54:31 +08:00
bvzrays 1b887b5eaf feat: add isolated MCP VM test sessions 2026-12-02 18:39:44 +08:00
bvzrays b188e4adf5 feat(mcp): harden cancellation and guest operations 2026-12-02 15:20:50 +08:00
bvzrays bdbd8f7701 feat: add official MCP service plugin 2026-12-02 13:18:10 +08:00