fastmcp/tests/integration_tests
Jeremiah Lowin 48fc8cbc9a
Fix consent form action for subpath mounting (#2382)
* Fix consent form action for subpath mounting

When a FastMCP server is mounted at a subpath (e.g., /api/v1), the consent
form used a hardcoded absolute path (/consent/submit) that didn't include
the mount prefix, causing 404 errors on submission.

Changed the form to use an empty action (action="") which submits to the
current URL, making it work correctly regardless of mount path. Also
consolidated the consent endpoints to handle both GET and POST at /consent.

Fixes #2380

* Update integration test to use /consent instead of /consent/submit
2025-11-05 20:20:38 -05:00
..
auth Fix consent form action for subpath mounting (#2382) 2025-11-05 20:20:38 -05:00
__init__.py Update github remote server tests with secret (#1112) 2025-07-10 10:48:42 -04:00
conftest.py fix missing import 2025-07-18 15:27:52 -05:00
test_github_mcp_remote.py lint 2025-10-03 21:27:31 -05:00