@pkgseer/cli 0.1.0-alpha.3 → 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/LICENSE CHANGED
@@ -20,3 +20,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
22
 
23
+
package/README.md CHANGED
@@ -2,67 +2,47 @@
2
2
 
3
3
  CLI and MCP server for [PkgSeer](https://pkgseer.dev) — package intelligence for developers and AI assistants.
4
4
 
5
- Query package metadata, security vulnerabilities, dependencies, and quality metrics across npm and PyPI registries.
5
+ Get insights about packages across npm, PyPI, and Hex registries: metadata, security vulnerabilities, dependencies, and quality metrics. Works standalone or as an MCP server for AI assistants like Claude and Cursor.
6
6
 
7
7
  ## Installation
8
8
 
9
- ```bash
10
- # Run directly with npx (no install needed)
11
- npx @pkgseer/cli
9
+ The easiest way to get started is using npx — no installation required:
12
10
 
13
- # Or install globally
14
- npm install -g @pkgseer/cli
11
+ ```bash
12
+ npx @pkgseer/cli --help
15
13
  ```
16
14
 
17
- ## Quick Start
15
+ For frequent use, install globally:
18
16
 
19
17
  ```bash
20
- # Authenticate (optional, for higher rate limits)
21
- pkgseer login
22
-
23
- # Start MCP server for AI assistants
24
- pkgseer mcp
18
+ npm install -g @pkgseer/cli
25
19
  ```
26
20
 
27
- ## CLI Commands
21
+ ## Getting Started
28
22
 
29
- ```bash
30
- pkgseer --help # Show all commands
31
- pkgseer --version # Show version
23
+ ### 1. Authenticate (Recommended)
32
24
 
33
- pkgseer login # Authenticate with PkgSeer
34
- pkgseer logout # Clear stored credentials
35
- pkgseer auth status # Check authentication status
25
+ While you can use PkgSeer without authentication, logging in gives you higher rate limits and access to all features:
36
26
 
37
- pkgseer mcp # Start MCP server
27
+ ```bash
28
+ pkgseer login
38
29
  ```
39
30
 
40
- ## MCP Server
41
-
42
- The MCP (Model Context Protocol) server exposes package intelligence tools to AI assistants like Claude, Cursor, and others.
43
-
44
- ### Available Tools
31
+ This opens your browser to authenticate with your PkgSeer account. Your credentials are stored securely in `~/.pkgseer/`.
45
32
 
46
- | Tool | Description |
47
- |------|-------------|
48
- | `package_summary` | Package metadata, versions, security advisories, quickstart info |
49
- | `package_vulnerabilities` | Security vulnerabilities affecting a package |
50
- | `package_dependencies` | Direct and transitive dependency tree |
51
- | `package_quality` | Quality metrics and scores |
52
- | `compare_packages` | Side-by-side comparison of multiple packages |
33
+ To check your authentication status:
53
34
 
54
- All tools support both `npm` and `pypi` registries.
35
+ ```bash
36
+ pkgseer auth status
37
+ ```
55
38
 
56
- ### Configuration
39
+ ### 2. Use with AI Assistants
57
40
 
58
- | Environment Variable | Default | Description |
59
- |---------------------|---------|-------------|
60
- | `PKGSEER_API_URL` | `https://pkgseer.dev/api/graphql` | API endpoint |
61
- | `PKGSEER_API_TOKEN` | — | Authentication token (from `pkgseer login`) |
41
+ The main use case for this CLI is as an MCP (Model Context Protocol) server that gives AI assistants access to package intelligence.
62
42
 
63
- ### Cursor Integration
43
+ #### Cursor IDE
64
44
 
65
- Add to `.cursor/mcp.json`:
45
+ Add this to your `.cursor/mcp.json` file:
66
46
 
67
47
  ```json
68
48
  {
@@ -75,9 +55,12 @@ Add to `.cursor/mcp.json`:
75
55
  }
76
56
  ```
77
57
 
78
- ### Claude Desktop Integration
58
+ #### Claude Desktop
59
+
60
+ Add this to your Claude Desktop configuration file:
79
61
 
80
- Add to Claude Desktop config:
62
+ **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
63
+ **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
81
64
 
82
65
  ```json
83
66
  {
@@ -90,17 +73,56 @@ Add to Claude Desktop config:
90
73
  }
91
74
  ```
92
75
 
93
- ## Authentication
76
+ Once configured, your AI assistant can use tools to answer questions like:
94
77
 
95
- Authentication is optional but recommended for higher rate limits.
78
+ - "What security vulnerabilities does lodash have?"
79
+ - "Compare react vs preact vs solid-js"
80
+ - "What are the dependencies of express?"
81
+
82
+ #### Prompt for AI Assistants
83
+
84
+ To help your AI assistant use PkgSeer proactively, add this to your project rules (`.cursor/rules`, `AGENTS.md`, or similar):
85
+
86
+ ```markdown
87
+ When working with dependencies:
88
+
89
+ - Use PkgSeer MCP tools to check for security vulnerabilities before adding new packages
90
+ - Compare package alternatives with compare_packages when multiple options exist
91
+ - Review package quality metrics to ensure dependencies are well-maintained
92
+ ```
93
+
94
+ ## Available Tools
95
+
96
+ When running as an MCP server, the following tools are available to AI assistants:
97
+
98
+ | Tool | What it does |
99
+ | ------------------------- | ----------------------------------------------------------------------------------- |
100
+ | `package_summary` | Get package metadata, latest versions, security advisories, and quickstart examples |
101
+ | `package_vulnerabilities` | Find known security vulnerabilities affecting a package |
102
+ | `package_dependencies` | Explore the dependency tree (direct and transitive) |
103
+ | `package_quality` | View quality metrics and maintenance scores |
104
+ | `compare_packages` | Compare multiple packages side-by-side |
105
+
106
+ All tools work with **npm**, **PyPI**, and **Hex** registries.
107
+
108
+ ## CLI Commands
96
109
 
97
110
  ```bash
98
- # Opens browser for OAuth login
99
- pkgseer login
111
+ pkgseer --help # Show all available commands
112
+ pkgseer --version # Show version number
100
113
 
101
- # Credentials stored in ~/.pkgseer/
114
+ pkgseer login # Authenticate with your PkgSeer account
115
+ pkgseer logout # Sign out and clear stored credentials
116
+ pkgseer auth status # Check if you're logged in and token validity
117
+
118
+ pkgseer mcp # Start the MCP server (for AI assistant integration)
102
119
  ```
103
120
 
121
+ ## Need Help?
122
+
123
+ - Visit [pkgseer.dev](https://pkgseer.dev) for documentation
124
+ - Report issues on [GitHub](https://github.com/pkgseer/pkgseer-cli/issues)
125
+
104
126
  ## License
105
127
 
106
128
  MIT © [Juha Litola](https://github.com/pkgseer)