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
@@ -288,9 +288,9 @@ The SDK creates **one instance per component class** (no-arg constructor) and re
288
288
289
289
`McpApplication.run(mainClass, args)`loads `mcp-server.yml` by default; pass a third argument to use another classpath config file name.
290
290
291
-
#### MCP Java SDK 2.x (milestone)
291
+
#### MCP Java SDK 2.x (release candidate)
292
292
293
-
This project builds on the official [MCP Java SDK](https://github.com/modelcontextprotocol/java-sdk) **2.0.0-M3**, a **pre-release milestone**. APIs may change before 2.0 GA — pin dependency versions and re-run tests when upgrading.
293
+
This project builds on the official [MCP Java SDK](https://github.com/modelcontextprotocol/java-sdk) **2.0.0-RC1**, a **pre-release candidate**. APIs may still change before 2.0 GA — pin dependency versions and re-run tests when upgrading.
294
294
295
295
- **STREAMABLE** is the supported HTTP transport.
296
296
@@ -344,7 +344,7 @@ mvnw.cmd clean test
344
344
345
345
### Q: Can I use this in production?
346
346
347
-
**A:** The annotated layer is stable for development and testing, but it depends on the official MCP Java SDK **2.0.0-M3** (a milestone release). Pin versions, run your own integration tests, and expect possible SDK API changes before 2.0 GA before relying on it in production.
347
+
**A:** The annotated layer is stable for development and testing, but it depends on the official MCP Java SDK **2.0.0-RC1** (a release candidate). Pin versions, run your own integration tests, and expect possible SDK API changes before 2.0 GA before relying on it in production.
@@ -186,9 +186,9 @@ Use **SYNC** by default. Choose **ASYNC** only when your deployment requires the
186
186
187
187
The SDK creates **one instance per component class** (via a **public no-arg constructor**) and reuses it for all requests. Concurrent MCP calls share that object. Keep components **stateless** or **thread-safe**; avoid unsynchronized per-request instance fields.
188
188
189
-
### MCP Java SDK 2.x (milestone)
189
+
### MCP Java SDK 2.x (release candidate)
190
190
191
-
This SDK depends on MCP Java SDK **2.0.0-M3** (pre-release). Pin versions and retest when upgrading.
191
+
This SDK depends on MCP Java SDK **2.0.0-RC1** (pre-release candidate). Pin versions and retest when upgrading.
1. **Entry point**: Use `McpApplication.run()`; component classes are registered when they match the `@McpServerApplication` registration scope.
471
-
2. **MCP SDK milestone**: This project depends on MCP Java SDK **2.0.0-M3** (pre-release). Pin versions and retest when upgrading.
471
+
2. **MCP SDK release candidate**: This project depends on MCP Java SDK **2.0.0-RC1** (pre-release candidate). Pin versions and retest when upgrading.
472
472
3. **ASYNC is not reactive**: `type: ASYNC` selects the async MCP server API; handlers wrap blocking Java methods in `Mono.fromCallable(...)`. Annotated methods do not return `Mono`/`Flux`.
473
473
4. **Singleton components**: One instance per component class is shared across concurrent requests. Keep components stateless or thread-safe.
474
474
5. **Default Required**: The default `required` value for `@McpToolParam`, `@McpPromptParam`, and `@McpJsonSchemaProperty` is `true`.
0 commit comments