Skip to content

docs: add bearer auth server example#2882

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

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.

@LiJzd
LiJzd marked this pull request as ready for review June 22, 2026 04:39
@maxisbey

Copy link
Copy Markdown
Contributor

Thanks for the PR. This has since landed via #2978. Closing as part of a general backlog cleanup ahead of the v2 release. If this is still relevant against current main, feel free to reopen.

AI Disclaimer

@maxisbey maxisbey closed this Jul 24, 2026
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.

2 participants