Disassociating a Resource from an MCP Server
Using HasMCP UI
If a specific set of data is no longer pertinent to a server’s underlying function (or represents a security leak for that specific agent prompt), remove it utilizing the dashboard interface:- Click into the deployed server via the MCP Servers layout.
- Select the Resources tab to view your active bindings.
- Locate the row mapping the resource you want to deny.
- Click the associated Remove (or Delete) icon.
- Accept the destructive confirmation module to definitively unbind the association.
Using REST API
For pipeline automations enforcing dynamic access permissions depending on the time of day or trigger type, you can revoke access surgically utilizing theDELETE verb.
The API Endpoint
DELETE /servers/{serverId}/resources/{resourceId}
You must pinpoint the exact serverId housing the agent connection, specifically targeting the explicit 11-character hash dictating the resourceId you wish to sever.
Example Rejection Request
204 No Content response block. Any persistent LLM connections previously caching this resource will error out natively if they blindly request its URI path moving forward.