dsh-windows-parallel-mcp 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/server.json ADDED
@@ -0,0 +1,109 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.drscrewdriver/dsh-windows-parallel-mcp",
4
+ "title": "Windows Parallel",
5
+ "description": "Drive one Windows window through eleven declared actions, choosing the cheapest door that can reach the target: window messages for a classic control (zero foreground changes), one bounded self-reversing UI Automation flash when only a pattern can reach it, and an opt-in takeover tier where the real cursor moves and is always restored. Writes are read back and the effect value names who reported success; screenshots name the capture path that painted them. Refusals carry a code that names the switch or the missing fact, the policy ceiling is set by the process owner and never by a call, and every action appends one audit row that records decisions and lengths but never the content typed or copied. Windows only, PowerShell 5.1 sidecar, zero install dependencies, no mouse-event injection.",
6
+ "version": "0.8.0",
7
+ "repository": {
8
+ "url": "https://github.com/drscrewdriver/dsh-windows-parallel-mcp",
9
+ "source": "github"
10
+ },
11
+ "websiteUrl": "https://github.com/drscrewdriver/dsh-windows-parallel-mcp#readme",
12
+ "packages": [
13
+ {
14
+ "registryType": "npm",
15
+ "registryBaseUrl": "https://registry.npmjs.org",
16
+ "identifier": "dsh-windows-parallel-mcp",
17
+ "version": "0.8.0",
18
+ "transport": {
19
+ "type": "stdio"
20
+ },
21
+ "environmentVariables": [
22
+ {
23
+ "name": "WPM_POLICY",
24
+ "description": "Authorization ceiling over all eleven actions: readonly | quiet | balanced | full. Default balanced. A call above it is refused with policy_denied, and the next step is to raise this setting, not to retry."
25
+ },
26
+ {
27
+ "name": "WPM_TAKEOVER_ALLOWED",
28
+ "description": "Capability switch for the takeover tier (the real cursor moving to the action point). Default false, and it is not implied by WPM_POLICY=full: both are needed."
29
+ },
30
+ {
31
+ "name": "WPM_KEY_INJECT_ALLOWED",
32
+ "description": "Capability switch for keyInput:'inject' (synthetic keyboard input into the foreground target). Default false."
33
+ },
34
+ {
35
+ "name": "WPM_APP_LAUNCH_ALLOWED",
36
+ "description": "Capability switch for the launch action. Default false; nothing may start while it is off."
37
+ },
38
+ {
39
+ "name": "WPM_APP_LAUNCH_ALLOW",
40
+ "description": "Comma-separated exact-name whitelist for launch (case-folded, no wildcard, no prefix match). Empty by default. A whitelist vouches for a program, not for the arguments it is given; both the target and the arguments are written to the audit log."
41
+ },
42
+ {
43
+ "name": "WPM_POLICY_IDLE_MS",
44
+ "description": "How long the owner must have been away from the keyboard before a takeover-grade action is allowed. Default 3000. While they are active the call is refused with user_active rather than interrupting them; no dialog is offered instead."
45
+ },
46
+ {
47
+ "name": "WPM_OVERLAY",
48
+ "description": "The click-through overlay and the global pause chord (Ctrl+Alt+Q). Default true -- a visible aid that tells the human something is being driven. Set false only if the hotkey cannot be registered on this machine."
49
+ },
50
+ {
51
+ "name": "WPM_ENABLED",
52
+ "description": "Master switch. Default true. False refuses every action with paused before anything is touched -- a switched-off plugin does not so much as start its sidecar."
53
+ },
54
+ {
55
+ "name": "WPM_SETTLE_MS",
56
+ "description": "How long the engine waits after a write before it reads the control back. Default 350. The read-back prediction is built after this window, so a value that is too small reports readbackMismatch rather than lying about success."
57
+ },
58
+ {
59
+ "name": "WPM_REQUEST_TIMEOUT_MS",
60
+ "description": "Budget for one sidecar round trip. Default 20000."
61
+ },
62
+ {
63
+ "name": "WPM_POWERSHELL_PATH",
64
+ "description": "Absolute path to the PowerShell executable, for a machine where powershell.exe is not on PATH. Default empty (find it the usual way)."
65
+ },
66
+ {
67
+ "name": "WPM_LOG_WORKER_STDERR",
68
+ "description": "Forward the sidecar's stderr to this server's stderr. Default false; switch it on when a worker dies before answering."
69
+ },
70
+ {
71
+ "name": "WPM_TAKEOVER_MAX_MS",
72
+ "description": "Longest a single takeover may hold the cursor. Default 10000, clamped 500-60000; it is a ceiling on the tier, not a way to opt in."
73
+ },
74
+ {
75
+ "name": "WPM_TAKEOVER_ARM_MS",
76
+ "description": "The HUD's arm phase before the cursor moves. Default 800, so a human sees it coming and can use the stop button or the pause chord."
77
+ },
78
+ {
79
+ "name": "WPM_SNAPSHOT_MAX_ELEMENTS",
80
+ "description": "Element cap for one snapshot. Default 300, clamped 1-5000, and the number actually used is reported back on the result rather than assumed."
81
+ },
82
+ {
83
+ "name": "WPM_SCREENSHOT_MAX_WIDTH",
84
+ "description": "Resize width for screenshots. Default 0 = no scaling, because a silently rescaled picture makes every coordinate the model reads wrong. Any scaling is stated on the result as scale/identity."
85
+ },
86
+ {
87
+ "name": "WPM_SHOTS_KEEP",
88
+ "description": "How many recent screenshots to retain. Default 10, clamped 1-200."
89
+ },
90
+ {
91
+ "name": "WPM_AUDIT_KEEP",
92
+ "description": "How many newest rows of %LOCALAPPDATA%\\wpm\\audit.log to retain. Default 2000."
93
+ },
94
+ {
95
+ "name": "WPM_MCP_NO_IMAGE",
96
+ "description": "Set to 1 to stop attaching screenshot pixels as base64 image content; the text result still names the file, the rect, the scale and the capture backend."
97
+ }
98
+ ]
99
+ }
100
+ ],
101
+ "_meta": {
102
+ "io.modelcontextprotocol.registry/publisher-provided": {
103
+ "platform": "windows",
104
+ "requires": "Windows PowerShell 5.1 (ships with Windows) and Node >= 20. No install dependencies; no build step.",
105
+ "sameEngineTwoForms": "lib/index.js is the DSH plugin half and lib/mcp-server.mjs is this stdio half; both drive one PowerShell engine, so the actions, the refusal vocabulary, the gates and the audit log are identical in either form.",
106
+ "schemaSource": "tools/list is generated from src/schema/tools.json at start-up -- the action surface is declared once."
107
+ }
108
+ }
109
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "0.1.0",
3
- "status": "form decided 2026-11-19: A = DSH native plugin (no MCP). The eight named tools below stay the canonical ACTION surface; the host projection (see hostProjection) exposes them as one tool with an action discriminator, which is this host's convention for a multi-action capability.",
3
+ "status": "form decided 2026-11-19: A = DSH native plugin. PARTLY REVERSED 2026-11-23 for 0.8.0: the same engine is ALSO an MCP stdio server (see mcpProjection), because the MCP Registry accepts MCP servers only and DSH can bridge one -- one implementation, two channels. The eleven named tools below stay the canonical ACTION surface, and BOTH delivery forms expose them as one tool with an action discriminator, which is the projection the token argument decided on.",
4
4
  "hostProjection": {
5
5
  "form": "A",
6
6
  "decided": "2026-11-19",
@@ -27,7 +27,24 @@
27
27
  { "action": "pause", "exposed": false, "why": "owner control, behind the settings pill rather than the model's reach" }
28
28
  ]
