Commit graph

611 commits

Author SHA1 Message Date
ihrpr
f1e6acb17d
resumed tool to return value 2025-04-15 16:37:31 +01:00
ihrpr
54d6929149
don't need to re-initialize when we reconnect a session 2025-04-15 11:58:43 +01:00
ihrpr
1359e9fe6a
pull transport send options into own named type 2025-04-15 11:42:16 +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
ihrpr
583202f81a
address client comments 2025-04-15 09:24:11 +01:00
ihrpr
f9f380738f
Merge branch 'main' into resumability 2025-04-15 09:10:24 +01:00
ihrpr
ff4cf8452f
Merge branch 'main' into resumability 2025-04-15 09:09:43 +01:00
ihrpr
dd254f9929
Merge pull request #316 from modelcontextprotocol/streamablehttp-server-tests
Refactor StreamableHttp Server tests
2025-04-15 09:07:05 +01:00
ihrpr
7aeb67988a
improve comments 2025-04-14 09:37:19 +01:00
ihrpr
c21b9a0ac2
fix lint 2025-04-14 09:08:01 +01:00
ihrpr
c49769b97a
integration tests 2025-04-13 23:46:38 +01:00
ihrpr
43cb015844
resume long running requst from new client 2025-04-13 21:40:15 +01:00
ihrpr
663b68a733
exc to disconnect in example client 2025-04-13 16:16:14 +01:00
ihrpr
6374f43390
limit on retries 2025-04-13 15:18:52 +01:00
ihrpr
3bd28829a5
examples 2025-04-13 08:28:09 +01:00
ihrpr
64fadf3cf2
resume streams on error - initial implementation 2025-04-13 08:26:49 +01:00
ihrpr
055fe61d93
close server 2025-04-11 20:52:27 +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
56b0427957
Merge pull request #304 from modelcontextprotocol/get-sse
StreamableHTTP -  listening for messages from the server trough GET established SSE
2025-04-11 14:33:19 +01:00
ihrpr
44330448da
separate field on the class for standaloneSSE 2025-04-11 14:21:12 +01:00
ihrpr
2c2cf5b4a2
cleam up example client 2025-04-11 14:15:43 +01:00
ihrpr
18e4981bd3
move get sse stream from a separate method to automatic connection when notifications/initialized received 2025-04-11 14:06:51 +01:00
ihrpr
e3b4496579
clean up and small fixes to comments 2025-04-11 10:42:41 +01:00
ihrpr
5730f3e92a
fixes in README 2025-04-11 10:19:09 +01:00
Justin Spahr-Summers
c3adee2aff
Merge pull request #305 from cliffhall/bump-to-0.9.1
Bump to version 1.10.0
2025-04-11 10:04:33 +01:00
Cliff Hall
cc13334230
Merge branch 'modelcontextprotocol:main' into bump-to-0.9.1 2025-04-10 17:13:35 -04:00
cliffhall
6a85e772b0 Bump to version 1.10.0 2025-04-10 17:12:30 -04:00
ihrpr
4b5fb0f2d7
Merge branch 'main' into get-sse 2025-04-10 17:57:48 +01:00
ihrpr
c6668c1f80
Merge pull request #281 from fredericbarthelet/add-json-rpc-helper-methods
Add helper functions to distinguish between jsonRPC message types
2025-04-10 17:53:45 +01:00
cliffhall
1a89c33e91 Bump to version 1.9.1 2025-04-10 11:15:55 -04:00
ihrpr
3adca3f3bc
fix tests 2025-04-10 16:01:21 +01:00
ihrpr
3dd4ff1542
fix hanging issue 2025-04-10 15:53:05 +01:00
ihrpr
5c5a33021c
add GET to examples servers 2025-04-10 15:28:39 +01:00
ihrpr
755534ee1a
clean up examples README 2025-04-10 14:41:48 +01:00
ihrpr
0c1a4f22be
add get sse to README 2025-04-10 14:34:28 +01:00
ihrpr
111586c523
support sse though get 2025-04-10 14:23:34 +01:00
ihrpr
75ec9de108
Merge pull request #299 from modelcontextprotocol/ihrpr/response-returns-json
Support server returning only JSON on requests
2025-04-10 13:31:51 +01:00
ihrpr
569c928794
remove promise from test 2025-04-10 13:04:58 +01:00
ihrpr
962a9c959a
clean up and docs fixes 2025-04-10 13:01:09 +01:00
ihrpr
77352db978
Merge pull request #300 from prompteus-ai/streamable-http-client-fixes
StreamableHTTPClientTransport cleanup / fixes
2025-04-10 10:00:57 +01:00
ihrpr
632b836c51
remove order assumption for batch responses in test 2025-04-10 09:43:42 +01:00
Antoine Beauvais-Lacasse
a76004c92b StreamableHTTPClientTransport cleanup / fixes
* always send headers specified in requestInit option
* avoid doubled onerror call
* use for-await to iterate SSE stream
* remove outdated comments
* simplify requestId tracking
* throw error when response Content-Type is out of spec
2025-04-09 21:18:50 -04:00
Frédéric Barthelet
4e749dba4d Add isJSONRPCError method 2025-04-10 00:06:07 +02:00
Frédéric Barthelet
8215651552 Add helper functions to distinguish between jsonRPC message types 2025-04-09 23:45:25 +02:00
ihrpr
1aad7685f3
Merge branch 'main' into ihrpr/response-returns-json 2025-04-09 21:59:11 +01:00
ihrpr
5b99e94e68
clean up somments 2025-04-09 21:54:35 +01:00
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