mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-19 12:04:18 +02:00
* fix: resolve OpenAPI 3.x server variables in _create_default_client When an OpenAPI spec defines server variables (e.g. `https://{region}.api.example.com/v1`), the default values are now substituted before constructing the httpx client base URL. Previously, the URL was used as-is, causing all requests to fail for specs that use server variable templating. Fixes #1681 * fix: use str.replace instead of format_map for server variable substitution format_map applies Python string formatting rules, so variable names like {api.version} would be treated as attribute access and raise errors. Literal token replacement handles all valid OpenAPI variable names safely. |
||
|---|---|---|
| .. | ||
| local_provider_tools | ||
| openapi | ||
| proxy | ||
| __init__.py | ||
| test_base_provider.py | ||
| test_fastmcp_provider.py | ||
| test_local_provider.py | ||
| test_local_provider_prompts.py | ||
| test_local_provider_resources.py | ||
| test_skills_provider.py | ||
| test_skills_vendor_providers.py | ||
| test_transforming_provider.py | ||