ctx7 0.2.4-canary.0 → 0.3.0
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 +21 -0
- package/README.md +55 -3
- package/dist/index.js +641 -549
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Upstash, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -16,6 +16,18 @@ npm install -g ctx7
|
|
|
16
16
|
|
|
17
17
|
## Quick Start
|
|
18
18
|
|
|
19
|
+
```bash
|
|
20
|
+
# Set up Context7 MCP for your coding agents
|
|
21
|
+
ctx7 setup
|
|
22
|
+
|
|
23
|
+
# Target a specific agent
|
|
24
|
+
ctx7 setup --cursor
|
|
25
|
+
ctx7 setup --claude
|
|
26
|
+
ctx7 setup --opencode
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Skills
|
|
30
|
+
|
|
19
31
|
```bash
|
|
20
32
|
# Search for skills
|
|
21
33
|
ctx7 skills search pdf
|
|
@@ -32,6 +44,32 @@ ctx7 skills list --claude
|
|
|
32
44
|
|
|
33
45
|
## Usage
|
|
34
46
|
|
|
47
|
+
### Setup
|
|
48
|
+
|
|
49
|
+
Configure Context7 MCP and a rule for your AI coding agents. Authenticates via OAuth, generates an API key, and writes the config.
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Interactive (prompts for agent selection)
|
|
53
|
+
ctx7 setup
|
|
54
|
+
|
|
55
|
+
# Target specific agents
|
|
56
|
+
ctx7 setup --cursor
|
|
57
|
+
ctx7 setup --claude
|
|
58
|
+
ctx7 setup --opencode
|
|
59
|
+
|
|
60
|
+
# Use an existing API key instead of OAuth
|
|
61
|
+
ctx7 setup --api-key YOUR_API_KEY
|
|
62
|
+
|
|
63
|
+
# Use OAuth endpoint (IDE handles auth flow)
|
|
64
|
+
ctx7 setup --oauth
|
|
65
|
+
|
|
66
|
+
# Configure for current project only (default is global)
|
|
67
|
+
ctx7 setup --project
|
|
68
|
+
|
|
69
|
+
# Skip prompts
|
|
70
|
+
ctx7 setup --yes
|
|
71
|
+
```
|
|
72
|
+
|
|
35
73
|
### Generate skills
|
|
36
74
|
|
|
37
75
|
Generate custom skills tailored to your use case using AI. Requires authentication.
|
|
@@ -50,6 +88,7 @@ ctx7 skills g
|
|
|
50
88
|
# Generate and install to a specific client
|
|
51
89
|
ctx7 skills generate --cursor
|
|
52
90
|
ctx7 skills generate --claude
|
|
91
|
+
ctx7 skills generate --universal
|
|
53
92
|
|
|
54
93
|
# Generate globally
|
|
55
94
|
ctx7 skills generate --global
|
|
@@ -96,6 +135,7 @@ ctx7 skills install /anthropics/skills pdf commit
|
|
|
96
135
|
# Install to a specific client
|
|
97
136
|
ctx7 skills install /anthropics/skills pdf --cursor
|
|
98
137
|
ctx7 skills install /anthropics/skills pdf --claude
|
|
138
|
+
ctx7 skills install /anthropics/skills pdf --universal
|
|
99
139
|
|
|
100
140
|
# Install globally (home directory instead of current project)
|
|
101
141
|
ctx7 skills install /anthropics/skills pdf --global
|
|
@@ -119,6 +159,7 @@ View skills installed in your project or globally.
|
|
|
119
159
|
ctx7 skills list
|
|
120
160
|
ctx7 skills list --claude
|
|
121
161
|
ctx7 skills list --cursor
|
|
162
|
+
ctx7 skills list --universal
|
|
122
163
|
ctx7 skills list --global
|
|
123
164
|
```
|
|
124
165
|
|
|
@@ -137,6 +178,7 @@ Uninstall a skill from your project.
|
|
|
137
178
|
```bash
|
|
138
179
|
ctx7 skills remove pdf
|
|
139
180
|
ctx7 skills remove pdf --claude
|
|
181
|
+
ctx7 skills remove pdf --universal
|
|
140
182
|
ctx7 skills remove pdf --global
|
|
141
183
|
```
|
|
142
184
|
|
|
@@ -146,11 +188,9 @@ The CLI automatically detects which AI coding assistants you have installed and
|
|
|
146
188
|
|
|
147
189
|
| Client | Skills Directory |
|
|
148
190
|
|--------|-----------------|
|
|
191
|
+
| Universal (Amp, Codex, Gemini CLI, GitHub Copilot, OpenCode + more) | `.agents/skills/` |
|
|
149
192
|
| Claude Code | `.claude/skills/` |
|
|
150
193
|
| Cursor | `.cursor/skills/` |
|
|
151
|
-
| Codex | `.codex/skills/` |
|
|
152
|
-
| OpenCode | `.opencode/skills/` |
|
|
153
|
-
| Amp | `.agents/skills/` |
|
|
154
194
|
| Antigravity | `.agent/skills/` |
|
|
155
195
|
|
|
156
196
|
## Shortcuts
|
|
@@ -164,6 +204,18 @@ ctx7 skills gen # skills generate
|
|
|
164
204
|
ctx7 skills g # skills generate
|
|
165
205
|
```
|
|
166
206
|
|
|
207
|
+
## Disabling Telemetry
|
|
208
|
+
|
|
209
|
+
The CLI collects anonymous usage data to help improve the product. To disable telemetry, set the `CTX7_TELEMETRY_DISABLED` environment variable:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# For a single command
|
|
213
|
+
CTX7_TELEMETRY_DISABLED=1 ctx7 skills search pdf
|
|
214
|
+
|
|
215
|
+
# Or export in your shell profile (~/.bashrc, ~/.zshrc, etc.)
|
|
216
|
+
export CTX7_TELEMETRY_DISABLED=1
|
|
217
|
+
```
|
|
218
|
+
|
|
167
219
|
## Learn More
|
|
168
220
|
|
|
169
221
|
Visit [context7.com](https://context7.com) to browse the skills registry and discover available skills.
|