Commit graph typescript-sdk/src/server/streamableHttp.ts
Author SHA1 Message Date
ihrpr
3f95b76dcf
Merge pull request #338 from TomasRup/fix-example-in-stateless
stateless had a wrong example
2025-04-23 22:30:36 +01:00
Tomas Petras Rupšys
d61e59defe
Update src/server/streamableHttp.ts
Co-authored-by: ihrpr <inna.hrpr@gmail.com>
2025-04-22 14:20:08 +03:00
ihrpr
37fc7d2ca8
fix check to skip session validation for stateless mode 2025-04-21 14:56:12 +01:00
Cliff Hall
88f962d463
Merge branch 'main' into patch-1 2025-04-18 15:13:12 -04:00
ihrpr
0bf8b376df
examples for stateless servers 2025-04-18 11:46:17 +01:00
qikaigao
1df348710b
Update streamableHttp.ts 2025-04-17 15:38:12 -07:00
qikaigao
0058c30032
Update src/server/streamableHttp.ts
Co-authored-by: Cliff Hall <cliff@futurescale.com>
2025-04-17 11:08:34 -07:00
Cliff Hall
d88308bbfe
Merge branch 'main' into patch-1 2025-04-17 13:48:12 -04:00
ihrpr
64653f54bd
Merge pull request #351 from modelcontextprotocol/ihrpr/clean-up-examples
StreamableHttp - Update examples and README
2025-04-17 18:32:20 +01:00
ihrpr
f10d1ff93f
change sessionIdGenerator to be either undefined or generate a string 2025-04-17 18:22:11 +01:00
Cliff Hall
3048a6ffcf
Merge branch 'main' into patch-1 2025-04-17 13:18:42 -04:00
ihrpr
5dba9477ff
small fixes after suggested changes 2025-04-17 17:34:15 +01:00
ihrpr
a5144dc022
use utility to check for message types 2025-04-16 11:34:21 +01:00
ihrpr
585dc06708
introduce onsessioninitialized to avoid race conditions 2025-04-16 11:09:47 +01:00
ihrpr
84c2618c1e
Merge branch 'resumability' into ihrpr/resume-long-running-requests 2025-04-15 16:42:24 +01:00
ihrpr
b062d75a73
change standalone sse key 2025-04-15 16:41:33 +01:00
ihrpr
54d6929149
don't need to re-initialize when we reconnect a session 2025-04-15 11:58:43 +01:00
ihrpr
621e65c42b
Merge branch 'resumability' into ihrpr/resume-long-running-requests 2025-04-15 11:14:39 +01:00
ihrpr
67a4595ae7
improve event store interface 2025-04-15 11:03:44 +01:00
ihrpr
643ef5c5e7
remove redundant check for onlyNotifications 2025-04-15 09:26:08 +01:00
TomasRup
beec242593 stateless had a wrong example 2025-04-14 19:36:27 +03:00
ihrpr
7aeb67988a
improve comments 2025-04-14 09:37:19 +01:00
qikaigao
f0fbfc7fcb
StreamableHTTPServerTransport should only check init status when there is an sessionId
When using stateless mode, the backend will create a new transport for each request. For new transport, the initialized filed is always false. So we should only check the initialized filed if there is session existing
2025-04-14 00:46:13 -07:00
ihrpr
43cb015844
resume long running requst from new client 2025-04-13 21:40:15 +01:00
ihrpr
6374f43390
limit on retries 2025-04-13 15:18:52 +01:00
ihrpr
64fadf3cf2
resume streams on error - initial implementation 2025-04-13 08:26:49 +01:00
ihrpr
03de5b6853
Use server and transport classes instead of mocks in streamable http transport 2025-04-11 18:27:12 +01:00
ihrpr
44330448da
separate field on the class for standaloneSSE 2025-04-11 14:21:12 +01:00
ihrpr
e3b4496579
clean up and small fixes to comments 2025-04-11 10:42:41 +01:00
ihrpr
3dd4ff1542
fix hanging issue 2025-04-10 15:53:05 +01:00
ihrpr
111586c523
support sse though get 2025-04-10 14:23:34 +01:00
ihrpr
5b99e94e68
clean up somments 2025-04-09 21:54:35 +01:00
ihrpr
b37a2e11ab
support for server returning json -- not stream 2025-04-09 21:01:35 +01:00
ihrpr
6a8fa5ff2b
small refactor for send logic 2025-04-09 10:14:21 +01:00
ihrpr
84ca647d0d
init message to follow normal request path 2025-04-08 15:22:29 +01:00
ihrpr
4e0c2837f5
request id might be 0 2025-04-08 15:11:56 +01:00
ihrpr
7c4407144c
fix closing connection when there is response 2025-04-08 13:29:03 +01:00
ihrpr
88dc565f37
pass sessionIdGenerator instead of sessionId 2025-04-07 17:29:49 +01:00
ihrpr
f29cbe7e06
reject session as an array 2025-04-07 16:49:46 +01:00
ihrpr
c275a0d24e
remove session validation in handleUnsupportedRequest 2025-04-07 16:27:28 +01:00
ihrpr
8c2086ec97
refactor handle request types 2025-04-07 16:15:09 +01:00
ihrpr
af64a0e18c
remove custom headers 2025-04-07 16:03:31 +01:00
ihrpr
4068e6f9a3
cleanup initialization 2025-04-07 14:22:11 +01:00
ihrpr
6c1b9ba06a
remove local storage for replaying and remove support for sse connection thought get 2025-04-07 12:12:43 +01:00
ihrpr
00135707f6
rename files to use conventioanal typescript names 2025-04-06 17:28:46 +01:00
Renamed from src/server/streamable-http.ts (Previous history)