29
29
  },
30
+ "mcpProjection": {
31
+ "form": "stdio MCP server, JSON-RPC 2.0, zero dependencies",
32
+ "decided": "2026-11-23",
33
+ "reversal": "the 2026-11-19 note said 'no MCP'. That was a decision about the DELIVERY CHANNEL, not about the action surface, and it is reversed here on purpose: the Registry only accepts MCP servers, and @deepseek-ai/dsh-mcp-client can bridge one into DSH, so one implementation now reaches two channels instead of one.",
34
+ "why": "the token argument for one-tool-with-discriminator does not weaken over a transport. `tools/call` accepts an arbitrary argument object, so eleven resident schemas would still be a standing cost with no added capability.",
35
+ "package": "dsh-windows-parallel-mcp",
36
+ "bin": "wpm-mcp",
37
+ "entry": "lib/mcp-server.mjs",
38
+ "tool": "wpm",
39
+ "discriminator": "action",
40
+ "schemaSource": "src/schema/tools.json -- tools/list is GENERATED at start-up from the `tools` array below (one oneOf branch per action, its properties/required/additionalProperties copied field for field), never transcribed; scripts/check-mcp-schema.mjs keeps that honest",
41
+ "implementationSource": "lib/index.js#apply -- the same host half the DSH form uses, so toRequest(), the gate order, the refusal vocabulary, the policy ceiling, the audit line and format() are shared code, not a second copy",
42
+ "settingsSource": "process environment (WPM_*), never a call argument: a client that could raise its own `policy` or add itself to `appLaunchAllow` would make the authorization model decorative",
43
+ "imageContent": "a screenshot is attached as base64 image content in tools/call, because a file path is meaningless to a caller that is not on this machine (WPM_MCP_NO_IMAGE=1 opts out)",
44
+ "transportDiscipline": "stdout is the protocol channel and nothing else is written there; a notification gets no reply; a non-JSON line gets -32700 with a null id and the server survives; an unknown method gets -32601 and the server survives; replies are keyed by id because the worker is asynchronous."
45
+ },
30
46
  "notes": [
47
+ "0.8.0 adds NO action and NO refusal code. It adds a second transport for the same eleven actions, which is why `mcpProjection` names this file as the schema source: two delivery forms describing one engine is exactly the shape that drifts when one of them is copied.",
31
48
  "The eleven tool names are fixed here so both delivery forms expose the same action surface.",
32
49
  "src/engine/engine.ps1 is the only implementation; this file is the contract, not a second implementation.",
33
50
  "docs/refusals.md is the human-readable form of `refusals`; scripts/check-refusals.mjs keeps them equal.",