@@ -482,34 +482,34 @@ func (k knowledgeBase) AddObservations(ctx context.Context, req *mcp.ServerReque
482
482
}, nil
483
483
}
484
484
485
- func (k knowledgeBase ) DeleteEntities (ctx context.Context , req * mcp.ServerRequest [* mcp.CallToolParams ], args DeleteEntitiesArgs ) (* mcp.CallToolResult , struct {} , error ) {
485
+ func (k knowledgeBase ) DeleteEntities (ctx context.Context , req * mcp.ServerRequest [* mcp.CallToolParams ], args DeleteEntitiesArgs ) (* mcp.CallToolResult , any , error ) {
486
486
var res mcp.CallToolResult
487
487
488
488
err := k .deleteEntities (args .EntityNames )
489
489
if err != nil {
490
- return nil , struct {}{} , err
490
+ return nil , nil , err
491
491
}
492
492
493
493
res .Content = []mcp.Content {
494
494
& mcp.TextContent {Text : "Entities deleted successfully" },
495
495
}
496
496
497
- return & res , struct {}{} , nil
497
+ return & res , nil , nil
498
498
}
499
499
500
- func (k knowledgeBase ) DeleteObservations (ctx context.Context , req * mcp.ServerRequest [* mcp.CallToolParams ], args DeleteObservationsArgs ) (* mcp.CallToolResult , struct {} , error ) {
500
+ func (k knowledgeBase ) DeleteObservations (ctx context.Context , req * mcp.ServerRequest [* mcp.CallToolParams ], args DeleteObservationsArgs ) (* mcp.CallToolResult , any , error ) {
501
501
var res mcp.CallToolResult
502
502
503
503
err := k .deleteObservations (args .Deletions )
504
504
if err != nil {
505
- return nil , struct {}{} , err
505
+ return nil , nil , err
506
506
}
507
507
508
508
res .Content = []mcp.Content {
509
509
& mcp.TextContent {Text : "Observations deleted successfully" },
510
510
}
511
511
512
- return & res , struct {}{} , nil
512
+ return & res , nil , nil
513
513
}
514
514
515
515
func (k knowledgeBase ) DeleteRelations (ctx context.Context , req * mcp.ServerRequest [* mcp.CallToolParams ], args DeleteRelationsArgs ) (* mcp.CallToolResult , struct {}, error ) {
@@ -554,8 +554,7 @@ func (k knowledgeBase) SearchNodes(ctx context.Context, req *mcp.ServerRequest[*
554
554
& mcp.TextContent {Text : "Nodes searched successfully" },
555
555
}
556
556
557
- res .StructuredContent = graph
558
- return & res , KnowledgeGraph {}, nil
557
+ return & res , graph , nil
559
558
}
560
559
561
560
func (k knowledgeBase ) OpenNodes (ctx context.Context , req * mcp.ServerRequest [* mcp.CallToolParams ], args OpenNodesArgs ) (* mcp.CallToolResult , KnowledgeGraph , error ) {
0 commit comments