@pkgseer/cli 0.1.0-alpha.3 → 0.1.1
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 +1 -0
- package/README.md +69 -47
- package/dist/cli.js +3817 -329
- package/dist/index.js +1 -1
- package/dist/shared/{chunk-awxns4wd.js → chunk-3ne7e7xh.js} +1 -1
- package/package.json +5 -1
package/LICENSE
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
14
|
-
|
|
11
|
+
```bash
|
|
12
|
+
npx @pkgseer/cli --help
|
|
15
13
|
```
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
For frequent use, install globally:
|
|
18
16
|
|
|
19
17
|
```bash
|
|
20
|
-
|
|
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
|
-
##
|
|
21
|
+
## Getting Started
|
|
28
22
|
|
|
29
|
-
|
|
30
|
-
pkgseer --help # Show all commands
|
|
31
|
-
pkgseer --version # Show version
|
|
23
|
+
### 1. Authenticate (Recommended)
|
|
32
24
|
|
|
33
|
-
|
|
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
|
-
|
|
27
|
+
```bash
|
|
28
|
+
pkgseer login
|
|
38
29
|
```
|
|
39
30
|
|
|
40
|
-
|
|
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
|
-
|
|
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
|
-
|
|
35
|
+
```bash
|
|
36
|
+
pkgseer auth status
|
|
37
|
+
```
|
|
55
38
|
|
|
56
|
-
###
|
|
39
|
+
### 2. Use with AI Assistants
|
|
57
40
|
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
|
|
58
|
+
#### Claude Desktop
|
|
59
|
+
|
|
60
|
+
Add this to your Claude Desktop configuration file:
|
|
79
61
|
|
|
80
|
-
|
|
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
|
-
|
|
76
|
+
Once configured, your AI assistant can use tools to answer questions like:
|
|
94
77
|
|
|
95
|
-
|
|
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
|
-
#
|
|
99
|
-
pkgseer
|
|
111
|
+
pkgseer --help # Show all available commands
|
|
112
|
+
pkgseer --version # Show version number
|
|
100
113
|
|
|
101
|
-
#
|
|
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)
|