claude-code-ultimate-guide-mcp 1.0.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/README.md +230 -0
- package/content/claude-code-releases.yaml +701 -0
- package/content/llms.txt +166 -0
- package/content/reference.yaml +1625 -0
- package/dist/chunk-2OLPHMWN.js +254 -0
- package/dist/content-LZDXNAPI.js +26 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +15284 -0
- package/package.json +42 -0
package/README.md
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# claude-code-ultimate-guide-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for the [Claude Code Ultimate Guide](https://github.com/FlorianBruniaux/claude-code-ultimate-guide) — search, read, and explore 20,000+ lines of documentation directly from Claude Code or any MCP-compatible client.
|
|
4
|
+
|
|
5
|
+
No need to clone the repo. The guide's structured index is bundled in the package (~130KB compressed), and file content is fetched from GitHub on demand with 24h local cache.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### Quick start (npx)
|
|
10
|
+
|
|
11
|
+
Add to `~/.claude.json` (user-level, all projects):
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"mcpServers": {
|
|
16
|
+
"claude-code-guide": {
|
|
17
|
+
"type": "stdio",
|
|
18
|
+
"command": "npx",
|
|
19
|
+
"args": ["-y", "claude-code-ultimate-guide-mcp"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Global install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g claude-code-ultimate-guide-mcp
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"mcpServers": {
|
|
34
|
+
"claude-code-guide": {
|
|
35
|
+
"type": "stdio",
|
|
36
|
+
"command": "claude-code-guide-mcp"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Per-project
|
|
43
|
+
|
|
44
|
+
Add to `.claude/settings.json` at your repo root.
|
|
45
|
+
|
|
46
|
+
## Tools
|
|
47
|
+
|
|
48
|
+
### Search & Navigation
|
|
49
|
+
|
|
50
|
+
| Tool | Signature | Description |
|
|
51
|
+
|------|-----------|-------------|
|
|
52
|
+
| `search_guide` | `(query, limit?)` | Search by keyword or question across 882 indexed entries. Returns ranked results with GitHub links. |
|
|
53
|
+
| `read_section` | `(path, offset?, limit?)` | Read a file section with pagination (500 lines max per call). Returns GitHub + guide site links. |
|
|
54
|
+
| `list_topics` | `()` | Browse all 25 topic categories in the guide with entry counts. |
|
|
55
|
+
|
|
56
|
+
### Templates & Examples
|
|
57
|
+
|
|
58
|
+
| Tool | Signature | Description |
|
|
59
|
+
|------|-----------|-------------|
|
|
60
|
+
| `get_example` | `(name)` | Fetch a production-ready template by exact name (agents, hooks, commands, skills). |
|
|
61
|
+
| `list_examples` | `(category?)` | List all templates by category with GitHub links. Categories: `agents`, `commands`, `hooks`, `skills`, `scripts`. |
|
|
62
|
+
| `search_examples` | `(query, limit?)` | Semantic search across all templates by intent (e.g. `"hook lint"`, `"agent code review"`). |
|
|
63
|
+
|
|
64
|
+
### What's New
|
|
65
|
+
|
|
66
|
+
| Tool | Signature | Description |
|
|
67
|
+
|------|-----------|-------------|
|
|
68
|
+
| `get_changelog` | `(count?)` | Last N entries from the guide CHANGELOG (default 5, max 20). |
|
|
69
|
+
| `get_digest` | `(period)` | Combined digest of guide changes + Claude Code CLI releases. Period: `day`, `week`, `month`. |
|
|
70
|
+
| `get_release` | `(version?, count?)` | Claude Code CLI release details. Pass a version (e.g. `"2.1.59"`) or omit for latest + recent N. |
|
|
71
|
+
| `compare_versions` | `(from, to?)` | Diff between two Claude Code versions: aggregated highlights and breaking changes for all releases in range. |
|
|
72
|
+
|
|
73
|
+
### Security Intelligence
|
|
74
|
+
|
|
75
|
+
| Tool | Signature | Description |
|
|
76
|
+
|------|-----------|-------------|
|
|
77
|
+
| `get_threat` | `(id)` | Look up a CVE (e.g. `"CVE-2025-53109"`) or attack technique (e.g. `"T001"`) from the threat database. |
|
|
78
|
+
| `list_threats` | `(category?)` | Browse the threat database. Without category: global summary with counts. With category: full section list. Categories: `cves`, `authors`, `skills`, `techniques`, `mitigations`, `sources`. |
|
|
79
|
+
|
|
80
|
+
### Quick Reference
|
|
81
|
+
|
|
82
|
+
| Tool | Signature | Description |
|
|
83
|
+
|------|-----------|-------------|
|
|
84
|
+
| `get_cheatsheet` | `(section?)` | Full cheatsheet or filtered to a specific section (e.g. `"hooks"`, `"agents"`, `"mcp"`). |
|
|
85
|
+
|
|
86
|
+
## Resources
|
|
87
|
+
|
|
88
|
+
| URI | Description |
|
|
89
|
+
|-----|-------------|
|
|
90
|
+
| `claude-code-guide://reference` | Full structured index (94KB YAML, ~900 entries) — use as fallback when search isn't enough |
|
|
91
|
+
| `claude-code-guide://releases` | Claude Code official releases history (YAML) |
|
|
92
|
+
| `claude-code-guide://llms` | Guide identity/navigation file (llms.txt) |
|
|
93
|
+
|
|
94
|
+
## Prompts
|
|
95
|
+
|
|
96
|
+
| Prompt | Args | Description |
|
|
97
|
+
|--------|------|-------------|
|
|
98
|
+
| `claude-code-expert` | `question?` | Activates expert mode with optimal workflow: search → read → example → YAML fallback |
|
|
99
|
+
|
|
100
|
+
## Onboarding (first run)
|
|
101
|
+
|
|
102
|
+
After installing the MCP server, run this in any Claude Code session for a personalized guided tour:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
claude "Use the claude-code-guide MCP server. Activate the claude-code-expert prompt, then run a personalized onboarding: ask me 3 questions about my goal, experience level, and preferred tone — then build a custom learning path using search_guide and read_section to navigate the guide with live source links."
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
This replaces the static URL-fetch approach with live search across 900+ indexed entries, always up to date, with GitHub + guide site links on every result.
|
|
109
|
+
|
|
110
|
+
## Usage examples
|
|
111
|
+
|
|
112
|
+
```
|
|
113
|
+
# Search
|
|
114
|
+
search_guide("hooks")
|
|
115
|
+
search_guide("cost optimization")
|
|
116
|
+
search_guide("custom agents")
|
|
117
|
+
|
|
118
|
+
# Read content
|
|
119
|
+
read_section("guide/ultimate-guide.md", 8077)
|
|
120
|
+
read_section("guide/cheatsheet.md")
|
|
121
|
+
|
|
122
|
+
# Templates
|
|
123
|
+
get_example("code-reviewer")
|
|
124
|
+
get_example("pre-commit hook")
|
|
125
|
+
list_examples("agents")
|
|
126
|
+
list_examples("hooks")
|
|
127
|
+
search_examples("hook lint")
|
|
128
|
+
search_examples("agent code review")
|
|
129
|
+
|
|
130
|
+
# What's new
|
|
131
|
+
get_digest("week")
|
|
132
|
+
get_digest("month")
|
|
133
|
+
get_changelog(10)
|
|
134
|
+
get_release()
|
|
135
|
+
get_release("2.1.59")
|
|
136
|
+
compare_versions("2.1.50", "2.1.59")
|
|
137
|
+
compare_versions("2.0.0")
|
|
138
|
+
|
|
139
|
+
# Security
|
|
140
|
+
get_threat("CVE-2025-53109")
|
|
141
|
+
get_threat("T001")
|
|
142
|
+
list_threats()
|
|
143
|
+
list_threats("cves")
|
|
144
|
+
list_threats("techniques")
|
|
145
|
+
|
|
146
|
+
# Quick reference
|
|
147
|
+
get_cheatsheet()
|
|
148
|
+
get_cheatsheet("hooks")
|
|
149
|
+
list_topics()
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Slash command shortcuts
|
|
153
|
+
|
|
154
|
+
Install the companion slash commands for one-keystroke access in Claude Code. They live in `.claude/commands/ccguide/` of the guide repo — copy or symlink to `~/.claude/commands/ccguide/` for global availability.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# From the guide repo root
|
|
158
|
+
cp -r .claude/commands/ccguide ~/.claude/commands/ccguide
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Once installed, these commands are available in any Claude Code session:
|
|
162
|
+
|
|
163
|
+
| Command | Example | What it does |
|
|
164
|
+
|---------|---------|--------------|
|
|
165
|
+
| `/ccguide:search <query>` | `/ccguide:search hooks` | Search + auto-read top results |
|
|
166
|
+
| `/ccguide:cheatsheet [section]` | `/ccguide:cheatsheet hooks` | Full cheatsheet or filtered |
|
|
167
|
+
| `/ccguide:digest <period>` | `/ccguide:digest week` | Guide + CC releases digest |
|
|
168
|
+
| `/ccguide:example <name>` | `/ccguide:example code-reviewer` | Fetch a template |
|
|
169
|
+
| `/ccguide:examples [category]` | `/ccguide:examples agents` | List templates by category |
|
|
170
|
+
| `/ccguide:release [version]` | `/ccguide:release 2.1.59` | CC CLI release details |
|
|
171
|
+
| `/ccguide:changelog [count]` | `/ccguide:changelog 10` | Recent guide CHANGELOG |
|
|
172
|
+
| `/ccguide:topics` | `/ccguide:topics` | Browse all 25 categories |
|
|
173
|
+
|
|
174
|
+
## Custom agent
|
|
175
|
+
|
|
176
|
+
A `claude-code-guide` agent is included in `.claude/agents/claude-code-guide.md`. It uses Haiku (fast, cheap) and searches the guide automatically before answering Claude Code questions.
|
|
177
|
+
|
|
178
|
+
Copy to your `~/.claude/agents/` to use it globally:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
cp .claude/agents/claude-code-guide.md ~/.claude/agents/claude-code-guide.md
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Then invoke with: `use claude-code-guide agent to answer: how do I configure hooks?`
|
|
185
|
+
|
|
186
|
+
## Dev mode (local repo)
|
|
187
|
+
|
|
188
|
+
If you've cloned the guide repo, set `GUIDE_ROOT` to read files locally instead of fetching from GitHub:
|
|
189
|
+
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"mcpServers": {
|
|
193
|
+
"claude-code-guide": {
|
|
194
|
+
"type": "stdio",
|
|
195
|
+
"command": "node",
|
|
196
|
+
"args": ["/path/to/claude-code-ultimate-guide/mcp-server/dist/index.js"],
|
|
197
|
+
"env": {
|
|
198
|
+
"GUIDE_ROOT": "/path/to/claude-code-ultimate-guide"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
With `GUIDE_ROOT` set:
|
|
206
|
+
- YAML indexes loaded from the local repo (stays in sync with local changes)
|
|
207
|
+
- File content read directly from disk (no GitHub fetch, no cache)
|
|
208
|
+
|
|
209
|
+
## Bundled content
|
|
210
|
+
|
|
211
|
+
The npm package includes (~130KB compressed total):
|
|
212
|
+
- `content/reference.yaml` — 94KB structured index (~900 entries, ~882 indexed)
|
|
213
|
+
- `content/claude-code-releases.yaml` — 27KB releases history (76 releases)
|
|
214
|
+
- `content/llms.txt` — 8KB identity file
|
|
215
|
+
|
|
216
|
+
Guide markdown files (3.5MB) are **not** bundled — they're fetched from GitHub on demand and cached at `~/.cache/claude-code-guide/{version}/`.
|
|
217
|
+
|
|
218
|
+
## Cache
|
|
219
|
+
|
|
220
|
+
File content is cached at `~/.cache/claude-code-guide/{package-version}/` with 24h TTL. If offline, stale cache is served as fallback. If no cache exists and offline, tools return inline summaries from the YAML index instead.
|
|
221
|
+
|
|
222
|
+
## MCP Inspector
|
|
223
|
+
|
|
224
|
+
Test locally with the official MCP Inspector:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
cd mcp-server
|
|
228
|
+
npm run build
|
|
229
|
+
GUIDE_ROOT=.. npx @modelcontextprotocol/inspector node dist/index.js
|
|
230
|
+
```
|