ai-readme-mcp 0.4.0 → 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 CHANGED
@@ -66,102 +66,54 @@ This MCP (Model Context Protocol) server automates the entire workflow:
66
66
 
67
67
  ---
68
68
 
69
- ## 🚀 Quick Start
69
+ ## 🚀 Installation & Setup
70
70
 
71
- ### Installation
71
+ ### For Claude Code (VSCode Extension)
72
72
 
73
- **Option 1: Using npx (Recommended)**
73
+ **Step 1: Add MCP Server**
74
74
 
75
- No installation needed! Just configure and use via npx:
75
+ In your project directory, run:
76
76
 
77
- ```json
78
- {
79
- "mcpServers": {
80
- "ai-readme-manager": {
81
- "command": "npx",
82
- "args": ["-y", "ai-readme-mcp"]
83
- }
84
- }
85
- }
77
+ ```bash
78
+ claude mcp add --scope project ai-readme-manager npx -- ai-readme-mcp
86
79
  ```
87
80
 
88
- The `-y` flag automatically accepts the npx prompt.
89
-
90
- **Option 2: Global Installation**
81
+ This creates a `.mcp.json` file that uses `npx` to run the package - no installation or path configuration needed!
91
82
 
92
- ```bash
93
- npm install -g ai-readme-mcp
94
- ```
83
+ **Step 2: Enable Project MCP Servers**
95
84
 
96
- Then configure:
85
+ Create or edit `.claude/settings.local.json` in your project:
97
86
 
98
87
  ```json
99
88
  {
100
- "mcpServers": {
101
- "ai-readme-manager": {
102
- "command": "ai-readme-mcp"
103
- }
104
- }
89
+ "enableAllProjectMcpServers": true
105
90
  }
106
91
  ```
107
92
 
108
- **Option 3: Local Development**
109
-
110
- > **Note:** Use this method if you want to modify or contribute to the source code.
111
-
112
- ```bash
113
- # Clone this repository to a permanent location
114
- git clone https://github.com/Draco-Cheng/ai-readme-mcp.git ~/ai-readme-mcp
115
- cd ~/ai-readme-mcp
116
-
117
- # Install and build
118
- npm install
119
- npm run build
120
- ```
121
-
122
- Then see configuration section below for manual setup.
93
+ **Step 3: Auto-approve MCP Tools (Optional but Recommended)**
123
94
 
124
- ### Configuration for Claude Code (VSCode Extension)
95
+ To avoid "Yes/No" prompts every time and enable "Yes, Do not ask again" option, add the tools to your allow list.
125
96
 
126
- **Option 1: Using CLI (Recommended)**
127
-
128
- In your project directory, run:
129
-
130
- ```bash
131
- # If you cloned to ~/ai-readme-mcp:
132
- claude mcp add --transport stdio ai-readme-manager --scope project -- node ~/ai-readme-mcp/dist/index.js
133
-
134
- # Or use absolute path:
135
- claude mcp add --transport stdio ai-readme-manager --scope project -- node /path/to/ai-readme-mcp/dist/index.js
136
- ```
137
-
138
- This creates a `.mcp.json` file in your project root.
139
-
140
- **Option 2: Manual Configuration**
141
-
142
- Create `.mcp.json` in your project root:
97
+ In `.claude/settings.local.json`, add:
143
98
 
144
99
  ```json
145
100
  {
146
- "mcpServers": {
147
- "ai-readme-manager": {
148
- "type": "stdio",
149
- "command": "node",
150
- "args": ["/absolute/path/to/ai-readme-mcp/dist/index.js"]
151
- }
152
- }
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
153
111
  }
154
112
  ```
155
113
 
156
- Replace `/absolute/path/to/ai-readme-mcp` with your actual installation path.
157
-
158
- **Path examples:**
159
- - **Windows:** `"C:\\Users\\YourName\\ai-readme-mcp\\dist\\index.js"`
160
- - **macOS/Linux:** `"~/ai-readme-mcp/dist/index.js"` or `"/home/username/ai-readme-mcp/dist/index.js"`
161
-
162
- > 💡 **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.
163
115
 
164
- **Verify Installation:**
116
+ **Step 4: Verify Installation**
165
117
 
166
118
  ```bash
