@remcp/docsy-cli 0.1.0 → 0.1.2

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
@@ -20,6 +20,6 @@ docsy mcp
20
20
 
21
21
  For one-off use, run `npx @remcp/docsy-cli --help`.
22
22
 
23
- The `@remcp/docsy-cli` package depends on the same-version `@remcp/docsy-sdk` package; the SDK must be published first. Anonymous queries are limited to public documentation. MIT License, copyright Anton Baider.
23
+ The `@remcp/docsy-cli` package declares an exact compatible `@remcp/docsy-sdk` dependency; the SDK must be published first. Anonymous queries are limited to public documentation. MIT License, copyright Anton Baider.
24
24
 
25
25
  Documentation: https://docsy.remcp.site/docs
package/dist/help.js ADDED
@@ -0,0 +1,5 @@
1
+ /** CLI help behavior shared by both bare commands and subcommands. */
2
+ export function wantsHelp(command, args) {
3
+ return !command || command === "help" || command === "--help" || command === "-h" ||
4
+ args.includes("--help") || args.includes("-h");
5
+ }
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { Docsy } from "@remcp/docsy-sdk";
3
3
  import { setup } from "./setup.js";
4
+ import { wantsHelp } from "./help.js";
4
5
  const args = process.argv.slice(2);
5
6
  const command = args.shift();
6
7
  const value = (flag) => { const i = args.indexOf(flag); return i >= 0 ? args[i + 1] : undefined; };
@@ -38,7 +39,7 @@ function help() {
38
39
  ].join("\n"));
39
40
  }
40
41
  async function main() {
41
- if (!command || command === "help" || has("--help")) {
42
+ if (wantsHelp(command, args)) {
42
43
  help();
43
44
  return;
44
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remcp/docsy-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Docsy CLI for current documentation and MCP setup",
5
5
  "type": "module",
6
6
  "bin": {
@@ -17,7 +17,7 @@
17
17
  "lint": "eslint src test --ext .ts,.tsx,.js,.mjs"
18
18
  },
19
19
  "dependencies": {
20
- "@remcp/docsy-sdk": "0.1.0"
20
+ "@remcp/docsy-sdk": "0.1.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^24.10.0",
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
33
- "url": "git+https://github.com/antonbaider/docsy.git",
33
+ "url": "git+https://github.com/getremcp/docsy.git",
34
34
  "directory": "packages/cli"
35
35
  },
36
36
  "homepage": "https://docsy.remcp.site/",
37
37
  "bugs": {
38
- "url": "https://github.com/antonbaider/docsy/issues"
38
+ "url": "https://github.com/getremcp/docsy/issues"
39
39
  }
40
40
  }