@enokdev/springdocs-mcp 1.1.0 → 1.1.1

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/INSTALL_FR.md ADDED
@@ -0,0 +1,123 @@
1
+ # 📦 Spring Documentation MCP Server - Installation publique
2
+
3
+ Serveur MCP public pour accéder à toute la documentation Spring Boot et l'écosystème Spring complet.
4
+
5
+ ## 🚀 Installation rapide
6
+
7
+ ### Via npm (recommandé)
8
+ ```bash
9
+ npm install -g @enokdev/springdocs-mcp
10
+ ```
11
+
12
+ ### Via npx (sans installation)
13
+ ```bash
14
+ npx @enokdev/springdocs-mcp
15
+ ```
16
+
17
+ ## ⚡ Configuration Claude Desktop
18
+
19
+ ### 1. Installation globale
20
+ ```bash
21
+ npm install -g @enokdev/springdocs-mcp
22
+ ```
23
+
24
+ ### 2. Configuration Claude Desktop
25
+ Ajoutez ceci à votre `claude_desktop_config.json` :
26
+
27
+ ```json
28
+ {
29
+ "mcpServers": {
30
+ "spring-docs": {
31
+ "command": "springdocs-mcp"
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ ### 3. Localisation du fichier de configuration
38
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
39
+ - **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`
40
+ - **Linux**: `~/.config/Claude/claude_desktop_config.json`
41
+
42
+ ## 🛠️ Configuration avancée
43
+
44
+ ### Avec chemin spécifique
45
+ ```json
46
+ {
47
+ "mcpServers": {
48
+ "spring-docs": {
49
+ "command": "node",
50
+ "args": ["/path/to/global/node_modules/@enokdev/springdocs-mcp/build/index.js"]
51
+ }
52
+ }
53
+ }
54
+ ```
55
+
56
+ ### Avec npx (sans installation globale)
57
+ ```json
58
+ {
59
+ "mcpServers": {
60
+ "spring-docs": {
61
+ "command": "npx",
62
+ "args": ["@enokdev/springdocs-mcp"]
63
+ }
64
+ }
65
+ }
66
+ ```
67
+
68
+ ## 🔧 Outils disponibles
69
+
70
+ Une fois configuré, vous aurez accès à 7 outils dans Claude Desktop :
71
+
72
+ 1. **`search_spring_docs`** - Recherche dans la documentation Spring Boot
73
+ 2. **`search_spring_projects`** - Recherche de projets Spring
74
+ 3. **`get_spring_project`** - Détails d'un projet Spring
75
+ 4. **`get_all_spring_guides`** - Liste des guides Spring
76
+ 5. **`get_spring_guide`** - Contenu d'un guide spécifique
77
+ 6. **`get_spring_reference`** - Documentation de référence
78
+ 7. **`search_spring_concepts`** - Recherche de concepts Spring Boot
79
+
80
+ ## 💡 Exemples d'utilisation
81
+
82
+ Une fois installé, demandez à Claude :
83
+
84
+ - *"Quels sont les projets Spring disponibles pour la sécurité ?"*
85
+ - *"Montre-moi le guide pour créer une API REST avec Spring Boot"*
86
+ - *"Comment configurer Spring Security ?"*
87
+ - *"Explique-moi l'auto-configuration dans Spring Boot"*
88
+
89
+ ## 🔄 Mise à jour
90
+
91
+ ```bash
92
+ npm update -g @enokdev/springdocs-mcp
93
+ ```
94
+
95
+ ## 🆘 Dépannage
96
+
97
+ ### Vérifier l'installation
98
+ ```bash
99
+ springdocs-mcp --version
100
+ ```
101
+
102
+ ### Test manual
103
+ ```bash
104
+ echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | springdocs-mcp
105
+ ```
106
+
107
+ ### Réinstallation
108
+ ```bash
109
+ npm uninstall -g @enokdev/springdocs-mcp
110
+ npm install -g @enokdev/springdocs-mcp
111
+ ```
112
+
113
+ ## 📚 Sources de documentation
114
+
115
+ Ce serveur accède à :
116
+ - **spring.io/projects** - Tous les projets Spring
117
+ - **spring.io/guides** - Guides pratiques
118
+ - **docs.spring.io** - Documentation de référence
119
+ - **Base de connaissances intégrée** - Concepts Spring Boot
120
+
121
+ ---
122
+
123
+ **🌟 Profitez de l'accès complet à l'écosystème Spring directement dans Claude Desktop !**
package/README.md CHANGED
@@ -5,15 +5,15 @@
5
5
  [![Node.js](https://img.shields.io/badge/Node.js-18+-green.svg)](https://nodejs.org/)
6
6
  [![GitHub](https://img.shields.io/badge/GitHub-tky0065/springdocs--mcp-blue.svg)](https://github.com/tky0065/springdocs-mcp)
7
7
 
8
- Un serveur **Model Context Protocol (MCP)** public qui donne accès à toute la documentation Spring Boot et l'écosystème Spring complet directement dans Claude Desktop.
8
+ A public **Model Context Protocol (MCP)** server that provides access to the complete Spring Boot documentation and Spring ecosystem directly in Claude Desktop.
9
9
 
10
- ## 🚀 Installation rapide
10
+ ## 🚀 Quick Installation
11
11
 
12
12
  ```bash
13
13
  npm install -g @enokdev/springdocs-mcp
14
14
  ```
15
15
 
16
- Puis ajoutez à votre `claude_desktop_config.json` :
16
+ Then add to your `claude_desktop_config.json`:
17
17
  ```json
18
18
  {
19
19
  "mcpServers": {
@@ -24,196 +24,270 @@ Puis ajoutez à votre `claude_desktop_config.json` :
24
24
  }
25
25
  ```
26
26
 
27
- ## ✨ Fonctionnalités
27
+ ## ✨ Features
28
28
 
29
- - 🌐 **Accès complet** à spring.io/projects (tous les projets Spring)
30
- - 📖 **Guides pratiques** spring.io/guides avec filtrage
31
- - 📚 **Documentation de référence** docs.spring.io
32
- - � **Recherche intelligente** dans tout l'écosystème Spring
33
- - 💡 **Base de connaissances** intégrée des concepts Spring Boot
34
- - ⚡ **7 outils MCP** pour une exploration complète
29
+ - 🌐 **Complete access** to spring.io/projects (all Spring projects)
30
+ - 📖 **Practical guides** spring.io/guides with filtering
31
+ - 📚 **Reference documentation** docs.spring.io
32
+ - 🔍 **Intelligent search** across the entire Spring ecosystem
33
+ - 💡 **Built-in knowledge base** of Spring Boot concepts and best practices
34
+ - ⚡ **7 MCP tools** for comprehensive exploration
35
35
 
36
- ## 🛠️ Utilisation
36
+ ## 🛠️ Usage
37
37
 
38
- ### Démarrage du serveur
38
+ ### Starting the server
39
39
 
40
40
  ```bash
41
41
  npm start
42
42
  ```
43
43
 
44
- ou
44
+ or
45
45
 
46
46
  ```bash
47
47
  node build/index.js
48
48
  ```
49
49
 
50
- ## 🛠️ Outils disponibles
50
+ ## 🛠️ Available Tools
51
51
 
52
- Le serveur MCP propose **7 outils** pour explorer la documentation Spring :
52
+ The MCP server provides **7 tools** to explore Spring documentation:
53
53
 
54
54
  ### 1. `search_spring_docs`
55
- Recherche dans la documentation Spring Boot avec des mots-clés.
55
+ Search through Spring Boot documentation with keywords.
56
56
 
57
- **Paramètres :**
58
- - `query` (string, requis) : Mots-clés à rechercher
59
- - `docType` (string, optionnel) : Type de documentation (`guides`, `reference`, `api`, `all`)
60
- - `limit` (number, optionnel) : Nombre maximum de résultats (défaut: 10)
57
+ **Parameters:**
58
+ - `query` (string, required): Keywords to search for
59
+ - `docType` (string, optional): Documentation type (`guides`, `reference`, `api`, `all`)
60
+ - `limit` (number, optional): Maximum number of results (default: 10)
61
61
 
62
62
  ### 2. `search_spring_projects`
63
- Recherche parmi tous les projets Spring disponibles sur spring.io/projects.
63
+ Search among all Spring projects available on spring.io/projects.
64
64
 
65
- **Paramètres :**
66
- - `query` (string, requis) : Mots-clés à rechercher dans les projets Spring
67
- - `limit` (number, optionnel) : Nombre maximum de projets à retourner (défaut: 10)
65
+ **Parameters:**
66
+ - `query` (string, required): Keywords to search in Spring projects
67
+ - `limit` (number, optional): Maximum number of projects to return (default: 10)
68
68
 
69
69
  ### 3. `get_spring_project`
70
- Récupère les détails complets d'un projet Spring spécifique.
70
+ Retrieve complete details of a specific Spring project.
71
71
 
72
- **Paramètres :**
73
- - `projectName` (string, requis) : Nom du projet Spring (ex: `spring-boot`, `spring-security`)
72
+ **Parameters:**
73
+ - `projectName` (string, required): Spring project name (e.g., `spring-boot`, `spring-security`)
74
74
 
75
75
  ### 4. `get_all_spring_guides`
76
- Récupère la liste de tous les guides Spring disponibles, optionnellement filtrés par catégorie.
76
+ Retrieve a list of all available Spring guides, optionally filtered by category.
77
77
 
78
- **Paramètres :**
79
- - `category` (string, optionnel) : Catégorie de guides à filtrer
80
- - `limit` (number, optionnel) : Nombre maximum de guides (défaut: 20)
78
+ **Parameters:**
79
+ - `category` (string, optional): Guide category to filter by
80
+ - `limit` (number, optional): Maximum number of guides (default: 20)
81
81
 
82
82
  ### 5. `get_spring_guide`
83
- Récupère le contenu complet d'un guide Spring Boot spécifique.
83
+ Retrieve the complete content of a specific Spring Boot guide.
84
84
 
85
- **Paramètres :**
86
- - `guideId` (string, requis) : Identifiant du guide (ex: `gs-rest-service`)
85
+ **Parameters:**
86
+ - `guideId` (string, required): Guide identifier (e.g., `gs-rest-service`)
87
87
 
88
88
  ### 6. `get_spring_reference`
89
- Récupère une section spécifique de la documentation de référence Spring Boot.
89
+ Retrieve a specific section of the Spring Boot reference documentation.
90
90
 
91
- **Paramètres :**
92
- - `section` (string, requis) : Section de la documentation (ex: `web`, `data`, `security`)
93
- - `subsection` (string, optionnel) : Sous-section pour une recherche plus précise
91
+ **Parameters:**
92
+ - `section` (string, required): Documentation section (e.g., `web`, `data`, `security`)
93
+ - `subsection` (string, optional): Subsection for more precise search
94
94
 
95
95
  ### 7. `search_spring_concepts`
96
- Recherche des concepts Spring Boot par catégorie avec explications détaillées.
96
+ Search Spring Boot concepts by category with detailed explanations.
97
97
 
98
- **Paramètres :**
99
- - `concept` (string, requis) : Concept à rechercher (ex: `auto-configuration`)
100
- - `category` (string, optionnel) : Catégorie (`core`, `web`, `data`, `security`, `testing`, `production`)
98
+ **Parameters:**
99
+ - `concept` (string, required): Concept to search for (e.g., `auto-configuration`)
100
+ - `category` (string, optional): Category (`core`, `web`, `data`, `security`, `testing`, `production`)
101
101
 
102
- ## � Sources de documentation
102
+ ## 📚 Documentation Sources
103
103
 
104
- Ce serveur MCP accède aux sources de documentation Spring suivantes :
104
+ This MCP server accesses the following Spring documentation sources:
105
105
 
106
- - **🌟 [spring.io/projects](https://spring.io/projects)** - Tous les projets Spring (Boot, Security, Data, Cloud, etc.)
107
- - **📖 [spring.io/guides](https://spring.io/guides)** - Guides pratiques et tutoriels
108
- - **📚 [docs.spring.io](https://docs.spring.io)** - Documentation de référence officielle
109
- - **🔧 API Documentation** - Documentation des classes et méthodes
110
- - **💡 Base de connaissances intégrée** - Concepts et bonnes pratiques Spring Boot
106
+ - **🌟 [spring.io/projects](https://spring.io/projects)** - All Spring projects (Boot, Security, Data, Cloud, etc.)
107
+ - **📖 [spring.io/guides](https://spring.io/guides)** - Practical guides and tutorials
108
+ - **📚 [docs.spring.io](https://docs.spring.io)** - Official reference documentation
109
+ - **🔧 API Documentation** - Class and method documentation
110
+ - **💡 Built-in knowledge base** - Spring Boot concepts and best practices
111
111
 
112
- ## �🔧 Configuration avec Claude Desktop
112
+ ## 🔧 Configuration with Claude Desktop
113
113
 
114
- Pour utiliser ce serveur avec Claude Desktop, ajoutez la configuration suivante dans votre fichier `claude_desktop_config.json` :
114
+ To use this server with Claude Desktop, add the following configuration to your `claude_desktop_config.json` file:
115
115
 
116
116
  ```json
117
117
  {
118
118
  "mcpServers": {
119
- "springboot-docs": {
120
- "command": "node",
121
- "args": ["/chemin/absolu/vers/springdocsmcp/build/index.js"]
119
+ "spring-docs": {
120
+ "command": "springdocs-mcp"
122
121
  }
123
122
  }
124
123
  }
125
124
  ```
126
125
 
127
- ### Localisation du fichier de configuration
126
+ ### Configuration file location
127
+
128
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
129
+ - **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`
128
130
 
129
- - **macOS** : `~/Library/Application Support/Claude/claude_desktop_config.json`
130
- - **Windows** : `%APPDATA%\\Claude\\claude_desktop_config.json`
131
+ ## 📚 Usage Examples
131
132
 
132
- ## 📚 Exemples d'utilisation
133
+ ### General search
134
+ ```
135
+ Search for "REST API" in Spring Boot documentation
136
+ ```
133
137
 
134
- ### Recherche générale
138
+ ### Spring project search
135
139
  ```
136
- Recherche "REST API" dans la documentation Spring Boot
140
+ Find Spring projects related to "security"
137
141
  ```
138
142
 
139
- ### Recherche de projets Spring
143
+ ### Specific project details
140
144
  ```
141
- Trouve des projets Spring liés à "security"
145
+ Show me details of the "spring-boot" project
142
146
  ```
143
147
 
144
- ### Détails d'un projet spécifique
148
+ ### Guides by category
145
149
  ```
146
- Montre-moi les détails du projet "spring-boot"
150
+ What are the Spring guides for the "Web" category?
147
151
  ```
148
152
 
149
- ### Liste des guides par catégorie
153
+ ### Specific guide retrieval
150
154
  ```
151
- Quels sont les guides Spring pour la catégorie "Web" ?
155
+ Retrieve the "gs-rest-service" guide
152
156
  ```
153
157
 
154
- ### Récupération d'un guide spécifique
158
+ ### Concept exploration
155
159
  ```
156
- Récupère le guide "gs-rest-service"
160
+ Explain Spring Boot auto-configuration
157
161
  ```
158
162
 
159
- ### Exploration des concepts
163
+ ### Reference documentation
160
164
  ```
161
- Explique le concept "auto-configuration" dans Spring Boot
165
+ Show me the Spring Boot web documentation
162
166
  ```
163
167
 
164
- ## 🏗️ Architecture
168
+ ## 🚀 Development
169
+
170
+ ### Prerequisites
171
+ - Node.js >= 18.0.0
172
+ - npm >= 8.0.0
173
+
174
+ ### Installation for development
175
+ ```bash
176
+ # Clone the repository
177
+ git clone https://github.com/tky0065/springdocs-mcp.git
178
+ cd springdocs-mcp
179
+
180
+ # Install dependencies
181
+ npm install
165
182
 
166
- Le projet est organisé comme suit :
183
+ # Build the project
184
+ npm run build
185
+ ```
186
+
187
+ ### Testing
188
+ ```bash
189
+ # Run tests
190
+ npm test
167
191
 
192
+ # Or use the test script
193
+ ./test.sh
168
194
  ```
169
- src/
170
- ├── index.ts # Point d'entrée principal
171
- ├── services/
172
- │ └── springboot-docs.ts # Service de récupération de documentation
173
- └── tools/
174
- └── index.ts # Définitions des outils MCP
195
+
196
+ ### Available Scripts
197
+ - `npm run build` - Compile TypeScript
198
+ - `npm run start` - Start the server
199
+ - `npm run dev` - Development mode with auto-reload
200
+ - `npm run watch` - Watch mode for TypeScript
201
+
202
+ ## 🧪 Testing
203
+
204
+ Test the server functionality:
205
+
206
+ ```bash
207
+ # Test all tools
208
+ ./test.sh
209
+
210
+ # Or test manually
211
+ echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | node build/index.js
175
212
  ```
176
213
 
177
- ### Composants principaux
214
+ ## 📝 Example Requests
178
215
 
179
- - **SpringBootMCPServer** : Serveur MCP principal qui gère les requêtes
180
- - **SpringBootDocsService** : Service pour récupérer et traiter la documentation
181
- - **ToolDefinitions** : Définitions des outils exposés via MCP
216
+ ### Initialize the server
217
+ ```json
218
+ {
219
+ "jsonrpc": "2.0",
220
+ "id": 1,
221
+ "method": "initialize",
222
+ "params": {
223
+ "protocolVersion": "2025-06-18",
224
+ "capabilities": {},
225
+ "clientInfo": {"name": "test", "version": "1.0.0"}
226
+ }
227
+ }
228
+ ```
229
+
230
+ ### Search Spring projects
231
+ ```json
232
+ {
233
+ "jsonrpc": "2.0",
234
+ "id": 2,
235
+ "method": "tools/call",
236
+ "params": {
237
+ "name": "search_spring_projects",
238
+ "arguments": {"query": "security", "limit": 3}
239
+ }
240
+ }
241
+ ```
242
+
243
+ ### Get Spring Boot project details
244
+ ```json
245
+ {
246
+ "jsonrpc": "2.0",
247
+ "id": 3,
248
+ "method": "tools/call",
249
+ "params": {
250
+ "name": "get_spring_project",
251
+ "arguments": {"projectName": "spring-boot"}
252
+ }
253
+ }
254
+ ```
182
255
 
183
- ## 🔒 Sécurité
256
+ ## 🤝 Contributing
184
257
 
185
- - Le serveur accède uniquement aux ressources publiques de `docs.spring.io`
186
- - Aucune donnée sensible n'est stockée ou transmise
187
- - Toutes les requêtes HTTP sont en lecture seule
258
+ We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
188
259
 
189
- ## 🐛 Dépannage
260
+ ### Development Workflow
261
+ 1. Fork the repository
262
+ 2. Create a feature branch
263
+ 3. Make your changes
264
+ 4. Add tests if applicable
265
+ 5. Submit a pull request
190
266
 
191
- ### Erreurs courantes
267
+ ## 📄 License
192
268
 
193
- 1. **"Cannot find module"** : Vérifiez que `npm install` a été exécuté
194
- 2. **"Serveur non démarré"** : Vérifiez que la compilation avec `npm run build` s'est bien passée
195
- 3. **"Documentation non trouvée"** : Vérifiez votre connexion internet
269
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
196
270
 
197
- ### Logs
271
+ ## 🔗 Links
198
272
 
199
- Le serveur écrit ses logs sur `stderr` pour éviter d'interférer avec le protocole MCP sur `stdout`.
273
+ - **npm package**: https://www.npmjs.com/package/@enokdev/springdocs-mcp
274
+ - **GitHub repository**: https://github.com/tky0065/springdocs-mcp
275
+ - **Issues**: https://github.com/tky0065/springdocs-mcp/issues
276
+ - **Documentation**: https://tky0065.github.io/springdocs-mcp
200
277
 
201
- ## 🤝 Contribution
278
+ ## 📊 Stats
202
279
 
203
- Les contributions sont les bienvenues ! N'hésitez pas à :
280
+ - **Downloads**: https://npm-stat.com/charts.html?package=@enokdev/springdocs-mcp
281
+ - **GitHub Stars**: https://github.com/tky0065/springdocs-mcp/stargazers
204
282
 
205
- 1. Forker le projet
206
- 2. Créer une branche pour votre fonctionnalité
207
- 3. Commiter vos changements
208
- 4. Pousser vers la branche
209
- 5. Ouvrir une Pull Request
283
+ ## 🙏 Acknowledgments
210
284
 
211
- ## 📄 Licence
285
+ - [Spring Framework Team](https://spring.io/team) for the excellent documentation
286
+ - [Anthropic](https://www.anthropic.com/) for the Model Context Protocol
287
+ - [Spring Community](https://spring.io/community) for continuous support
212
288
 
213
- Ce projet est sous licence MIT. Voir le fichier `LICENSE` pour plus de détails.
289
+ ---
214
290
 
215
- ## 🔗 Ressources utiles
291
+ **Made with ❤️ by [EnokDev](https://github.com/tky0065)**
216
292
 
217
- - [Documentation Spring Boot](https://docs.spring.io/spring-boot/docs/current/reference/html/)
218
- - [Model Context Protocol](https://modelcontextprotocol.io/)
219
- - [SDK MCP TypeScript](https://github.com/modelcontextprotocol/typescript-sdk)
293
+ *Access the complete Spring ecosystem directly in Claude Desktop!*