Michael Hart
67ad0bd773
Ensure JSONRPCError messages are sent for streamable http
...
Prior to this, any JSONRPCError message sent when `enableJsonResponse` is true would be ignored (and response.end() never called)
2025-04-25 22:18:18 +10:00
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
Basil Hosmer
e53608ea19
rebase and address comments
2025-04-22 16:37:16 -04:00
Basil Hosmer
0096be432f
Add ToolAnnotations support to McpServer.tool() method
2025-04-22 15:24:32 -04:00
ihrpr
f41769184d
Merge pull request #358 from lforst/lforst-pass-request-id-to-extra
...
Pass `requestId` to handlers via metadata
2025-04-22 18:17:26 +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
Justin Spahr-Summers
21f492f531
Revert "Merge pull request #334 from m-paternostro/mp/notifier"
...
This reverts commit 3ef902328a , reversing
changes made to 5b6d35eb12 .
2025-04-22 11:35:49 +01:00
ihrpr
6050aa9f05
lint
2025-04-21 15:31:38 +01:00
ihrpr
37fc7d2ca8
fix check to skip session validation for stateless mode
2025-04-21 14:56:12 +01:00
ihrpr
a51fea33b1
Merge remote-tracking branch 'qikaigao/patch-1' into ihrpr/example-clients
2025-04-21 14:47:36 +01:00
Cliff Hall
88f962d463
Merge branch 'main' into patch-1
2025-04-18 15:13:12 -04:00
Marcelo Paternostro
112eed999c
example and more documentation
2025-04-18 10:08:36 -04:00
Marcelo Paternostro
b2fea383dd
capability event
2025-04-18 10:05:10 -04:00
Marcelo Paternostro
b5e6d7bc32
add server.getVersion()
2025-04-18 10:05:09 -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
Luca Forstner
ec23b71f4e
Pass requestId to handlers via metadata
2025-04-17 11:41:11 +02: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
f9f2ba4717
Merge branch 'main' into ihrpr/resume-long-running-requests
2025-04-15 22:10:58 +01:00
ihrpr
9ed22547da
Merge pull request #332 from modelcontextprotocol/resumability
...
Streamable HTTP - resume streams on disconnect
2025-04-15 18:45:05 +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
Justin Spahr-Summers
2f5fc1744d
Merge pull request #166 from allenzhou101/request-auth-info
...
Include Authorization Info in Tool Calls (and request handlers generally)
2025-04-15 10:02:47 +01:00
ihrpr
643ef5c5e7
remove redundant check for onlyNotifications
2025-04-15 09:26:08 +01:00
Allen Zhou
b30a77e1b9
Update types.ts
2025-04-14 10:10:57 -07:00
Allen Zhou
ab3bb94290
Adjust arbitrary keys to custom claims field to prevent conflicts
2025-04-14 10:10:08 -07: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
Allen Zhou
23188ec446
Add custom claims to authinfo
2025-04-12 18:06:46 -07:00
Allen Zhou
6f852a1117
Merge remote-tracking branch 'upstream/main' into request-auth-info
2025-04-12 16:41:22 -07:00
Allen Zhou
c4381b857b
Pass extra object instead of authInfo directly
2025-04-12 16:38:55 -07: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
44330448da
separate field on the class for standaloneSSE
2025-04-11 14:21:12 +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