mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
Surface proxy upstream failures (#4227)
This commit is contained in:
parent
986353f26b
commit
2bff3725bf
5 changed files with 179 additions and 4 deletions
|
|
@ -234,7 +234,12 @@ def build_transport(config: RemoteConfig) -> SSETransport | StreamableHttpTransp
|
|||
|
||||
async def run(config: RemoteConfig) -> None:
|
||||
client = Client(build_transport(config))
|
||||
server = create_proxy(client, name="fastmcp-remote")
|
||||
server = create_proxy(
|
||||
client,
|
||||
name="fastmcp-remote",
|
||||
provider_error_strategy="raise",
|
||||
validate_on_initialize=True,
|
||||
)
|
||||
if config.ignore_tools:
|
||||
server.add_transform(IgnoreTools(config.ignore_tools))
|
||||
await server.run_async(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue