Skip to content

Commit 746f43b

Browse files
committed
docs(README): Update README.md to introduce server configuration
1 parent c1bfe12 commit 746f43b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Declarative [MCP Java SDK](https://github.com/modelcontextprotocol/java-sdk) Dev
1414
- No need to write more SDK low-level codes.
1515
- Get rid of complex and lengthy JSON schema definitions.
1616
- Just focus on your core logic (resources/prompts/tools).
17+
- Configuration file compatible with the Spring AI framework.
1718

1819
## Showcase
1920

@@ -35,6 +36,8 @@ public class MyMcpServer {
3536
McpServers.run(MyMcpServer.class, args).startSyncSseServer(
3637
McpSseServerInfo.builder().name("mcp-server").version("1.0.0").port(8080).build()
3738
);
39+
// or start with yaml configuration file compatible with the Spring AI framework
40+
McpServers.run(MyMcpServer.class, args).startServer();
3841
}
3942

4043
}

0 commit comments

Comments
 (0)