Skip to content

docs: add bearer auth server example#2882

Draft
LiJzd wants to merge 1 commit into
modelcontextprotocol:mainfrom
LiJzd:docs/bearer-auth-sse-example
Draft

docs: add bearer auth server example#2882
LiJzd wants to merge 1 commit into
modelcontextprotocol:mainfrom
LiJzd:docs/bearer-auth-sse-example

Conversation

@LiJzd

@LiJzd LiJzd commented Jun 16, 2026

Copy link
Copy Markdown

Summary

  • Replace the placeholder authorization docs page with a focused bearer-token server example.
  • Show how to configure TokenVerifier and AuthSettings for protected MCP tools.
  • Clarify that the same bearer-token middleware applies to SSE and Streamable HTTP, including the default Inspector URLs and auth failure behavior.

Duplicate-work check

Validation

  • git diff --check
  • Parsed the Python code block in docs/authorization.md with ast.parse.
  • Checked that only docs/authorization.md changed.

Note: I could not run the repository's recommended uv run --frozen ... checks because uv is not installed on this machine.

Addresses #431.

AI assistance disclosure

This documentation update was prepared with AI assistance and manually reviewed before submission.

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