Commit graph python-sdk/tests/shared/test_sse.py
Author SHA1 Message Date
Marcelo Trylesinski
acba5478a9
refactor: McpError renamed to MCPError and flatten parameters (#1956)
Co-authored-by: Max Isbey <224885523+maxisbey@users.noreply.github.com>
2026-01-26 14:37:44 +01:00
Marcelo Trylesinski
f4672c5084
Drop RootModel from JSONRPCMessage (#1908) 2026-01-19 14:04:15 +01: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
cfb2909631
fix: change Resource URI fields from AnyUrl to str (#1863) 2026-01-16 09:58:57 +01:00
Arjun TS
2bf9b10f63
Skip empty SSE data to avoid parsing errors (#1753)
Co-authored-by: ARJUN-TS1 <arjun.ts1@ibm.com>
Co-authored-by: Max Isbey <224885523+maxisbey@users.noreply.github.com>
2025-12-09 15:14:23 +00:00
Camila Rondinini
2cd178a962
Add on_session_created callback option (#1710) 2025-12-01 17:48:33 +00:00
Max Isbey
89e9c43acf
Get baseline 100% clean coverage (#1553) 2025-11-11 14:09:32 +01:00
Max Isbey
db9e451551
fix: Replace remaining manual server polling with wait_for_server helper (#1529) 2025-10-29 11:27:57 +00:00
Max Isbey
3e86edfb2f
fix: Replace arbitrary sleeps with active server readiness checks in tests (#1527)
Co-authored-by: Claude <noreply@anthropic.com>
2025-10-28 21:42:33 +00:00
Marcelo Trylesinski
c7671e470c
Add pyright strict mode on the whole project (#1254) 2025-08-11 18:56:37 +01:00
Marcelo Trylesinski
7570ba30cf
Make sure RequestId is not coerced as int (#1178) 2025-07-21 10:57:47 +01:00
AishwaryaKalloli
bd84329a08
Doc update + validation in SseServerTransport + existing test fixes: addresses Issue: #827 (#900) 2025-07-09 08:19:06 +01:00
David Dworken
86bb54cb28
Add support for DNS rebinding protections (#861) 2025-06-17 20:13:00 +01:00
Marcelo Trylesinski
543961968c
Use 120 characters instead of 88 (#856) 2025-06-11 11:45:50 +02:00
xiaoming wang
2cbc435c6c
normalize string ID to int in server messages for compatibility (#851)
Co-authored-by: 晓明 王 <wxm@v1i.cc>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2025-06-08 07:15:21 +00:00
ihrpr
70014a2bbb
Support for http request injection propagation to tools (#816) 2025-05-28 15:59:14 +01:00
Jeremiah Lowin
1cb740745d
Properly infer prefix for SSE messages (#659) 2025-05-12 21:29:17 +01:00
Akash D
83968b5b2f
Handle SSE Disconnects Properly (#612) 2025-05-02 09:32:46 -07:00
David Soria Parra
9a2bb6a7e7
refactor: Make types.py strictly typechecked. (#336) 2025-03-26 14:21:35 +00:00
Marcelo Trylesinski
ae77772ea8
Add strict mode to pyright (#315)
* Add strict mode to pyright

* Apply UP rule

* fix readme

* More correct

* Leave wrong Context for now

* Add strict mode to pyright

* Apply UP rule

* fix readme

* fix

* ignore
2025-03-20 09:13:08 +00:00
David Soria Parra
27bfde95a4
fix: fix tests 2025-02-04 20:16:30 +00:00
David Soria Parra
2dc5fbfa3d
fix: add test for #176 2025-01-28 11:19:13 +00:00
Nick Merrill
d01d49ea6e
add timeout test 2025-01-14 12:10:41 -05:00
Nick Merrill
e798d20cbb
ruff 2025-01-14 11:56:44 -05:00
Nick Merrill
aa7869a62f
add type hints 2025-01-14 11:54:09 -05:00
Nick Merrill
3fa26a5a97
remove unused imports 2025-01-14 11:49:04 -05:00
Nick Merrill
07e721f63f
formatting 2025-01-14 11:47:41 -05:00
Nick Merrill
7b35ab844a
run server in separate process 2025-01-14 11:44:03 -05:00
Nick Merrill
8d90a3afa3
attempt at server in process 2025-01-14 11:15:05 -05:00
Nick Merrill
7ab1fc71aa
attempt to get server to shut down 2025-01-14 11:01:43 -05:00
Nick Merrill
8f81a85abe
all tests passing with custom port, but not passing all together 2025-01-14 10:45:55 -05:00
Nick Merrill
e79a56435a
passing SSE client test 2025-01-14 10:34:32 -05:00
Nick Merrill
66ccd1c515
test_sse_connection is passing 2025-01-14 10:18:27 -05:00