@remcp/docsy-cli 0.1.2 → 0.1.3

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/README.md +67 -12
  2. package/package.json +16 -4
package/README.md CHANGED
@@ -1,25 +1,80 @@
1
- # @remcp/docsy-cli
1
+ # Docsy CLI
2
2
 
3
- Command-line client for the Docsy public documentation API and MCP setup.
3
+ **Find version-aware library documentation from the terminal**, with original source links, and configure supported AI coding clients to connect to Docsy.
4
+
5
+ [Website](https://docsy.remcp.site) · [Documentation](https://docsy.remcp.site/docs) · [npm](https://www.npmjs.com/package/@remcp/docsy-cli) · [Source and releases](https://github.com/getremcp/docsy) · [Issues](https://github.com/getremcp/docsy/issues)
4
6
 
5
7
  ## Install
6
8
 
7
- ```sh
9
+ Requires Node.js 22 or newer.
10
+
11
+ ~~~sh
8
12
  npm install --global @remcp/docsy-cli
9
- ```
13
+ docsy --help
14
+ ~~~
15
+
16
+ For a one-off run without global installation:
10
17
 
11
- ## Use
18
+ ~~~sh
19
+ npx --yes --package=@remcp/docsy-cli docsy library react
20
+ ~~~
12
21
 
13
- ```sh
22
+ ## Search documentation
23
+
24
+ ~~~sh
25
+ # Find an indexed library and its versions
14
26
  docsy library react
15
- docsy search "effect cleanup" --library react
27
+
28
+ # Retrieve documentation context with source links
16
29
  docsy docs /reactjs/react.dev "useEffect cleanup"
17
- docsy setup --claude
30
+
31
+ # Search within one library
32
+ docsy search "useEffect cleanup" --library react
33
+
34
+ # Retrieve structured output for automation
35
+ docsy library react --json
36
+
37
+ # Print the Docsy MCP server URL (does not start a local server)
18
38
  docsy mcp
19
- ```
39
+ ~~~
40
+
41
+ You can use `docsy --help`, `docsy -h` or `docsy help` to see the command reference.
42
+
43
+ ## Connect an AI coding client
44
+
45
+ Docsy provides a **remote** Streamable HTTP MCP server. You do not need to run the Docsy backend yourself.
46
+
47
+ ~~~sh
48
+ # Codex CLI (MCP configuration)
49
+ codex mcp add docsy --url https://docsy.remcp.site/mcp
50
+
51
+ # Claude Code (remote HTTP MCP server)
52
+ claude mcp add --transport http docsy https://docsy.remcp.site/mcp
53
+
54
+ # Or generate client-specific configuration
55
+ docsy setup --cursor
56
+ docsy setup --claude
57
+ docsy setup --codex
58
+ ~~~
59
+
60
+ The **MCP endpoint currently requires OAuth 2.1 account authorization**. Finish the sign-in flow in your MCP client. For Codex CLI, run `codex mcp login docsy` after adding the server. If you get HTTP `401` from the MCP endpoint, authenticate instead of changing the endpoint URL. Setup only writes configuration; it does not grant access automatically.
61
+
62
+ ## API key and custom deployment
63
+
64
+ Public documentation lookup through the HTTP API can be anonymous, subject to rate limits. For operations that require a Docsy API key, set `DOCSY_API_KEY` in your local environment, or pass `--api-key`; avoid placing keys in shared scripts or terminal history.
65
+
66
+ ~~~sh
67
+ docsy library react --base-url https://docsy.remcp.site
68
+ docsy --help
69
+ ~~~
70
+
71
+ Supported commands include `library`, `docs`, `search`, `mcp`, `setup`, `metrics`, `refresh` and authenticated source-management operations. Run `docsy help` for flags.
20
72
 
21
- For one-off use, run `npx @remcp/docsy-cli --help`.
73
+ ## Troubleshooting
22
74
 
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.
75
+ - **`docsy: command not found`:** install the package globally, or use `npx` as above.
76
+ - **HTTP 401 from MCP:** complete OAuth authorization in your MCP-capable client.
77
+ - **No results:** check the library ID with `docsy library <name>`; use an exact version when available.
78
+ - **Need support?** See https://docsy.remcp.site/support.
24
79
 
25
- Documentation: https://docsy.remcp.site/docs
80
+ This CLI depends on a compatible exact version of [@remcp/docsy-sdk](https://www.npmjs.com/package/@remcp/docsy-sdk) and contains no hosted backend code. MIT License.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@remcp/docsy-cli",
3
- "version": "0.1.2",
4
- "description": "Docsy CLI for current documentation and MCP setup",
3
+ "version": "0.1.3",
4
+ "description": "Docsy CLI: search versioned developer docs with source links and configure MCP clients",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "docsy": "./dist/index.js"
@@ -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.1"
20
+ "@remcp/docsy-sdk": "0.1.2"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^24.10.0",
@@ -33,8 +33,20 @@
33
33
  "url": "git+https://github.com/getremcp/docsy.git",
34
34
  "directory": "packages/cli"
35
35
  },
36
- "homepage": "https://docsy.remcp.site/",
36
+ "homepage": "https://docsy.remcp.site/docs",
37
37
  "bugs": {
38
38
  "url": "https://github.com/getremcp/docsy/issues"
39
+ },
40
+ "keywords": [
41
+ "docsy",
42
+ "cli",
43
+ "developer-documentation",
44
+ "mcp",
45
+ "codex",
46
+ "claude",
47
+ "source-links"
48
+ ],
49
+ "engines": {
50
+ "node": ">=22"
39
51
  }
40
52
  }