Skip to content

mcp-data-platform-v1.41.2

Choose a tag to compare

@github-actions github-actions released this 14 Mar 01:24
· 252 commits to main since this release
ce82252

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:

  1. Unconditional admin API call — The Header component called useSystemInfo() for every user, which hits the admin-only /api/v1/admin/system/info endpoint. Non-admin users received a 401 (insufficient privileges).
  2. 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 statususeSystemInfo(isAdmin) skips the admin API call entirely for non-admin users via React Query's enabled option
  • Add enabled parameter to useSystemInfo hook — 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-platform

Claude Code CLI

claude mcp add mcp-data-platform -- mcp-data-platform

Docker

docker pull ghcr.io/txn2/mcp-data-platform:v1.41.2

Verification

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