claude-code-templates 1.3.3 → 1.3.4

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.
Files changed (2) hide show
  1. package/README.md +132 -20
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -176,6 +176,7 @@ The CLI allows you to selectively enable automation hooks that enhance your deve
176
176
  - `CLAUDE.md` - Main configuration file for Claude Code
177
177
  - `.claude/settings.json` - Language-specific settings with selected automation hooks
178
178
  - `.claude/commands/` - Custom commands for common tasks
179
+ - `.mcp.json` - Model Context Protocol server configurations
179
180
 
180
181
  ### Automation Hooks
181
182
  Each language template includes selectable automation hooks for:
@@ -184,6 +185,19 @@ Each language template includes selectable automation hooks for:
184
185
  - **Stop**: Final checks before session ends (e.g., linting changed files, bundle analysis)
185
186
  - **Notification**: Logging and monitoring of Claude Code activities
186
187
 
188
+ ### MCP Servers (Model Context Protocol)
189
+ Configure external tools and services to extend Claude's capabilities:
190
+ - **IDE Integration** - VS Code language diagnostics and Jupyter kernel execution
191
+ - **Web Search** - Real-time web search for up-to-date information and documentation
192
+ - **Filesystem Tools** - Advanced file operations, monitoring, and directory management
193
+ - **Database Tools** - Database connections, schema inspection, and query execution
194
+
195
+ MCP servers are configured in `.mcp.json` and enable Claude to:
196
+ - Execute code in VS Code or Jupyter environments
197
+ - Search the web for current information
198
+ - Perform advanced file system operations
199
+ - Connect to databases and run queries
200
+
187
201
  ### Language-Specific Commands
188
202
  Each language template includes optimized commands for:
189
203
  - Testing (Jest, pytest, Cargo test, Go test)
@@ -274,22 +288,45 @@ Target directory: /path/to/your/project
274
288
  ◉ Stop: Run ESLint on changed files before stopping
275
289
  ```
276
290
 
277
- 6. **Final Confirmation** 🚀
291
+ 6. **MCP Server Selection** 🔧
278
292
  ```
279
- 🚀 Setup Claude Code for javascript-typescript with react (5 commands) (9 hooks)? (Y/n)
293
+ 🔧 Select MCP servers to include (use space to select):
294
+ ◉ IDE Integration - VS Code language diagnostics and code execution
295
+ ◉ Web Search - Search the web for up-to-date information
296
+ ◯ Filesystem Tools - Advanced file operations and monitoring
297
+ ◯ Database Tools - Database connection and query capabilities
298
+ ```
299
+ - Choose Model Context Protocol servers to extend Claude's capabilities
300
+ - IDE Integration provides VS Code diagnostics and Jupyter kernel execution
301
+ - Web Search enables real-time web searches within Claude conversations
302
+ - Additional tools for filesystem operations and database management
303
+
304
+ 7. **Final Confirmation** 🚀
280
305
  ```
281
- - Review your choices including selected commands and hooks
306
+ 🚀 Setup Claude Code for javascript-typescript with react (5 commands) (9 hooks) (4 MCP)? (Y/n)
307
+ ```
308
+ - Review your choices including selected commands, hooks, and MCP servers
309
+ - Shows total count of each component being installed
282
310
  - Type 'n' to cancel, 'y' or Enter to proceed
283
311
 
284
- 7. **Installation** 📁
312
+ 8. **Installation** 📁
285
313
  ```
286
314
  📋 Existing CLAUDE.md backed up to CLAUDE.md.backup
287
315
  ✓ Copied javascript-typescript/CLAUDE.md → CLAUDE.md
288
- ✓ Copied javascript-typescript/.claude → .claude (with selected hooks)
289
- ✓ Copied react-specific commands → .claude/commands
290
- 📋 Installed 5 commands
316
+ ✓ Copied base configuration and commands javascript-typescript/.claude → .claude
317
+ ✓ Copied javascript-typescript/.mcp.json → .mcp.json (with selected MCPs)
318
+ Copied framework commands javascript-typescript/examples/react-app/.claude/commands → .claude/commands
291
319
  🔧 Installed 9 automation hooks
320
+ 🔧 Installed 4 MCP servers
292
321
  ✅ Claude Code configuration setup complete!
322
+ 📚 Next steps:
323
+ 1. Review the generated CLAUDE.md file
324
+ 2. Customize the configuration for your project
325
+ 3. Start using Claude Code with: claude
326
+ 💡 Language-specific features for javascript-typescript have been configured
327
+ 🎯 Framework-specific commands for react are available
328
+ 🔧 9 automation hooks have been configured
329
+ 🔧 4 MCP servers have been configured
293
330
  ```
294
331
 
295
332
  ## 🛡️ Safe Installation
@@ -312,34 +349,109 @@ Target directory: /path/to/your/project
312
349
 
313
350
  ## Development
314
351
 
315
- ### Setup
352
+ ### Setup for Contributing
316
353
  ```bash
