You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add remove_resource and remove_prompt to MCPServer, address PR review concerns
Add remove_resource() and remove_prompt() methods to MCPServer to match
the existing remove_tool() API, enabling dynamic deprovisioning of all
resource types for multi-tenant servers.
PR review fixes:
- Fix heading grammar: "Simple Registration of..." (concern #1)
- Add private API warning for _lowlevel_server usage in example (concern #3)
- Clarify example server needs TokenVerifier for production (concern #4)
- Guard offboard_tenant against KeyError for unprovisioned tools (concern #5)
- Add remove_resource/remove_prompt to MCPServer and docs (concern #6)
Tests added for both single-tenant and multi-tenant remove operations,
including cross-tenant isolation verification.
All dynamic changes take effect immediately — the next `list_tools` request from that tenant will reflect the updated set. Other tenants are unaffected.
157
+
All dynamic changes take effect immediately — the next `list_tools`, `list_resources`, or `list_prompts` request from that tenant will reflect the updated set. Other tenants are unaffected.
0 commit comments