Commit graph

583 commits

Author SHA1 Message Date
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
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
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
Justin Spahr-Summers
df8701937d
Merge pull request #247 from geelen/mcp-server-mutations
Mutations for `McpServer`
2025-04-09 16:22:29 +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
Glen Maddern
9f9c244857 Added mutation methods to RegisteredTool/Resource/ResourceTemplate/Prompt
This allows these objects to be enabled/disabled, or updated on the fly. Corresponding listChanged notifications are automatically emitted.
2025-04-09 15:55:49 +10: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