Commit graph

561 commits

Author SHA1 Message Date
ihrpr
71aeb9a3a6
add examples with notifications 2025-04-09 21:38:57 +01:00
ihrpr
b37a2e11ab
support for server returning json -- not stream 2025-04-09 21:01:35 +01:00
ihrpr
0fa46aa2e9
Merge pull request #294 from modelcontextprotocol/ihrpr/examples
Add examples of server and client for streamable http transport
2025-04-09 13:05:47 +01:00
ihrpr
27d2996755
Merge pull request #292 from modelcontextprotocol/ihrpr/fix-streamable-connection-close
Close SSE connection for request in Streamable Http Server implementation
2025-04-09 12:59:19 +01:00
ihrpr
0445095004
Merge pull request #290 from modelcontextprotocol/ihrpr/streamable-http-client
Client implementation of Streamable HTTP transport
2025-04-09 12:57:46 +01:00
ihrpr
86714c02a4
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-09 11:18:29 +01:00
ihrpr
ac3f2cf178
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-09 11:17:55 +01:00
ihrpr
26929fa9b7
fix lint 2025-04-09 11:17:34 +01:00
ihrpr
78cf1bddc8
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-09 11:15:44 +01:00
ihrpr
25844aca8e
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-09 11:15:08 +01:00
ihrpr
18674007e5
remove the _activeStreams map 2025-04-09 11:13:28 +01:00
ihrpr
70af109e93
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-09 10:18:35 +01:00
ihrpr
311c7af1c8
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-09 10:17:46 +01:00
ihrpr
368d666211
Merge branch 'main' into ihrpr/streamable-http-client 2025-04-09 10:16:51 +01:00
ihrpr
6436c0756c
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-09 10:15:07 +01:00
Justin Spahr-Summers
d205ad28f3
Merge pull request #177 from akazwz/fix-url
Improve SSE endpoint sessionId parameter handling
2025-04-09 10:14:28 +01:00
ihrpr
6a8fa5ff2b
small refactor for send logic 2025-04-09 10:14:21 +01:00
ihrpr
4450cace33
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-09 10:02:41 +01:00
ihrpr
1d18a57a17
extract standalone get into a method which can be called by a client 2025-04-09 09:50:59 +01:00
akazwz
976ff74ba1 Replace type casting with direct sessionId property access in SSE tests 2025-04-09 09:28:46 +08:00
akazwz
84447c2999 Add tests for SSE server transport endpoint handling 2025-04-09 09:25:27 +08:00
ihrpr
3cf82c35dc
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-08 22:32:02 +01:00
ihrpr
ddf3d5dda5
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-08 22:31:02 +01:00
ihrpr
15c10a5883
fix lint 2025-04-08 22:30:15 +01:00
ihrpr
1a3cf1b301
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-08 22:25:53 +01:00
ihrpr
4429066477
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-08 22:24:51 +01:00
ihrpr
6c5efefd4a
Merge branch 'ihrpr/streamable-http-client' into ihrpr/examples 2025-04-08 21:40:20 +01:00
ihrpr
d4ad976401
use EventSourceParserStream 2025-04-08 21:39:49 +01:00
ihrpr
161b8da3e0
fix lint and rename 2025-04-08 16:16:51 +01:00
ihrpr
b9faec3f5f
Merge branch 'ihrpr/fix-streamable-connection-close' into ihrpr/examples 2025-04-08 16:06:14 +01:00
ihrpr
cc7f8e4e1b
fix tests after init fix 2025-04-08 16:05:28 +01:00
ihrpr
6c6df5e011
improve readme 2025-04-08 15:34:27 +01:00
ihrpr
c645ec9ad8
streamable client and server examples 2025-04-08 15:24:56 +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
95f8986242
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-08 15:05:08 +01:00
ihrpr
f1827ced10
handle not implemented get 2025-04-08 15:04:07 +01:00
ihrpr
7c4407144c
fix closing connection when there is response 2025-04-08 13:29:03 +01:00
akazwz
389088e667 Improve URL parameter handling in SSE using URL/URLSearchParams APIs 2025-04-08 19:41:55 +08:00
ihrpr
c3b446d424
multiple streams and initial stream with get 2025-04-08 11:11:09 +01:00
ihrpr
640ae5a863
initial client implementation 2025-04-08 09:43:22 +01:00
ihrpr
693fdc3c1a
Merge pull request #266 from modelcontextprotocol/ihrpr/http-streamable-server
Server implementation of Streamable HTTP transport
2025-04-07 19:52:29 +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
251bb9d97d
Merge branch 'main' into ihrpr/http-streamable-server 2025-04-07 14:29:09 +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