167
119
  claude mcp get ai-readme-manager
@@ -169,14 +121,11 @@ claude mcp get ai-readme-manager
169
121
 
170
122
  You should see `Status: ✓ Connected`
171
123
 
172
- ### Configuration for Cursor
124
+ ### For Cursor
173
125
 
174
126
  Add to Cursor's MCP configuration file:
175
-
176
- **Windows:** `%APPDATA%\Cursor\User\mcp.json`
177
- **macOS/Linux:** `~/.cursor/mcp.json`
178
-
179
- **Using npx (Recommended):**
127
+ - **Windows:** `%APPDATA%\Cursor\User\mcp.json`
128
+ - **macOS/Linux:** `~/.cursor/mcp.json`
180
129
 
181
130
  ```json
182
131
  {
@@ -189,43 +138,36 @@ Add to Cursor's MCP configuration file:
189
138
  }
190
139
  ```
191
140
 
192
- **If globally installed:**
141
+ After configuring, restart Cursor completely.
193
142
 
194
- ```json
195
- {
196
- "mcpServers": {
197
- "ai-readme-manager": {
198
- "command": "ai-readme-mcp"
199
- }
200
- }
201
- }
202
- ```
143
+ ### For Claude Desktop Application
203
144
 
204
- **For local development:**
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`
205
149
 
206
150
  ```json
207
151
  {
208
152
  "mcpServers": {
209
153
  "ai-readme-manager": {
210
- "command": "node",
211
- "args": ["/path/to/ai-readme-mcp/dist/index.js"]
154
+ "command": "npx",
155
+ "args": ["-y", "ai-readme-mcp"]
212
156
  }
213
157
  }
214
158
  }
215
159
  ```
216
160
 
217
- **Verify Installation:**
218
-
219
- After configuring, restart Cursor completely. The MCP server should be available to AI assistants in Cursor.
161
+ ### Alternative Installation Methods
220
162
 
221
- ### Configuration for Claude Desktop Application
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
- Add to `claude_desktop_config.json`:
224
-
225
- **Windows:** `%APPDATA%\claude\claude_desktop_config.json`
226
- **macOS/Linux:** `~/.config/claude/config.json` or `~/Library/Application Support/Claude/config.json`
168
+ **Option 1: Using npx (Recommended)**
227
169
 
228
- **Using npx (Recommended):**
170
+ No installation needed! Just configure and use via npx:
229
171
 
230
172
  ```json
231
173
  {
@@ -238,36 +180,37 @@ Add to `claude_desktop_config.json`:
238
180
  }
239
181
  ```
240
182
 
241
- **If globally installed:**
183
+ > The `-y` flag automatically accepts the npx prompt.
242
184
 
243
- ```json
244
- {
245
- "mcpServers": {
246
- "ai-readme-manager": {
247
- "command": "ai-readme-mcp"
248
- }
249
- }
250
- }
185
+ **Option 2: Global Installation**
186
+
187
+ Install once globally, use everywhere:
188
+
189
+ ```bash
190
+ npm install -g ai-readme-mcp
251
191
  ```
252
192
 
253
- **For local development:**
193
+ Then configure:
254
194
 
255
195
  ```json
256
196
  {
257
197
  "mcpServers": {
258
198
  "ai-readme-manager": {
259
- "command": "node",
260
- "args": ["/path/to/ai-readme-mcp/dist/index.js"]
199
+ "command": "ai-readme-mcp"
261
200
  }
262
201
  }
263
202
  }
264
203
  ```
265
204
 
266
- ### Create Your First AI_README
205
+ > **Pros:** Faster startup (no npx download). **Cons:** Need to manually update when new versions release.
206
+
207
+ ---
208
+
209
+ ## Create Your First AI_README
267
210
 
268
211
  You have two main approaches to create and populate AI_README files:
