Skip to content

feat: add HEAD router for mcp's mount_path #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryomahan
Copy link

@ryomahan ryomahan commented Jun 3, 2025

Describe your changes

some framework(such as langflow) will send a HEAD request to mount path to verify whether mcp service is available. So I add @router.head(mount_path, ..) that only return a empty 200 Response on _register_mcp_connection_endpoint_sse.

Checklist before requesting a review

  • Added relevant tests
  • Run ruff & mypy
  • All tests pass

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