EnhancedMcpServlet.class
37.5 KB
-
- Fixed internalLoginUser calls to use single parameter signature - Implemented admin discovery with user permission filtering for tools - Added proper session validation with authz bypass for Visit entity access - Enhanced audit logging with authz handling for ArtifactHit creation - Improved pagination support for tools/list with cursor-based navigation - Added comprehensive logging for debugging MCP service interactions - Temporarily bypassed entity permission checks for testing purposes - Enhanced error handling and user context restoration throughout services Key improvements: - Tools now discovered as admin but filtered by original user permissions - Session management properly validates Visit records and tracks activity - Audit records created with proper authz handling - Better error handling and user context switching in all MCP services
Ean Schuessler committed