@@ -280,7 +280,7 @@ func (s *MCPServer) handleEchoTool(
280280 return nil , fmt .Errorf ("invalid message argument" )
281281 }
282282 return & mcp.CallToolResult {
283- Content : []interface {} {
283+ Content : []mcp. Content {
284284 mcp.TextContent {
285285 Type : "text" ,
286286 Text : fmt .Sprintf ("Echo: %s" , message ),
@@ -301,7 +301,7 @@ func (s *MCPServer) handleAddTool(
301301 }
302302 sum := a + b
303303 return & mcp.CallToolResult {
304- Content : []interface {} {
304+ Content : []mcp. Content {
305305 mcp.TextContent {
306306 Type : "text" ,
307307 Text : fmt .Sprintf ("The sum of %f and %f is %f." , a , b , sum ),
@@ -330,7 +330,7 @@ func (s *MCPServer) handleSendNotification(
330330 }
331331
332332 return & mcp.CallToolResult {
333- Content : []interface {} {
333+ Content : []mcp. Content {
334334 mcp.TextContent {
335335 Type : "text" ,
336336 Text : "notification sent successfully" ,
@@ -373,7 +373,7 @@ func (s *MCPServer) handleLongRunningOperationTool(
373373 }
374374
375375 return & mcp.CallToolResult {
376- Content : []interface {} {
376+ Content : []mcp. Content {
377377 mcp.TextContent {
378378 Type : "text" ,
379379 Text : fmt .Sprintf (
@@ -412,7 +412,7 @@ func (s *MCPServer) handleGetTinyImageTool(
412412 request mcp.CallToolRequest ,
413413) (* mcp.CallToolResult , error ) {
414414 return & mcp.CallToolResult {
415- Content : []interface {} {
415+ Content : []mcp. Content {
416416 mcp.TextContent {
417417 Type : "text" ,
418418 Text : "This is a tiny image:" ,
0 commit comments