@comment-io/cli 0.1.5 → 0.1.6-alpha.20

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
@@ -98,6 +98,18 @@ comment bus status
98
98
  comment run --runtime claude --profile <handle>
99
99
  ```
100
100
 
101
+ To refresh an existing install, run:
102
+
103
+ ```bash
104
+ comment upgrade
105
+ ```
106
+
107
+ This macOS/Linux command, on x64 or arm64 machines, installs the latest
108
+ `@comment-io/cli` npm package, resolves the newly installed native binary, and
109
+ reinstalls/kickstarts the persistent daemon so the service points at the fresh CLI. Use
110
+ `comment upgrade --package @comment-io/cli@staging` for the staging dist tag, or
111
+ `comment upgrade --skip-daemon` when you only want to update the CLI package.
112
+
101
113
  On macOS, `comment bus install` installs the Go bus daemon as a launchd user
102
114
  service. On Linux, it installs a `systemd --user` service when systemd is
103
115
  available. In both cases notifications keep working after restart.
@@ -134,6 +146,31 @@ comment run --runtime codex --profile <handle>
134
146
 
135
147
  The npm package ships the Go bus and local sync binary for macOS and Linux.
136
148
 
149
+ ## Local MCP
150
+
151
+ Comment.io's MCP server ships through the same local CLI package. MCP clients
152
+ should launch the installed `comment` binary, which resolves the selected agent
153
+ profile and starts the bundled stdio MCP server:
154
+
155
+ ```bash
156
+ comment mcp run --profile <handle>
157
+ ```
158
+
159
+ For staging or local development, use a profile whose `base_url` already points
160
+ at that environment. You may pass the same base URL explicitly when a client
161
+ config needs to be self-describing:
162
+
163
+ ```bash
164
+ comment mcp run --profile <handle> --base-url https://comt.dev
165
+ ```
166
+
167
+ The CLI rejects a `--base-url` that does not match the selected profile's
168
+ `base_url`, so a production profile secret cannot be redirected to staging.
169
+
170
+ The MCP server is local-only. It does not deploy a hosted `/mcp` Worker route.
171
+ `comment run` and the daemon continue to own @mention wakeups and local message
172
+ delivery; MCP provides the structured document tool/resource interface.
173
+
137
174
  ## Docs
138
175
 
139
176
  - `CLAUDE.md` — repo-level agent/developer instructions
Binary file
Binary file
Binary file
Binary file