File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11= Annotation-driven MCP Java SDK
22
3- Declarative https://github.com/modelcontextprotocol/java-sdk[MCP Java SDK] Development with Java Annotations - No Spring Framework Required .
3+ Declarative https://github.com/modelcontextprotocol/java-sdk[MCP Java SDK] Development with Java Annotations.
44
5- Focus on your core logic (resources/prompts/tools) - Not SDK low-level details. Instant MCP Java server in 1 LOC.
5+ == Advantages
6+ - No Spring Framework Required.
7+ - Instant MCP Java server in 1 LOC.
8+ - No need to write more SDK low-level codes.
9+ - Just focus on your core logic (resources/prompts/tools).
610
711== Showcase
812
@@ -19,7 +23,7 @@ public class MyMcpServer {
1923 // Start a STDIO MCP server
2024 McpServers.run(MyMcpServer.class, args).startSyncStdioServer("mcp-server", "1.0.0");
2125 // or a HTTP SSE MCP server
22- // McpServers.run(MyMcpServer.class, args).startSyncSseServer("mcp-server", "1.0.0");
26+ McpServers.run(MyMcpServer.class, args).startSyncSseServer("mcp-server", "1.0.0");
2327 }
2428
2529}
You can’t perform that action at this time.
0 commit comments