Skip to content

Commit 53515ae

Browse files
committed
feat(server): Add default values for MCP server info
1 parent 84f70f4 commit 53515ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/github/codeboyzhou/mcp/declarative/server/McpServerInfo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ public Duration requestTimeout() {
4242
@SuppressWarnings("unchecked")
4343
public static class Builder<T extends Builder<T>> {
4444

45-
protected String name;
45+
protected String name = "mcp-server";
4646

47-
protected String version;
47+
protected String version = "1.0.0";
4848

49-
protected String instructions;
49+
protected String instructions = "";
5050

51-
protected Duration requestTimeout;
51+
protected Duration requestTimeout = Duration.ofSeconds(10);
5252

5353
protected T self() {
5454
return (T) this;

0 commit comments

Comments
 (0)