Skip to content

Commit 27279bc

Browse files
authored
Update doc string on custom_route (#1660)
1 parent f225013 commit 27279bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,10 @@ def custom_route(
697697
The handler function must be an async function that accepts a Starlette
698698
Request and returns a Response.
699699
700+
Routes using this decorator will not require authorization. It is intended
701+
for uses that are either a part of authorization flows or intended to be
702+
public such as health check endpoints.
703+
700704
Args:
701705
path: URL path for the route (e.g., "/oauth/callback")
702706
methods: List of HTTP methods to support (e.g., ["GET", "POST"])

0 commit comments

Comments
 (0)