Add Streamable HTTP request body limits (#3095)
This commit is contained in:
parent
2713b53b12
commit
03aaebd3aa
1 changed files with 280 additions and 19 deletions
|
|
@ -68,7 +68,7 @@ async def mcp_endpoint(scope, receive, send):
|
|||
case "legacy":
|
||||
await my_existing_v1_manager.handle_request(scope, replay, send)
|
||||
case "modern":
|
||||
await modern_manager.handle_request(scope, replay, send)
|
||||
await modern_manager.asgi_app(scope, replay, send)
|
||||
case rejection:
|
||||
await send_jsonrpc_error(send, rejection) # map via ERROR_CODE_HTTP_STATUS
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue