Skip to content

MCP Server Guide

Andrew Paolucci edited this page Nov 26, 2026 · 2 revisions

MCP Server Guide (winctl2rust-mcp)

winctl2rust-mcp implements JSON-RPC 2.0 stdio (2024-11-05) on top of guap-mcp, exposing 40 tools total: 24 read-only tools and 16 policy-gated mutating tools ([MUT]).


1. Client Setup & Schema Dump

{
  "mcpServers": {
    "winctl2rust": {
      "command": "winctl2rust",
      "args": ["mcp"]
    }
  }
}
winctl2rust mcp --tools

2. Read-Only Tools (24 Total, Always Permitted)

  • Audio (4): audio_app_config, audio_ctl_status, audio_view, audio_wheel_rules
  • Command Preview/Inspect (6): cmd_atnow_tasks, cmd_from_proc_candidates, cmd_run_profiles, cmd_run_validate, cmd_script_parse, cmd_script_preview
  • Display (4): display_ddc_vcp, display_edid, display_info, display_monitors
  • Desktop (10): desktop_clip_hist, desktop_clipboard, desktop_ctrl_export, desktop_fonts, desktop_hotkeys, desktop_keys, desktop_props, desktop_tree, desktop_webcam, desktop_windows

3. Policy-Gated Mutating Tools (16 Total, [MUT])

Invoking any [MUT] endpoint in default PolicyMode::ReadOnlyOnly returns JSON-RPC -32003 (SAFETY REFUSAL) unless explicitly allowed and paired with confirm_destructive: true:

  • Audio (4): audio_app_config_update, audio_ctl, audio_view_control, audio_wheel
  • Command (4): cmd_atnow, cmd_from_proc, cmd_run, cmd_script
  • Display (2): display_ddc_set, display_monitors_apply
  • Desktop (6): desktop_clip_hist_control, desktop_clipboard_control, desktop_props_control, desktop_tree_control, desktop_webcam_capture, desktop_windows_control

Clone this wiki locally