@enokdev/springdocs-mcp 1.1.0 → 1.2.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/CHANGELOG.md +67 -67
- package/CHANGELOG_v1.2.0.md +71 -0
- package/EXAMPLES.md +105 -105
- package/EXAMPLES_FR.md +186 -0
- package/INSTALL.md +40 -40
- package/INSTALL_FR.md +123 -0
- package/JETBRAINS_SETUP.md +171 -0
- package/README.md +218 -106
- package/README_FR.md +219 -0
- package/RELEASE_NOTES_v1.2.0.md +138 -0
- package/TROUBLESHOOTING.md +163 -0
- package/claude_desktop_config.json +2 -3
- package/diagnostic.sh +55 -0
- package/package.json +4 -2
- package/setup-jetbrains.sh +164 -0
- package/test-jetbrains.sh +125 -0
- package/DEPLOYMENT.md +0 -205
- package/PUBLICATION_ENOKDEV.md +0 -170
- package/PUBLISHING.md +0 -196
- package/README_ENOKDEV.md +0 -108
package/README.md
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
[](https://nodejs.org/)
|
|
6
6
|
[](https://github.com/tky0065/springdocs-mcp)
|
|
7
7
|
|
|
8
|
-
|
|
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
|
|
10
|
+
## 🚀 Quick Installation
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
npm install -g @enokdev/springdocs-mcp
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Then add to your `claude_desktop_config.json`:
|
|
17
17
|
```json
|
|
18
18
|
{
|
|
19
19
|
"mcpServers": {
|
|
@@ -24,196 +24,308 @@ Puis ajoutez à votre `claude_desktop_config.json` :
|
|
|
24
24
|
}
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
## ✨
|
|
27
|
+
## ✨ Features
|
|
28
28
|
|
|
29
|
-
- 🌐 **
|
|
30
|
-
- 📖 **
|
|
31
|
-
- 📚 **
|
|
32
|
-
-
|
|
33
|
-
- 💡 **
|
|
34
|
-
- ⚡ **7
|
|
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
|
-
## 🛠️
|
|
36
|
+
## 🛠️ Usage
|
|
37
37
|
|
|
38
|
-
###
|
|
38
|
+
### Starting the server
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
npm start
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
or
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
47
|
node build/index.js
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
## 🛠️
|
|
50
|
+
## 🛠️ Available Tools
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
The MCP server provides **7 tools** to explore Spring documentation:
|
|
53
53
|
|
|
54
54
|
### 1. `search_spring_docs`
|
|
55
|
-
|
|
55
|
+
Search through Spring Boot documentation with keywords.
|
|
56
56
|
|
|
57
|
-
**
|
|
58
|
-
- `query` (string,
|
|
59
|
-
- `docType` (string,
|
|
60
|
-
- `limit` (number,
|
|
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
|
-
|
|
63
|
+
Search among all Spring projects available on spring.io/projects.
|
|
64
64
|
|
|
65
|
-
**
|
|
66
|
-
- `query` (string,
|
|
67
|
-
- `limit` (number,
|
|
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
|
-
|
|
70
|
+
Retrieve complete details of a specific Spring project.
|
|
71
71
|
|
|
72
|
-
**
|
|
73
|
-
- `projectName` (string,
|
|
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
|
-
|
|
76
|
+
Retrieve a list of all available Spring guides, optionally filtered by category.
|
|
77
77
|
|
|
78
|
-
**
|
|
79
|
-
- `category` (string,
|
|
80
|
-
- `limit` (number,
|
|
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
|
-
|
|
83
|
+
Retrieve the complete content of a specific Spring Boot guide.
|
|
84
84
|
|
|
85
|
-
**
|
|
86
|
-
- `guideId` (string,
|
|
85
|
+
**Parameters:**
|
|
86
|
+
- `guideId` (string, required): Guide identifier (e.g., `gs-rest-service`)
|
|
87
87
|
|
|
88
88
|
### 6. `get_spring_reference`
|
|
89
|
-
|
|
89
|
+
Retrieve a specific section of the Spring Boot reference documentation.
|
|
90
90
|
|
|
91
|
-
**
|
|
92
|
-
- `section` (string,
|
|
93
|
-
- `subsection` (string,
|
|
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
|
-
|
|
96
|
+
Search Spring Boot concepts by category with detailed explanations.
|
|
97
97
|
|
|
98
|
-
**
|
|
99
|
-
- `concept` (string,
|
|
100
|
-
- `category` (string,
|
|
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
|
-
##
|
|
102
|
+
## 📚 Documentation Sources
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
This MCP server accesses the following Spring documentation sources:
|
|
105
105
|
|
|
106
|
-
- **🌟 [spring.io/projects](https://spring.io/projects)** -
|
|
107
|
-
- **📖 [spring.io/guides](https://spring.io/guides)** -
|
|
108
|
-
- **📚 [docs.spring.io](https://docs.spring.io)** -
|
|
109
|
-
- **🔧 API Documentation** -
|
|
110
|
-
- **💡
|
|
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
|
-
##
|
|
112
|
+
## 🔧 Configuration with Claude Desktop
|
|
113
113
|
|
|
114
|
-
|
|
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
|
-
"
|
|
120
|
-
"command": "
|
|
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
|
-
###
|
|
126
|
+
### Configuration file location
|
|
127
|
+
|
|
128
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
129
|
+
- **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`
|
|
130
|
+
|
|
131
|
+
## 🛠️ Configuration with JetBrains IDEs
|
|
128
132
|
|
|
129
|
-
|
|
130
|
-
- **Windows** : `%APPDATA%\\Claude\\claude_desktop_config.json`
|
|
133
|
+
### Automatic Setup (Recommended)
|
|
131
134
|
|
|
132
|
-
|
|
135
|
+
Run the automatic configuration script:
|
|
133
136
|
|
|
134
|
-
|
|
137
|
+
```bash
|
|
138
|
+
./setup-jetbrains.sh
|
|
135
139
|
```
|
|
136
|
-
|
|
140
|
+
|
|
141
|
+
This will configure the MCP server for all your installed JetBrains IDEs:
|
|
142
|
+
- **IntelliJ IDEA** (Ultimate & Community)
|
|
143
|
+
- **WebStorm**
|
|
144
|
+
- **PyCharm** (Professional & Community)
|
|
145
|
+
- **PhpStorm**, **RubyMine**, **CLion**, **GoLand**, **Rider**, **DataGrip**
|
|
146
|
+
|
|
147
|
+
### Manual Configuration
|
|
148
|
+
|
|
149
|
+
Add to your IDE's Claude plugin configuration:
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"spring-docs": {
|
|
154
|
+
"command": "/opt/homebrew/bin/springdocs-mcp",
|
|
155
|
+
"description": "Spring Documentation MCP Server"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
137
158
|
```
|
|
138
159
|
|
|
139
|
-
###
|
|
160
|
+
### Usage in JetBrains IDEs
|
|
161
|
+
|
|
162
|
+
Once configured, you can ask Claude in your IDE:
|
|
163
|
+
- "What Spring projects are available for security?"
|
|
164
|
+
- "Show me the Spring Boot REST API guide"
|
|
165
|
+
- "Explain Spring Boot auto-configuration"
|
|
166
|
+
|
|
167
|
+
See [JETBRAINS_SETUP.md](JETBRAINS_SETUP.md) for detailed instructions.
|
|
168
|
+
|
|
169
|
+
## 📚 Usage Examples
|
|
170
|
+
|
|
171
|
+
### General search
|
|
140
172
|
```
|
|
141
|
-
|
|
173
|
+
Search for "REST API" in Spring Boot documentation
|
|
142
174
|
```
|
|
143
175
|
|
|
144
|
-
###
|
|
176
|
+
### Spring project search
|
|
145
177
|
```
|
|
146
|
-
|
|
178
|
+
Find Spring projects related to "security"
|
|
147
179
|
```
|
|
148
180
|
|
|
149
|
-
###
|
|
181
|
+
### Specific project details
|
|
150
182
|
```
|
|
151
|
-
|
|
183
|
+
Show me details of the "spring-boot" project
|
|
152
184
|
```
|
|
153
185
|
|
|
154
|
-
###
|
|
186
|
+
### Guides by category
|
|
155
187
|
```
|
|
156
|
-
|
|
188
|
+
What are the Spring guides for the "Web" category?
|
|
157
189
|
```
|
|
158
190
|
|
|
159
|
-
###
|
|
191
|
+
### Specific guide retrieval
|
|
160
192
|
```
|
|
161
|
-
|
|
193
|
+
Retrieve the "gs-rest-service" guide
|
|
162
194
|
```
|
|
163
195
|
|
|
164
|
-
|
|
196
|
+
### Concept exploration
|
|
197
|
+
```
|
|
198
|
+
Explain Spring Boot auto-configuration
|
|
199
|
+
```
|
|
165
200
|
|
|
166
|
-
|
|
201
|
+
### Reference documentation
|
|
202
|
+
```
|
|
203
|
+
Show me the Spring Boot web documentation
|
|
204
|
+
```
|
|
167
205
|
|
|
206
|
+
## 🚀 Development
|
|
207
|
+
|
|
208
|
+
### Prerequisites
|
|
209
|
+
- Node.js >= 18.0.0
|
|
210
|
+
- npm >= 8.0.0
|
|
211
|
+
|
|
212
|
+
### Installation for development
|
|
213
|
+
```bash
|
|
214
|
+
# Clone the repository
|
|
215
|
+
git clone https://github.com/tky0065/springdocs-mcp.git
|
|
216
|
+
cd springdocs-mcp
|
|
217
|
+
|
|
218
|
+
# Install dependencies
|
|
219
|
+
npm install
|
|
220
|
+
|
|
221
|
+
# Build the project
|
|
222
|
+
npm run build
|
|
168
223
|
```
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
224
|
+
|
|
225
|
+
### Testing
|
|
226
|
+
```bash
|
|
227
|
+
# Run tests
|
|
228
|
+
npm test
|
|
229
|
+
|
|
230
|
+
# Or use the test script
|
|
231
|
+
./test.sh
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Available Scripts
|
|
235
|
+
- `npm run build` - Compile TypeScript
|
|
236
|
+
- `npm run start` - Start the server
|
|
237
|
+
- `npm run dev` - Development mode with auto-reload
|
|
238
|
+
- `npm run watch` - Watch mode for TypeScript
|
|
239
|
+
|
|
240
|
+
## 🧪 Testing
|
|
241
|
+
|
|
242
|
+
Test the server functionality:
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
# Test all tools
|
|
246
|
+
./test.sh
|
|
247
|
+
|
|
248
|
+
# Or test manually
|
|
249
|
+
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | node build/index.js
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## 📝 Example Requests
|
|
253
|
+
|
|
254
|
+
### Initialize the server
|
|
255
|
+
```json
|
|
256
|
+
{
|
|
257
|
+
"jsonrpc": "2.0",
|
|
258
|
+
"id": 1,
|
|
259
|
+
"method": "initialize",
|
|
260
|
+
"params": {
|
|
261
|
+
"protocolVersion": "2025-06-18",
|
|
262
|
+
"capabilities": {},
|
|
263
|
+
"clientInfo": {"name": "test", "version": "1.0.0"}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
175
266
|
```
|
|
176
267
|
|
|
177
|
-
###
|
|
268
|
+
### Search Spring projects
|
|
269
|
+
```json
|
|
270
|
+
{
|
|
271
|
+
"jsonrpc": "2.0",
|
|
272
|
+
"id": 2,
|
|
273
|
+
"method": "tools/call",
|
|
274
|
+
"params": {
|
|
275
|
+
"name": "search_spring_projects",
|
|
276
|
+
"arguments": {"query": "security", "limit": 3}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
```
|
|
178
280
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
281
|
+
### Get Spring Boot project details
|
|
282
|
+
```json
|
|
283
|
+
{
|
|
284
|
+
"jsonrpc": "2.0",
|
|
285
|
+
"id": 3,
|
|
286
|
+
"method": "tools/call",
|
|
287
|
+
"params": {
|
|
288
|
+
"name": "get_spring_project",
|
|
289
|
+
"arguments": {"projectName": "spring-boot"}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
```
|
|
182
293
|
|
|
183
|
-
##
|
|
294
|
+
## 🤝 Contributing
|
|
184
295
|
|
|
185
|
-
|
|
186
|
-
- Aucune donnée sensible n'est stockée ou transmise
|
|
187
|
-
- Toutes les requêtes HTTP sont en lecture seule
|
|
296
|
+
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
|
|
188
297
|
|
|
189
|
-
|
|
298
|
+
### Development Workflow
|
|
299
|
+
1. Fork the repository
|
|
300
|
+
2. Create a feature branch
|
|
301
|
+
3. Make your changes
|
|
302
|
+
4. Add tests if applicable
|
|
303
|
+
5. Submit a pull request
|
|
190
304
|
|
|
191
|
-
|
|
305
|
+
## 📄 License
|
|
192
306
|
|
|
193
|
-
|
|
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
|
|
307
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
196
308
|
|
|
197
|
-
|
|
309
|
+
## 🔗 Links
|
|
198
310
|
|
|
199
|
-
|
|
311
|
+
- **npm package**: https://www.npmjs.com/package/@enokdev/springdocs-mcp
|
|
312
|
+
- **GitHub repository**: https://github.com/tky0065/springdocs-mcp
|
|
313
|
+
- **Issues**: https://github.com/tky0065/springdocs-mcp/issues
|
|
314
|
+
- **Documentation**: https://tky0065.github.io/springdocs-mcp
|
|
200
315
|
|
|
201
|
-
##
|
|
316
|
+
## 📊 Stats
|
|
202
317
|
|
|
203
|
-
|
|
318
|
+
- **Downloads**: https://npm-stat.com/charts.html?package=@enokdev/springdocs-mcp
|
|
319
|
+
- **GitHub Stars**: https://github.com/tky0065/springdocs-mcp/stargazers
|
|
204
320
|
|
|
205
|
-
|
|
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
|
|
321
|
+
## 🙏 Acknowledgments
|
|
210
322
|
|
|
211
|
-
|
|
323
|
+
- [Spring Framework Team](https://spring.io/team) for the excellent documentation
|
|
324
|
+
- [Anthropic](https://www.anthropic.com/) for the Model Context Protocol
|
|
325
|
+
- [Spring Community](https://spring.io/community) for continuous support
|
|
212
326
|
|
|
213
|
-
|
|
327
|
+
---
|
|
214
328
|
|
|
215
|
-
|
|
329
|
+
**Made with ❤️ by [EnokDev](https://github.com/tky0065)**
|
|
216
330
|
|
|
217
|
-
|
|
218
|
-
- [Model Context Protocol](https://modelcontextprotocol.io/)
|
|
219
|
-
- [SDK MCP TypeScript](https://github.com/modelcontextprotocol/typescript-sdk)
|
|
331
|
+
*Access the complete Spring ecosystem directly in Claude Desktop!*
|
package/README_FR.md
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# 📚 Spring Documentation MCP Server
|
|
2
|
+
|
|
3
|
+
[](https://badge.fury.io/js/@enokdev%2Fspringdocs-mcp)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org/)
|
|
6
|
+
[](https://github.com/tky0065/springdocs-mcp)
|
|
7
|
+
|
|
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
|
+
|
|
10
|
+
## 🚀 Quick Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install -g @enokdev/springdocs-mcp
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Then add to your `claude_desktop_config.json`:
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"mcpServers": {
|
|
20
|
+
"spring-docs": {
|
|
21
|
+
"command": "springdocs-mcp"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## ✨ Features
|
|
28
|
+
|
|
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
|
+
- � **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
|
|
35
|
+
|
|
36
|
+
## 🛠️ Utilisation
|
|
37
|
+
|
|
38
|
+
### Démarrage du serveur
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm start
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
ou
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
node build/index.js
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 🛠️ Outils disponibles
|
|
51
|
+
|
|
52
|
+
Le serveur MCP propose **7 outils** pour explorer la documentation Spring :
|
|
53
|
+
|
|
54
|
+
### 1. `search_spring_docs`
|
|
55
|
+
Recherche dans la documentation Spring Boot avec des mots-clés.
|
|
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)
|
|
61
|
+
|
|
62
|
+
### 2. `search_spring_projects`
|
|
63
|
+
Recherche parmi tous les projets Spring disponibles sur spring.io/projects.
|
|
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)
|
|
68
|
+
|
|
69
|
+
### 3. `get_spring_project`
|
|
70
|
+
Récupère les détails complets d'un projet Spring spécifique.
|
|
71
|
+
|
|
72
|
+
**Paramètres :**
|
|
73
|
+
- `projectName` (string, requis) : Nom du projet Spring (ex: `spring-boot`, `spring-security`)
|
|
74
|
+
|
|
75
|
+
### 4. `get_all_spring_guides`
|
|
76
|
+
Récupère la liste de tous les guides Spring disponibles, optionnellement filtrés par catégorie.
|
|
77
|
+
|
|
78
|
+
**Paramètres :**
|
|
79
|
+
- `category` (string, optionnel) : Catégorie de guides à filtrer
|
|
80
|
+
- `limit` (number, optionnel) : Nombre maximum de guides (défaut: 20)
|
|
81
|
+
|
|
82
|
+
### 5. `get_spring_guide`
|
|
83
|
+
Récupère le contenu complet d'un guide Spring Boot spécifique.
|
|
84
|
+
|
|
85
|
+
**Paramètres :**
|
|
86
|
+
- `guideId` (string, requis) : Identifiant du guide (ex: `gs-rest-service`)
|
|
87
|
+
|
|
88
|
+
### 6. `get_spring_reference`
|
|
89
|
+
Récupère une section spécifique de la documentation de référence Spring Boot.
|
|
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
|
|
94
|
+
|
|
95
|
+
### 7. `search_spring_concepts`
|
|
96
|
+
Recherche des concepts Spring Boot par catégorie avec explications détaillées.
|
|
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`)
|
|
101
|
+
|
|
102
|
+
## � Sources de documentation
|
|
103
|
+
|
|
104
|
+
Ce serveur MCP accède aux sources de documentation Spring suivantes :
|
|
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
|
|
111
|
+
|
|
112
|
+
## �🔧 Configuration avec Claude Desktop
|
|
113
|
+
|
|
114
|
+
Pour utiliser ce serveur avec Claude Desktop, ajoutez la configuration suivante dans votre fichier `claude_desktop_config.json` :
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"mcpServers": {
|
|
119
|
+
"springboot-docs": {
|
|
120
|
+
"command": "node",
|
|
121
|
+
"args": ["/chemin/absolu/vers/springdocsmcp/build/index.js"]
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Localisation du fichier de configuration
|
|
128
|
+
|
|
129
|
+
- **macOS** : `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
130
|
+
- **Windows** : `%APPDATA%\\Claude\\claude_desktop_config.json`
|
|
131
|
+
|
|
132
|
+
## 📚 Exemples d'utilisation
|
|
133
|
+
|
|
134
|
+
### Recherche générale
|
|
135
|
+
```
|
|
136
|
+
Recherche "REST API" dans la documentation Spring Boot
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Recherche de projets Spring
|
|
140
|
+
```
|
|
141
|
+
Trouve des projets Spring liés à "security"
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Détails d'un projet spécifique
|
|
145
|
+
```
|
|
146
|
+
Montre-moi les détails du projet "spring-boot"
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Liste des guides par catégorie
|
|
150
|
+
```
|
|
151
|
+
Quels sont les guides Spring pour la catégorie "Web" ?
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Récupération d'un guide spécifique
|
|
155
|
+
```
|
|
156
|
+
Récupère le guide "gs-rest-service"
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Exploration des concepts
|
|
160
|
+
```
|
|
161
|
+
Explique le concept "auto-configuration" dans Spring Boot
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## 🏗️ Architecture
|
|
165
|
+
|
|
166
|
+
Le projet est organisé comme suit :
|
|
167
|
+
|
|
168
|
+
```
|
|
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
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Composants principaux
|
|
178
|
+
|
|
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
|
|
182
|
+
|
|
183
|
+
## 🔒 Sécurité
|
|
184
|
+
|
|
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
|
|
188
|
+
|
|
189
|
+
## 🐛 Dépannage
|
|
190
|
+
|
|
191
|
+
### Erreurs courantes
|
|
192
|
+
|
|
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
|
|
196
|
+
|
|
197
|
+
### Logs
|
|
198
|
+
|
|
199
|
+
Le serveur écrit ses logs sur `stderr` pour éviter d'interférer avec le protocole MCP sur `stdout`.
|
|
200
|
+
|
|
201
|
+
## 🤝 Contribution
|
|
202
|
+
|
|
203
|
+
Les contributions sont les bienvenues ! N'hésitez pas à :
|
|
204
|
+
|
|
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
|
|
210
|
+
|
|
211
|
+
## 📄 Licence
|
|
212
|
+
|
|
213
|
+
Ce projet est sous licence MIT. Voir le fichier `LICENSE` pour plus de détails.
|
|
214
|
+
|
|
215
|
+
## 🔗 Ressources utiles
|
|
216
|
+
|
|
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)
|