Skip to content

Commit dce591a

Browse files
committed
fixed: correct server version in initialize
1 parent 470e6d8 commit dce591a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func getApp() *app.Builder {
134134
WithServerCapabilities(getCapabilities()).
135135
// setting up server
136136
WithName("mcp-k8s-go").
137-
WithVersion("0.0.1").
137+
WithVersion(version).
138138
WithTransport(stdio.NewTransport()).
139139
// Configuring fx logging to only show errors
140140
WithFxOptions(

testdata/initialize/init_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ out:
2424
"tools": { "listChanged": false },
2525
},
2626
"protocolVersion": "2024-11-05",
27-
"serverInfo": { "name": "mcp-k8s-go", "version": "0.0.1" },
27+
"serverInfo": { "name": "mcp-k8s-go", "version": !!re ".*" },
2828
},
2929
"id": 1,
3030
}

0 commit comments

Comments
 (0)