File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Declarative [MCP Java SDK](https://github.com/modelcontextprotocol/java-sdk) Dev
14
14
- No need to write more SDK low-level codes.
15
15
- Get rid of complex and lengthy JSON schema definitions.
16
16
- Just focus on your core logic (resources/prompts/tools).
17
+ - Configuration file compatible with the Spring AI framework.
17
18
18
19
## Showcase
19
20
@@ -35,6 +36,8 @@ public class MyMcpServer {
35
36
McpServers . run(MyMcpServer . class, args). startSyncSseServer(
36
37
McpSseServerInfo . builder(). name(" mcp-server" ). version(" 1.0.0" ). port(8080 ). build()
37
38
);
39
+ // or start with yaml configuration file compatible with the Spring AI framework
40
+ McpServers . run(MyMcpServer . class, args). startServer();
38
41
}
39
42
40
43
}
You can’t perform that action at this time.
0 commit comments