McpServer.removeResource

Unregister a previously registered direct resource by URI. Returns true if a resource was removed, false if no resource with that URI was registered. The mirror of registerResource; pair with notifyResourcesListChanged to inform connected clients that the available resource set changed.

class McpServer
@safe
bool
removeResource
(
string uri
)