mcp-data-platform-v1.41.2
Highlights
This patch fixes a bug where non-admin users were immediately logged out after a successful SSO login.
SSO Login Fix for Non-Admin Users
After completing OIDC login, non-admin users (e.g. those with the analyst persona) were immediately shown "Your session has expired. Please sign in again." — even though their session was perfectly valid.
Root cause: Two issues compounding:
- Unconditional admin API call — The
Headercomponent calleduseSystemInfo()for every user, which hits the admin-only/api/v1/admin/system/infoendpoint. Non-admin users received a 401 (insufficient privileges). - Overly aggressive 401 handling — The admin API client treated all 401 responses as session expiration and called
expireSession(), destroying the valid session.
Fix (3 changes, defense in depth):
- Gate the query on admin status —
useSystemInfo(isAdmin)skips the admin API call entirely for non-admin users via React Query'senabledoption - Add
enabledparameter touseSystemInfohook — Accepts a boolean to conditionally disable the query - Remove
expireSession()from the admin API client — A 401 from admin endpoints means "insufficient privileges", not "session invalid". The portal client handles true session expiration independently.
Changelog
Bug Fixes
- fix: prevent non-admin users from getting "session expired" after SSO login (#241)
Installation
Homebrew (macOS)
brew install txn2/tap/mcp-data-platformClaude Code CLI
claude mcp add mcp-data-platform -- mcp-data-platformDocker
docker pull ghcr.io/txn2/mcp-data-platform:v1.41.2Verification
All release artifacts are signed with Cosign. Verify with:
cosign verify-blob --bundle mcp-data-platform_1.41.2_linux_amd64.tar.gz.sigstore.json \
mcp-data-platform_1.41.2_linux_amd64.tar.gz