Commit graph python-sdk/src/mcp/server/streamable_http.py
Author SHA1 Message Date
Max
7267818e44
Fix unknown-method error code and add a protocol version registry (#2836) 2026-06-11 16:47:22 +01:00
Max
5d826490b6
[v2] Dispatcher/ServerRunner receive-path swap — replaces BaseSession (#2710) 2026-06-09 12:58:47 +01:00
Max
19fe9faec8
Run StreamableHTTP transport tests in process instead of over sockets (#2767) 2026-06-03 12:45:00 +01:00
Max
b3025f93b4
Run transport security tests in process instead of over sockets (#2764) 2026-06-02 20:30:17 +01:00
Max
24725633f1
test: interaction-model end-to-end suite with a requirements manifest (#2691) 2026-05-28 18:48:30 +00:00
Marcelo Trylesinski
e6235d1667
Propagate contextvars.Context through anyio streams without modifying SessionMessage (#2298) 2026-03-31 12:49:38 -04:00
Shivam Aggarwal
51c53f2c18
fix: accept wildcard media types in Accept header per RFC 7231 (#2152)
Co-authored-by: Shivam <shivam@Shivams-MacBook-Air-2.local>
2026-03-09 16:30:02 +00:00
Jonathan Hefner
c0328540c9
docs: fix docstrings across public API surface (#2095) 2026-02-19 06:45:59 +01:00
Felix Weinberger
92140e5086
Add idle session timeout to StreamableHTTPSessionManager (#2022) 2026-02-18 10:47:02 +00:00
Max Isbey
705497a593
fix: allow null id in JSONRPCError per JSON-RPC 2.0 spec (#2056) 2026-02-17 10:30:34 +00:00
Aaron Abbott
f049c8e5c6
Fix leaked anyio streams in streamable_http (#1991)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2026-02-11 14:52:07 +00:00
Max Isbey
a7ddfdae07
ci: add strict-no-cover to detect unnecessary coverage pragmas (#1897) 2026-01-23 21:00:20 +01:00
Marcelo Trylesinski
3dc8b72041
refactor: replace pydantic_core.from_json by json.loads (#1912) 2026-01-19 20:04:28 +01:00
Marcelo Trylesinski
f4672c5084
Drop RootModel from JSONRPCMessage (#1908) 2026-01-19 14:04:15 +01:00
Felix Weinberger
d41d0c0128
chore: add D212 lint rule to enforce Google-style docstrings (#1892) 2026-01-16 16:10:52 +00:00
Marcelo Trylesinski
e94b386a13
refactor: use snake case instead of camel case in types (#1894) 2026-01-16 15:51:27 +01:00
Felix Weinberger
89ff338174
fix: skip priming events and close_sse_stream for old protocol versions (#1719)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-12-04 14:44:08 +00:00
Edison
9ed0b93ceb
fix: handle ClosedResourceError in StreamableHTTP message router (#1384)
Co-authored-by: Max Isbey <224885523+maxisbey@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-12-04 11:36:23 +01:00
Felix Weinberger
281fd4765e
Add SSE polling support (SEP-1699) (#1654) 2025-12-02 11:44:49 +00:00
Max Isbey
89e9c43acf
Get baseline 100% clean coverage (#1553) 2025-11-11 14:09:32 +01:00
adam jones
31ae5f4dc4
Relax Accept header requirement for JSON-only responses (#1500) 2025-10-27 17:46:04 +00:00
Christian Clauss
c47c767ff4
Python lint: Ruff rules for pylint and code complexity (#525) 2025-09-05 15:20:14 +01:00
Inna Harper
813da6a579
fix flaky fix-test_streamablehttp_client_resumption test (#1166) 2025-07-17 18:35:40 +01:00
hopeful0
b8cb3675dc
Close server session after handle stateless request (#1116) 2025-07-14 17:26:06 +01:00
Brian Soby
7b1078b515
Fix: Prevent session manager shutdown on individual session crash (#841)
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
Co-authored-by: Inna Harper <inna.hrpr@gmail.com>
2025-07-09 15:43:21 +01:00
Inna Harper
4fee123e72
clean up log.error (#1109) 2025-07-09 11:15:14 +01:00
Inna Harper
beacd6e009
remove max message size (#1105) 2025-07-08 15:56:18 +01:00
David Dworken
86bb54cb28
Add support for DNS rebinding protections (#861) 2025-06-17 20:13:00 +01:00
Felix Weinberger
df15e9566d
feat: implement MCP-Protocol-Version header requirement for HTTP transport (#898) 2025-06-12 18:01:53 +01:00
Marcelo Trylesinski
543961968c
Use 120 characters instead of 88 (#856) 2025-06-11 11:45:50 +02:00
ihrpr
05b7156ea8
Support for http request injection propagation in StreamableHttp (#833)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-05-29 15:21:06 +01:00
ihrpr
c6fb822c86
Fix streamable http sampling (#693)
Some checks failed
Main branch checks / checks (push) Has been cancelled
2025-05-12 18:31:35 +01:00
ihrpr
9d99aee014
Revert "Add message queue for SSE messages POST endpoint (#459)" (#649) 2025-05-07 16:35:20 +01:00
Akash D
3b1b213a96
Add message queue for SSE messages POST endpoint (#459) 2025-05-06 17:10:43 -07:00
ihrpr
5d8eaf77be
Streamable Http - clean up server memory streams (#604) 2025-05-02 14:59:17 +01:00
ihrpr
cf8b66b82f
use metadata from SessionMessage to propagate related_request_id (#591) 2025-05-02 14:35:17 +01:00
ihrpr
da0cf22355
Wrap JSONRPC messages with SessionMessage for metadata support (#590) 2025-05-02 14:29:00 +01:00
ihrpr
3978c6e1b9
StreamableHttp -- resumability support for servers (#587) 2025-05-02 14:10:40 +01:00
ihrpr
9dfc925090
StreamableHttp client transport (#573) 2025-05-02 13:59:02 +01:00
Renamed from src/mcp/server/streamableHttp.py (Previous history)