You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -181,4 +181,90 @@ Each phase completion should result in:
181
181
-**Documentation** of patterns and conventions
182
182
-**Performance validation** under realistic load
183
183
184
-
This incremental approach ensures the MCP server integrates seamlessly with the existing domain architecture while providing rich, domain-aware capabilities for external consumers. Starting with a single slice allows us to establish solid foundations and patterns that can be confidently replicated across the entire application.
184
+
This incremental approach ensures the MCP server integrates seamlessly with the existing domain architecture while providing rich, domain-aware capabilities for external consumers. Starting with a single slice allows us to establish solid foundations and patterns that can be confidently replicated across the entire application.
185
+
186
+
## 📚 Implementation Patterns & Documentation
187
+
188
+
### MCP Tool Implementation Pattern
189
+
190
+
Based on the successful implementation of `build_dwelling` tool, here's the established pattern for creating MCP tools:
191
+
192
+
#### 1. **File Location**
193
+
- Each slice gets its own `ModelContextProtocol.java` file
description = "Build a creature dwelling for recruiting specific creatures. Establishes a new dwelling with associated creature type and recruitment cost. The playerId should be provided via MCP client context (similar to REST API headers)."
Copy file name to clipboardExpand all lines: src/main/resources/application.yaml
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
server:
2
+
port: 3773
1
3
spring:
2
4
application:
3
5
name: heroesofddd
@@ -10,14 +12,7 @@ spring:
10
12
enabled: true
11
13
name: "Heroes of Might & Magic III - DDD/Event Sourcing Server"
12
14
version: "1.0.0"
13
-
type: SYNC
14
15
instructions: "MCP server for Heroes of Might & Magic III domain built with DDD, Event Sourcing, and Axon Framework. Provides domain operations, game management tools, and educational DDD resources."
0 commit comments