utm-mcp 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -64,9 +64,10 @@ The guest tools are the same for Linux and Windows; they go through the QEMU gue
64
64
  ## Feedback
65
65
 
66
66
  Off unless you turn it on. Set `UTM_MCP_FEEDBACK_ENDPOINT` to the URL of an
67
- [mcp-feedback](https://github.com/krishchow/feedback) ingest hub, and the server offers agents a
68
- `submit_feedback` tool for reporting what went wrong (or right) with its tools. Without it there is
69
- no such tool and nothing is sent anywhere.
67
+ [mcp-feedback](https://github.com/krishchow/feedback) ingest hub, or `MCP_FEEDBACK_ENDPOINT` to cover
68
+ every MCP server that reads it at once, and the server offers agents a `submit_feedback` tool for
69
+ reporting what went wrong (or right) with its tools. The first wins when both are set. With neither
70
+ there is no such tool and nothing is sent anywhere.
70
71
 
71
72
  - The agent shows you each report and sends it only after you say yes. The tool's description names
72
73
  the host it goes to.
@@ -86,7 +87,8 @@ Reports are anonymous: each installation is a random `install:…` id.
86
87
  - `src/policy.mjs`: the rules above and the audit log.
87
88
  - `src/exec.mjs`, `src/applescript.mjs`: every local command the server can run.
88
89
  - `src/media.mjs`: the cloud-init seed and the Windows answer file.
89
- - `src/feedback.mjs`: `submit_feedback`, when `UTM_MCP_FEEDBACK_ENDPOINT` is set.
90
+ - `src/feedback.mjs`: `submit_feedback`, when `UTM_MCP_FEEDBACK_ENDPOINT` or `MCP_FEEDBACK_ENDPOINT`
91
+ is set.
90
92
  - `skills/utm/`: the skill, with references for Linux guests, Windows guests, and doing the same
91
93
  things by hand.
92
94
  - `dev/call.mjs`: call one tool over stdio, for development: `node dev/call.mjs list_vms`.
@@ -94,16 +96,26 @@ Reports are anonymous: each installation is a random `install:…` id.
94
96
 
95
97
  ## Releasing
96
98
 
97
- From a clean, up-to-date `main`:
99
+ Versions come from [Changesets](https://github.com/changesets/changesets). A PR that changes what
100
+ users get adds one: `npx changeset`, or a `.changeset/<short-name>.md` file naming the bump (`patch`,
101
+ `minor`, `major`) and one line for the changelog. Don't edit `version` or `CHANGELOG.md` by hand.
102
+
103
+ 1. When changesets land on `main`, the Release workflow opens or updates a **Version Packages** PR
104
+ that bumps `package.json` and writes `CHANGELOG.md`.
105
+ 2. Merging it publishes to npm (trusted publishing), tags `v<version>` and creates the GitHub Release.
106
+ 3. Once npm lists the version, the workflow regenerates the plugin manifests, which pin
107
+ `utm-mcp@<version>`, and pushes them to `main`. They trail `package.json` for those few minutes and
108
+ never lead it; `npm run validate` checks exactly that.
109
+
110
+ Without the workflow, from a clean, up-to-date `main` with pending changesets:
98
111
 
99
112
  ```bash
100
- npm run release -- --otp=<code> # publish the version in package.json
101
- npm run release -- patch --otp=<code> # or minor, major, x.y.z: bump first
113
+ npm run release -- --otp=<code>
102
114
  ```
103
115
 
104
- It bumps the version, regenerates the plugin manifests for it, validates and publishes to npm, then
105
- commits the bump, tags `v<version>` and pushes. Nothing is committed, tagged or pushed unless npm
106
- accepted the package. `--dry-run` goes as far as `npm publish --dry-run` and puts everything back.
116
+ It consumes the changesets, regenerates the plugin manifests, validates and publishes, then commits,
117
+ tags and pushes. Nothing is committed, tagged or pushed unless npm accepted the package.
118
+ `--dry-run` goes as far as `npm publish --dry-run` and puts everything back.
107
119
 
108
120
  ## Requirements
109
121
 
package/agentdist.json CHANGED
@@ -33,7 +33,14 @@
33
33
  "utm": {
34
34
  "command": "npx",
35
35
  "args": ["-y", "utm-mcp@{{version}}"],
36
- "envPassthrough": ["UTM_MCP_HOST_DIRS", "UTM_MCP_ALLOW_VMS", "UTM_MCP_HOME", "UTM_MCP_FEEDBACK_ENDPOINT"],
36
+ "envPassthrough": [
37
+ "UTM_MCP_HOST_DIRS",
38
+ "UTM_MCP_ALLOW_VMS",
39
+ "UTM_MCP_HOME",
40
+ "UTM_MCP_FEEDBACK_ENDPOINT",
41
+ "MCP_FEEDBACK_ENDPOINT",
42
+ "MCP_FEEDBACK_DISABLED"
43
+ ],
37
44
  "startupTimeoutSec": 60,
38
45
  "toolTimeoutSec": 900
39
46
  }
@@ -49,7 +56,13 @@
49
56
  "description": "Where the server keeps generated install media, its exchange directory and its audit log. Defaults to ~/.utm-mcp."
50
57
  },
51
58
  "UTM_MCP_FEEDBACK_ENDPOINT": {
52
- "description": "URL of an mcp-feedback ingest hub. When set, agents can send feedback about this server there, each report confirmed by the user first. Unset, feedback is off."
59
+ "description": "URL of an mcp-feedback ingest hub. When set, agents can send feedback about this server there, each report confirmed by the user first. Unset, MCP_FEEDBACK_ENDPOINT is used; with neither, feedback is off."
60
+ },
61
+ "MCP_FEEDBACK_ENDPOINT": {
62
+ "description": "The same, shared by every MCP server that reads it, so one setting covers them all."
63
+ },
64
+ "MCP_FEEDBACK_DISABLED": {
65
+ "description": "1 turns feedback off whatever endpoint is set."
53
66
  }
54
67
  }
55
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utm-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "MCP server and skill that let an AI coding agent create, run, snapshot and operate UTM virtual machines on macOS through a fixed set of operations.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,8 +27,10 @@
27
27
  "node": ">=22.13"
28
28
  },
