Fix MCP session management with privileged execution pattern
Implement proper MCP 2025-06-18 session management where MCP services run with ADMIN privileges for system access while maintaining MCP_USER authentication context. Key changes: - Capture actual authenticated user ID before service elevation - Allow special case where Visit created with ADMIN but accessed by MCP_USER - Fix request body reading to prevent consumption before processing - Implement privileged execution pattern for secure system operations MCP interface now fully functional with 964+ Moqui services available as tools.
Showing
2 changed files
with
77 additions
and
21 deletions
-
Please register or sign in to post a comment