ai-readme-mcp 0.4.1 → 0.4.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/README.md +101 -112
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,100 +66,54 @@ This MCP (Model Context Protocol) server automates the entire workflow:
|
|
|
66
66
|
|
|
67
67
|
---
|
|
68
68
|
|
|
69
|
-
## 🚀 Installation
|
|
69
|
+
## 🚀 Installation & Setup
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
No installation needed! Just configure and use via npx:
|
|
74
|
-
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"mcpServers": {
|
|
78
|
-
"ai-readme-manager": {
|
|
79
|
-
"command": "npx",
|
|
80
|
-
"args": ["-y", "ai-readme-mcp"]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
```
|
|
71
|
+
### For Claude Code (VSCode Extension)
|
|
85
72
|
|
|
86
|
-
|
|
73
|
+
**Step 1: Add MCP Server**
|
|
87
74
|
|
|
88
|
-
|
|
75
|
+
In your project directory, run:
|
|
89
76
|
|
|
90
77
|
```bash
|
|
91
|
-
|
|
78
|
+
claude mcp add --scope project ai-readme-manager npx -- ai-readme-mcp
|
|
92
79
|
```
|
|
93
80
|
|
|
94
|
-
|
|
81
|
+
This creates a `.mcp.json` file that uses `npx` to run the package - no installation or path configuration needed!
|
|
82
|
+
|
|
83
|
+
**Step 2: Enable Project MCP Servers**
|
|
84
|
+
|
|
85
|
+
Create or edit `.claude/settings.local.json` in your project:
|
|
95
86
|
|
|
96
87
|
```json
|
|
97
88
|
{
|
|
98
|
-
"
|
|
99
|
-
"ai-readme-manager": {
|
|
100
|
-
"command": "ai-readme-mcp"
|
|
101
|
-
}
|
|
102
|
-
}
|
|
89
|
+
"enableAllProjectMcpServers": true
|
|
103
90
|
}
|
|
104
91
|
```
|
|
105
92
|
|
|
106
|
-
**
|
|
107
|
-
|
|
108
|
-
> **Note:** Use this method if you want to modify or contribute to the source code.
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
# Clone this repository to a permanent location
|
|
112
|
-
git clone https://github.com/Draco-Cheng/ai-readme-mcp.git ~/ai-readme-mcp
|
|
113
|
-
cd ~/ai-readme-mcp
|
|
114
|
-
|
|
115
|
-
# Install and build
|
|
116
|
-
npm install
|
|
117
|
-
npm run build
|
|
118
|
-
```
|
|
93
|
+
**Step 3: Auto-approve MCP Tools (Optional but Recommended)**
|
|
119
94
|
|
|
120
|
-
|
|
95
|
+
To avoid "Yes/No" prompts every time and enable "Yes, Do not ask again" option, add the tools to your allow list.
|
|
121
96
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
**Option 1: Using CLI (Recommended)**
|
|
125
|
-
|
|
126
|
-
In your project directory, run:
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
# If you cloned to ~/ai-readme-mcp:
|
|
130
|
-
claude mcp add --transport stdio ai-readme-manager --scope project -- node ~/ai-readme-mcp/dist/index.js
|
|
131
|
-
|
|
132
|
-
# Or use absolute path:
|
|
133
|
-
claude mcp add --transport stdio ai-readme-manager --scope project -- node /path/to/ai-readme-mcp/dist/index.js
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
This creates a `.mcp.json` file in your project root.
|
|
137
|
-
|
|
138
|
-
**Option 2: Manual Configuration**
|
|
139
|
-
|
|
140
|
-
Create `.mcp.json` in your project root:
|
|
97
|
+
In `.claude/settings.local.json`, add:
|
|
141
98
|
|
|
142
99
|
```json
|
|
143
100
|
{
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
101
|
+
"permissions": {
|
|
102
|
+
"allow": [
|
|
103
|
+
"mcp__ai-readme-manager__discover_ai_readmes",
|
|
104
|
+
"mcp__ai-readme-manager__get_context_for_file",
|
|
105
|
+
"mcp__ai-readme-manager__update_ai_readme",
|
|
106
|
+
"mcp__ai-readme-manager__validate_ai_readmes",
|
|
107
|
+
"mcp__ai-readme-manager__init_ai_readme"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"enableAllProjectMcpServers": true
|
|
151
111
|
}
|
|
152
112
|
```
|
|
153
113
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
**Path examples:**
|
|
157
|
-
- **Windows:** `"C:\\Users\\YourName\\ai-readme-mcp\\dist\\index.js"`
|
|
158
|
-
- **macOS/Linux:** `"~/ai-readme-mcp/dist/index.js"` or `"/home/username/ai-readme-mcp/dist/index.js"`
|
|
159
|
-
|
|
160
|
-
> 💡 **Tip:** Clone to a permanent location like `~/ai-readme-mcp` so the path stays consistent across projects.
|
|
114
|
+
> **Note:** Without this configuration, you'll be prompted for approval every time Claude uses these tools, and the "Do not ask again" option won't appear.
|
|
161
115
|
|
|
162
|
-
**Verify Installation
|
|
116
|
+
**Step 4: Verify Installation**
|
|
163
117
|
|
|
164
118
|
```bash
|
|
165
119
|
claude mcp get ai-readme-manager
|
|
@@ -167,14 +121,11 @@ claude mcp get ai-readme-manager
|
|
|
167
121
|
|
|
168
122
|
You should see `Status: ✓ Connected`
|
|
169
123
|
|
|
170
|
-
###
|
|
124
|
+
### For Cursor
|
|
171
125
|
|
|
172
126
|
Add to Cursor's MCP configuration file:
|
|
173
|
-
|
|
174
|
-
**
|
|
175
|
-
**macOS/Linux:** `~/.cursor/mcp.json`
|
|
176
|
-
|
|
177
|
-
**Using npx (Recommended):**
|
|
127
|
+
- **Windows:** `%APPDATA%\Cursor\User\mcp.json`
|
|
128
|
+
- **macOS/Linux:** `~/.cursor/mcp.json`
|
|
178
129
|
|
|
179
130
|
```json
|
|
180
131
|
{
|
|
@@ -187,43 +138,36 @@ Add to Cursor's MCP configuration file:
|
|
|
187
138
|
}
|
|
188
139
|
```
|
|
189
140
|
|
|
190
|
-
|
|
141
|
+
After configuring, restart Cursor completely.
|
|
191
142
|
|
|
192
|
-
|
|
193
|
-
{
|
|
194
|
-
"mcpServers": {
|
|
195
|
-
"ai-readme-manager": {
|
|
196
|
-
"command": "ai-readme-mcp"
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
```
|
|
143
|
+
### For Claude Desktop Application
|
|
201
144
|
|
|
202
|
-
|
|
145
|
+
Add to `claude_desktop_config.json`:
|
|
146
|
+
- **Windows:** `%APPDATA%\claude\claude_desktop_config.json`
|
|
147
|
+
- **macOS:** `~/Library/Application Support/Claude/config.json`
|
|
148
|
+
- **Linux:** `~/.config/claude/config.json`
|
|
203
149
|
|
|
204
150
|
```json
|
|
205
151
|
{
|
|
206
152
|
"mcpServers": {
|
|
207
153
|
"ai-readme-manager": {
|
|
208
|
-
"command": "
|
|
209
|
-
"args": ["
|
|
154
|
+
"command": "npx",
|
|
155
|
+
"args": ["-y", "ai-readme-mcp"]
|
|
210
156
|
}
|
|
211
157
|
}
|
|
212
158
|
}
|
|
213
159
|
```
|
|
214
160
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
After configuring, restart Cursor completely. The MCP server should be available to AI assistants in Cursor.
|
|
161
|
+
### Alternative Installation Methods
|
|
218
162
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
163
|
+
The above methods use `npx` (recommended). If you prefer other approaches, you can use these configurations in your MCP config file:
|
|
164
|
+
- **Claude Code:** `.mcp.json` (project root)
|
|
165
|
+
- **Cursor:** `%APPDATA%\Cursor\User\mcp.json` (Windows) or `~/.cursor/mcp.json` (macOS/Linux)
|
|
166
|
+
- **Claude Desktop:** `claude_desktop_config.json` (see paths above)
|
|
222
167
|
|
|
223
|
-
**
|
|
224
|
-
**macOS/Linux:** `~/.config/claude/config.json` or `~/Library/Application Support/Claude/config.json`
|
|
168
|
+
**Option 1: Using npx (Recommended)**
|
|
225
169
|
|
|
226
|
-
|
|
170
|
+
No installation needed! Just configure and use via npx:
|
|
227
171
|
|
|
228
172
|
```json
|
|
229
173
|
{
|
|
@@ -236,31 +180,30 @@ Add to `claude_desktop_config.json`:
|
|
|
236
180
|
}
|
|
237
181
|
```
|
|
238
182
|
|
|
239
|
-
|
|
183
|
+
> The `-y` flag automatically accepts the npx prompt.
|
|
240
184
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
}
|
|
185
|
+
**Option 2: Global Installation**
|
|
186
|
+
|
|
187
|
+
Install once globally, use everywhere:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
npm install -g ai-readme-mcp
|
|
249
191
|
```
|
|
250
192
|
|
|
251
|
-
|
|
193
|
+
Then configure:
|
|
252
194
|
|
|
253
195
|
```json
|
|
254
196
|
{
|
|
255
197
|
"mcpServers": {
|
|
256
198
|
"ai-readme-manager": {
|
|
257
|
-
"command": "
|
|
258
|
-
"args": ["/path/to/ai-readme-mcp/dist/index.js"]
|
|
199
|
+
"command": "ai-readme-mcp"
|
|
259
200
|
}
|
|
260
201
|
}
|
|
261
202
|
}
|
|
262
203
|
```
|
|
263
204
|
|
|
205
|
+
> **Pros:** Faster startup (no npx download). **Cons:** Need to manually update when new versions release.
|
|
206
|
+
|
|
264
207
|
---
|
|
265
208
|
|
|
266
209
|
## Create Your First AI_README
|
|
@@ -444,6 +387,51 @@ npm run build
|
|
|
444
387
|
npm run dev
|
|
445
388
|
```
|
|
446
389
|
|
|
390
|
+
### Local Development Configuration
|
|
391
|
+
|
|
392
|
+
If you're developing or modifying the source code, configure your MCP client to use your local build:
|
|
393
|
+
|
|
394
|
+
**For Claude Code - Add with CLI:**
|
|
395
|
+
|
|
396
|
+
```bash
|
|
397
|
+
# Linux/macOS:
|
|
398
|
+
claude mcp add --transport stdio ai-readme-manager --scope project -- node ~/ai-readme-mcp/dist/index.js
|
|
399
|
+
|
|
400
|
+
# Windows:
|
|
401
|
+
claude mcp add --transport stdio ai-readme-manager --scope project -- node C:\Users\YourName\ai-readme-mcp\dist\index.js
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
**For Claude Code - Manual `.mcp.json`:**
|
|
405
|
+
|
|
406
|
+
```json
|
|
407
|
+
{
|
|
408
|
+
"mcpServers": {
|
|
409
|
+
"ai-readme-manager": {
|
|
410
|
+
"type": "stdio",
|
|
411
|
+
"command": "node",
|
|
412
|
+
"args": ["/absolute/path/to/ai-readme-mcp/dist/index.js"]
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
**For Cursor or Claude Desktop:**
|
|
419
|
+
|
|
420
|
+
```json
|
|
421
|
+
{
|
|
422
|
+
"mcpServers": {
|
|
423
|
+
"ai-readme-manager": {
|
|
424
|
+
"command": "node",
|
|
425
|
+
"args": ["/absolute/path/to/ai-readme-mcp/dist/index.js"]
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
**Path examples:**
|
|
432
|
+
- **Windows:** `"C:\\Users\\YourName\\ai-readme-mcp\\dist\\index.js"` (use `\\` for escaping)
|
|
433
|
+
- **macOS/Linux:** `"/home/username/ai-readme-mcp/dist/index.js"`
|
|
434
|
+
|
|
447
435
|
---
|
|
448
436
|
|
|
449
437
|
## 📚 Documentation
|
|
@@ -695,6 +683,7 @@ We're actively working on new features:
|
|
|
695
683
|
- **Auto-populate Empty AI_README** - Automatically generate AI_README content when `get_context_for_file` detects empty files, reducing manual initialization steps
|
|
696
684
|
- **Enhanced Tool Triggering** - Improve tool descriptions and prompts to ensure AI assistants trigger tools at the right moments with better precision and reliability
|
|
697
685
|
- **CI/CD Integration** - GitHub Actions for automated README validation
|
|
686
|
+
- **VSCode Extension** - Native VSCode extension with visual UI for managing AI_README files, offering a more integrated experience alongside the current MCP server
|
|
698
687
|
|
|
699
688
|
Want to contribute? Check out our [Contributing Guide](./CONTRIBUTING.md)!
|
|
700
689
|
|