317
- git clone https://github.com/your-username/claude-code-templates.git
354
+ git clone https://github.com/davila7/claude-code-templates.git
318
355
  cd claude-code-templates/cli-tool
319
356
  npm install
320
357
  ```
321
358
 
322
- ### Testing
359
+ ### Local Development
323
360
  ```bash
324
- # Test locally
325
- npm start
361
+ # Link the package for local testing
362
+ npm link
363
+
364
+ # Test locally (will use your local changes)
365
+ claude-code-templates
326
366
 
327
367
  # Test with specific options
328
- npm start -- --language python --framework django
368
+ claude-code-templates --language python --framework django
369
+
370
+ # Run test suite
371
+ npm test
372
+
373
+ # Unlink when done
374
+ npm unlink -g claude-code-templates
329
375
  ```
330
376
 
331
- ### Publishing
377
+ ### Testing Changes
332
378
  ```bash
333
- npm publish
379
+ # Run the comprehensive test suite
380
+ npm test
381
+
382
+ # Test specific scenarios manually
383
+ npm start -- --dry-run --language javascript-typescript --framework react
384
+ npm start -- --dry-run --language python --framework django
385
+ ```
386
+
387
+ ### Project Structure
388
+ ```
389
+ cli-tool/
390
+ ├── src/ # Source code
391
+ │ ├── command-scanner.js # Scans and loads commands
392
+ │ ├── file-operations.js # Handles file copying
393
+ │ ├── hook-scanner.js # Manages automation hooks
394
+ │ ├── index.js # Main entry point
395
+ │ ├── prompts.js # Interactive CLI prompts
396
+ │ ├── templates.js # Template configuration
397
+ │ └── utils.js # Utility functions
398
+ ├── templates/ # Language and framework templates
399
+ │ ├── common/
400
+ │ ├── javascript-typescript/
401
+ │ ├── python/
402
+ │ ├── go/
403
+ │ └── rust/
404
+ └── bin/ # Executable scripts
334
405
  ```
335
406
 
336
407
  ## Contributing
337
408
 
338
- 1. Fork the repository
339
- 2. Create a feature branch
340
- 3. Make your changes
341
- 4. Test thoroughly
342
- 5. Submit a pull request
409
+ We welcome contributions! Here's how to get started:
410
+
411
+ ### 1. Fork & Clone
412
+ ```bash
413
+ # Fork the repository on GitHub, then:
414
+ git clone https://github.com/your-username/claude-code-templates.git
415
+ cd claude-code-templates
416
+ ```
417
+
418
+ ### 2. Create a Feature Branch
419
+ ```bash
420
+ git checkout -b feature/your-feature-name
421
+ # or
422
+ git checkout -b fix/issue-description
423
+ ```
424
+
425
+ ### 3. Make Your Changes
426
+ - Add new language templates in `templates/`
427
+ - Add new framework examples in `templates/language/examples/`
428
+ - Update commands, hooks, or core functionality
429
+ - Follow existing code patterns
430
+
431
+ ### 4. Test Thoroughly
432
+ ```bash
433
+ cd cli-tool
434
+ npm test # Run test suite
435
+ npm start -- --dry-run # Manual testing
436
+ ```
437
+
438
+ ### 5. Submit a Pull Request
439
+ - Commit with clear, descriptive messages
440
+ - Push to your fork
441
+ - Open a PR with description of changes
442
+ - Link any related issues
443
+
444
+ ### Adding New Languages
445
+ 1. Create `templates/your-language/` directory
446
+ 2. Add `CLAUDE.md`, `.claude/settings.json`, and `.mcp.json`
447
+ 3. Create commands in `.claude/commands/`
448
+ 4. Add framework examples in `examples/`
449
+ 5. Update `src/templates.js` configuration
450
+
451
+ ### Adding New Frameworks
452
+ 1. Create `templates/language/examples/framework-name/`
453
+ 2. Add framework-specific commands and CLAUDE.md
454
+ 3. Update the framework detection logic if needed
343
455
 
344
456
  ## License
345
457
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "claude-code-templates",
3
- "version": "1.3.3",
4
- "description": "CLI tool to setup Claude Code configurations with framework-specific commands and automation hooks for JavaScript/TypeScript and Python projects",
3
+ "version": "1.3.4",
4
+ "description": "CLI tool to setup Claude Code configurations with framework-specific commands, automation hooks and MCP Servers for your projects",
5
5
  "main": "src/index.js",
6
6
  "bin": {
7
7
  "create-claude-config": "bin/create-claude-config.js",