Skip to content

fix: match tenant-prefixed MCP scopes#43

Open
matt-dean-git wants to merge 1 commit into
mainfrom
fix/mcp-tenant-prefixed-scope
Open

fix: match tenant-prefixed MCP scopes#43
matt-dean-git wants to merge 1 commit into
mainfrom
fix/mcp-tenant-prefixed-scope

Conversation

@matt-dean-git
Copy link
Copy Markdown
Collaborator

Summary

  • allow MCP scope matching to strip non-UUID tenant prefixes such as demo-82712860:*
  • preserve exact colon-scoped tool matching so this does not widen unrelated scopes
  • add regression coverage for tenant-slug wildcard and namespaced scopes

Validation

  • go test ./pkg/mcpserver

Freeze-4 context: staging SaaS MCP tokens are tenant-prefixed by slug, but the deployed matcher only stripped UUID prefixes, causing tools/call to fail with tool ... not in scope ... after dashboard tenant/session fixes.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
satgate Ready Ready Preview, Comment Apr 25, 2026 3:52am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant