@remcp/remcp 0.2.203 → 0.2.204

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.mjs +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remcp/remcp",
3
- "version": "0.2.203",
3
+ "version": "0.2.204",
4
4
  "description": "ReMCP device client: pair a computer with ReMCP and run the outbound-only agent that hosts the local MCP runtime.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/cli.mjs CHANGED
@@ -40,6 +40,13 @@ function printHelp() {
40
40
  export async function main(argv = process.argv.slice(2)) {
41
41
  const { command, flags, positional } = parse(argv);
42
42
 
43
+ // Help must be side-effect free even for mutating subcommands. Older agents
44
+ // incorrectly treated `remcp update --help` as an update and ran npm.
45
+ if (command === '--help' || command === '-h' || flags.help === true || flags.h === true) {
46
+ printHelp();
47
+ return;
48
+ }
49
+
43
50
  if (command === '--version' || command === '-v' || command === 'version') {
44
51
  console.log(VERSION);
45
52
  return;