269
212
 
270
- #### Option 1: Automated Initialization (Recommended)
213
+ ### Option 1: Automated Initialization (Recommended)
271
214
 
272
215
  Use the `init_ai_readme` tool to automatically scan and populate empty AI_README files:
273
216
 
@@ -306,7 +249,7 @@ Or more explicitly:
306
249
  - When `get_context_for_file` detects empty AI_README files
307
250
  - To batch-process multiple empty AI_README files
308
251
 
309
- #### Option 2: Manual Creation
252
+ ### Option 2: Manual Creation
310
253
 
311
254
  Create and write AI_README.md files yourself:
312
255
 
@@ -340,7 +283,9 @@ Write tests alongside source files
340
283
  - Update as your project evolves
341
284
  - Use AI to help maintain it
342
285
 
343
- ### Multi-Level AI_README (Not Just for Monorepos!)
286
+ ---
287
+
288
+ ## Multi-Level AI_README (Not Just for Monorepos!)
344
289
 
345
290
  **The power of this tool is multi-level documentation** - not just for monorepos, but for **any project** that wants to organize conventions by module or feature.
346
291
 
@@ -442,6 +387,51 @@ npm run build
442
387
  npm run dev
443
388
  ```
444
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
+
445
435
  ---
446
436
 
447
437
  ## 📚 Documentation
@@ -690,10 +680,10 @@ Validate all AI_README.md files in your project for quality and token efficiency
690
680
 
691
681
  We're actively working on new features:
692
682
 
693
- - **Watch Mode** - Auto-sync changes when AI_README files are modified
694
- - **Performance Optimization** - Caching and incremental updates
695
- - **VSCode Extension** - Visual interface for managing AI_README files
683
+ - **Auto-populate Empty AI_README** - Automatically generate AI_README content when `get_context_for_file` detects empty files, reducing manual initialization steps
684
+ - **Enhanced Tool Triggering** - Improve tool descriptions and prompts to ensure AI assistants trigger tools at the right moments with better precision and reliability
696
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
697
687
 
698
688
  Want to contribute? Check out our [Contributing Guide](./CONTRIBUTING.md)!
699
689
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-readme-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "MCP server for managing AI_README.md files in projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,55 +0,0 @@
1
- # {{PROJECT_NAME}}
2
-
3
- Brief description of this module or component.
4
-
5
- ## Architecture
6
-
7
- - **Type:** [Library/Service/Application/Component]
8
- - **Language:** [TypeScript/JavaScript/Python/Java/Go/Rust/etc]
9
- - **Framework:** [React/Vue/Django/Spring/Gin/etc]
10
-
11
- ## Directory Structure
12
-
13
- - Main entry: [path]
14
- - Core logic: [path]
15
- - Utilities: [path]
16
-
17
- ## Coding Conventions
18
-
19
- ### File Naming
20
- - [snake_case/camelCase/PascalCase/kebab-case]
21
-
22
- ### Code Style
23
- - Formatting: [Prettier/Black/gofmt/rustfmt/etc]
24
- - Linting: [ESLint/Pylint/golangci-lint/Clippy/etc]
25
-
26
- ### Important Patterns
27
- - Key architectural patterns or design decisions
28
- - Project-specific best practices
29
- - Common patterns to follow
30
-
31
- ## Testing
32
-
33
- - **Framework:** [Jest/Pytest/JUnit/Go testing/etc]
34
- - **Run Command:** [command]
35
- - **Coverage Target:** [percentage or "not enforced"]
36
-
37
- ## Dependencies
38
-
39
- ### Key Libraries
40
- - [Library name] - Purpose and why used
41
- - [Library name] - Purpose and why used
42
-
43
- ## Development Workflow
44
-
45
- - Installation: [command]
46
- - Dev mode: [command]
47
- - Build: [command]
48
- - Run: [command]
49
-
50
- ## Important Notes
51
-
52
- - Critical information AI should know
53
- - Security considerations
54
- - Performance considerations
55
- - Known limitations or gotchas