fix: env parameters exception when configuring SSE or HTTP MCP server (#513)

* fix: _create_streamable_http_session() got an unexpected keyword argument 'env'

fix unit error

* update md

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
Anoyer-lzh
2025-08-20 17:23:57 +08:00
committed by GitHub
parent b08e9ad3ac
commit 270d8c3712
8 changed files with 54 additions and 16 deletions

View File

@@ -46,7 +46,18 @@ For `sse` type:
{
"transport": "sse",
"url": "http://localhost:3000/sse",
"env": {
"headers": {
"API_KEY": "value"
}
}
```
For `streamable_http` type:
```json
{
"transport": "streamable_http",
"url": "http://localhost:3000/mcp",
"headers": {
"API_KEY": "value"
}
}