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 1
1
= Annotation-driven MCP Java SDK
2
2
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.
4
4
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).
6
10
7
11
== Showcase
8
12
@@ -19,7 +23,7 @@ public class MyMcpServer {
19
23
// Start a STDIO MCP server
20
24
McpServers.run(MyMcpServer.class, args).startSyncStdioServer("mcp-server", "1.0.0");
21
25
// 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");
23
27
}
24
28
25
29
}
You can’t perform that action at this time.
0 commit comments