File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -383,14 +383,6 @@ func (s *MCPServer) DeleteResources(uris ...string) {
383
383
}
384
384
}
385
385
386
- // SetResources replaces all existing resources with the provided list
387
- func (s * MCPServer ) SetResources (resources ... ServerResource ) {
388
- s .resourcesMu .Lock ()
389
- s .resources = make (map [string ]resourceEntry , len (resources ))
390
- s .resourcesMu .Unlock ()
391
- s .AddResources (resources ... )
392
- }
393
-
394
386
// RemoveResource removes a resource from the server
395
387
func (s * MCPServer ) RemoveResource (uri string ) {
396
388
s .resourcesMu .Lock ()
@@ -494,15 +486,6 @@ func (s *MCPServer) DeletePrompts(names ...string) {
494
486
}
495
487
}
496
488
497
- // SetPrompts replaces all existing prompts with the provided list
498
- func (s * MCPServer ) SetPrompts (prompts ... ServerPrompt ) {
499
- s .promptsMu .Lock ()
500
- s .prompts = make (map [string ]mcp.Prompt , len (prompts ))
501
- s .promptHandlers = make (map [string ]PromptHandlerFunc , len (prompts ))
502
- s .promptsMu .Unlock ()
503
- s .AddPrompts (prompts ... )
504
- }
505
-
506
489
// AddTool registers a new tool and its handler
507
490
func (s * MCPServer ) AddTool (tool mcp.Tool , handler ToolHandlerFunc ) {
508
491
s .AddTools (ServerTool {Tool : tool , Handler : handler })
You can’t perform that action at this time.
0 commit comments