Skip to content

feat: make MCP auth scheme configurable via MCPAuth type family#10

Open
alexbiehl wants to merge 1 commit into
dpella:mainfrom
hive-observability:main
Open

feat: make MCP auth scheme configurable via MCPAuth type family#10
alexbiehl wants to merge 1 commit into
dpella:mainfrom
hive-observability:main

Conversation

@alexbiehl

@alexbiehl alexbiehl commented Jun 7, 2026

Copy link
Copy Markdown

Replace hardcoded Auth '[JWT] MCPHandlerUser with Auth MCPAuth MCPHandlerUser where MCPAuth is a type family that users provide a type instance for.

This allows downstream projects to use custom auth schemes (e.g. opaque token lookup) instead of being locked to JWT.

This is a breaking change.

Replace hardcoded `Auth '[JWT] MCPHandlerUser` with
`Auth MCPAuth MCPHandlerUser` where `MCPAuth` is a type family
that users provide a type instance for.

This allows downstream projects to use custom auth schemes
(e.g. opaque token lookup) instead of being locked to JWT.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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