MCPcopy Create free account
hub / github.com/modelcontextprotocol/go-sdk / RemoveResourceTemplates

Method RemoveResourceTemplates

mcp/server.go:553–555  ·  view source on GitHub ↗

RemoveResourceTemplates removes the resource templates with the given URI templates. It is not an error to remove a nonexistent resource.

(uriTemplates ...string)

Source from the content-addressed store, hash-verified

551// RemoveResourceTemplates removes the resource templates with the given URI templates.
552// It is not an error to remove a nonexistent resource.
553func (s *Server) RemoveResourceTemplates(uriTemplates ...string) {
554 s.changeAndNotify(notificationResourceListChanged, func() bool { return s.resourceTemplates.remove(uriTemplates...) })
555}
556
557func (s *Server) capabilities() *ServerCapabilities {
558 s.mu.Lock()

Callers

nothing calls this directly

Calls 2

changeAndNotifyMethod · 0.95
removeMethod · 0.80

Tested by

no test coverage detected