29
29
  "scripts": {
30
- "validate": "agentdist validate . && agentdist pack . --check",
30
+ "validate": "agentdist validate . && node scripts/check-plugins.mjs",
31
31
  "gen:plugins": "agentdist pack .",
32
+ "changeset": "changeset",
33
+ "version-packages": "changeset version && npm install --package-lock-only --ignore-scripts --force",
32
34
  "prepublishOnly": "npm run validate",
33
35
  "release": "node scripts/release.mjs",
34
36
  "start": "node bin/utm-mcp.mjs"
@@ -36,10 +38,14 @@
36
38
  "dependencies": {
37
39
  "@modelcontextprotocol/sdk": "^1.32.2",
38
40
  "agentdist": "^0.1.0",
39
- "mcp-feedback": "^0.8.0",
41
+ "mcp-feedback": "^0.9.0",
40
42
  "zod": "^4.6.7"
41
43
  },
42
44
  "publishConfig": {
43
45
  "access": "public"
46
+ },
47
+ "devDependencies": {
48
+ "@changesets/changelog-github": "^1.0.1",
49
+ "@changesets/cli": "^3.1.0"
44
50
  }
45
51
  }
package/src/feedback.mjs CHANGED
@@ -1,19 +1,21 @@
1
1
  // Agent feedback about this server, through mcp-feedback. A copy running on a user's Mac has no store
2
2
  // its maintainer could read, so reports go to an mcp-feedback ingest hub, and only when the person
3
- // running the server names one in UTM_MCP_FEEDBACK_ENDPOINT. The repository names no hub: without the
4
- // variable there is no submit_feedback tool and nothing is sent anywhere. Every report is shown to the
5
- // user and sent only after they confirm it.
3
+ // running the server names one: UTM_MCP_FEEDBACK_ENDPOINT, or MCP_FEEDBACK_ENDPOINT, shared by every
4
+ // server that reads it. The repository names no hub: with neither set there is no submit_feedback
5
+ // tool and nothing is sent anywhere. Every report is shown to the user and sent only after they
6
+ // confirm it.
6
7
  import { readFile } from "node:fs/promises";
7
8
  import { arch, release } from "node:os";
8
9
  import { dirname, join } from "node:path";
9
10
  import { feedbackConfirmInstructions, registerFeedback } from "mcp-feedback";
10
- import { feedbackDisabled, remoteStore } from "mcp-feedback/remote";
11
+ import { feedbackEndpoint, remoteStore } from "mcp-feedback/remote";
11
12
  import { UTMCTL } from "./exec.mjs";
12
13
  import { audit, HOME, isManaged } from "./policy.mjs";
13
14
  import * as utm from "./utm.mjs";
14
15
 
15
- const ENDPOINT = process.env.UTM_MCP_FEEDBACK_ENDPOINT?.trim();
16
- const enabled = Boolean(ENDPOINT) && !feedbackDisabled();
16
+ // Undefined when neither variable is set or MCP_FEEDBACK_DISABLED is.
17
+ const ENDPOINT = feedbackEndpoint({ variable: "UTM_MCP_FEEDBACK_ENDPOINT" });
18
+ const enabled = Boolean(ENDPOINT);
17
19
 
18
20
  /** Appended to the server's instructions, or empty when feedback is off. */
19
21
  export const feedbackGuidance = enabled