File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ func main() {
156156
157157 // mock the root change
158158 if err := mcpClient .RootListChanges (ctx ); err != nil {
159- log .Printf ("fail to notify root list change: %v" , err )
159+ log .Printf ("failed to notify root list change: %v" , err )
160160 }
161161
162162 // Keep running until cancelled by signal
Original file line number Diff line number Diff line change @@ -115,14 +115,14 @@ func main() {
115115
116116 // mock the root change
117117 if err := mcpClient .RootListChanges (ctx ); err != nil {
118- log .Printf ("fail to notify root list change: %v" , err )
118+ log .Printf ("failed to notify root list change: %v" , err )
119119 }
120120
121121 // call server tool
122122 request := mcp.CallToolRequest {
123123 Params : mcp.CallToolParams {
124124 Name : "roots" ,
125- Arguments : map [string ]any {"testonly" : "yes" },
125+ Arguments : map [string ]any {},
126126 },
127127 }
128128 result , err := mcpClient .CallTool (ctx , request )
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func main() {
3333 // Add a simple tool to test roots list
3434 mcpServer .AddTool (mcp.Tool {
3535 Name : "roots" ,
36- Description : "Returns the current list of roots from the server " ,
36+ Description : "Requests and returns the current list of roots from the connected client " ,
3737 InputSchema : mcp.ToolInputSchema {
3838 Type : "object" ,
3939 Properties : map [string ]any {},
You can’t perform that action at this time.
0 commit comments