Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/mcp/server/fastmcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,10 @@ def custom_route(
The handler function must be an async function that accepts a Starlette
Request and returns a Response.

Routes using this decorator will not require authorization. It is intended
for uses that are either a part of authorization flows or intended to be
public such as health check endpoints.

Args:
path: URL path for the route (e.g., "/oauth/callback")
methods: List of HTTP methods to support (e.g., ["GET", "POST"])
Expand Down