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
- Update filters.md to use DI and logging
- Update filters.md Mention that uncaught McpExceptions get turned into JSON-RPC errors
- Added newlines to McpServer between blocks
- Remove TODO from AuthorizationFilterSetup now that an issue has been filed
@@ -207,11 +217,7 @@ The authorization filters work differently for list operations versus individual
207
217
For list operations, the filters automatically remove unauthorized items from the results. Users only see tools, prompts, or resources they have permission to access.
For individual operations, the filters return authorization errors when access is denied:
211
-
212
-
-**Tools**: Returns a `CallToolResult` with `IsError = true` and an error message
213
-
-**Prompts**: Throws an `McpException` with "Access forbidden" message
214
-
-**Resources**: Throws an `McpException` with "Access forbidden" message
220
+
For individual operations, the filters throw an `McpException` with "Access forbidden" message. These get turned into JSON-RPC errors if uncaught by middleware.
0 commit comments