Commit graph typescript-sdk/src
Author SHA1 Message Date
ihrpr
dbd439ec57
Merge pull request #406 from botengyao/format-issue
nit: fix the comment format in the streamableHTTP.ts
2025-04-28 18:31:14 +01:00
ihrpr
465ba67194
Merge pull request #409 from mhart/patch-1
Ensure JSONRPCError messages are sent for streamable http
2025-04-28 18:26:57 +01:00
ihrpr
89f7fb7a10
Merge pull request #411 from fredericbarthelet/add-unauthorized-error-test
Add 401 during POST request test case on StreamableHTTP transport to check auth flow
2025-04-28 18:15:48 +01:00
Frédéric Barthelet
eb486d5cbc Add auth flow on 401 during POST request test case on StreamableHTTP transport 2025-04-25 16:27:58 +02:00
Marcel Samyn
75eb1c431a Pass request _meta to request handlers extra param 2025-04-25 14:42:59 +02:00
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
Boteng Yao
868fc7b432 fix format 2025-04-25 03:43:05 +00:00
ihrpr
9db5b8363c
fix sse examples 2025-04-23 22:32:56 +01: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
c5e81adcd8
Fix example to properly position tool annotations 2025-04-22 15:24:38 -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
eeda5d630a
readme update 2025-04-21 15:13:25 +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
ihrpr
39f7fdf050
fix stateless example 2025-04-21 14:41:12 +01:00
ihrpr
70608b5876
Add more test clients 2025-04-21 11:54:10 +01:00
Marcelo Paternostro
94759c3b76
use more strongly typed examples 2025-04-19 15:28:00 -04: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
f5b4254add
event notifier 2025-04-18 10:05:10 -04:00
Marcelo Paternostro
b5e6d7bc32
add server.getVersion() 2025-04-18 10:05:09 -04:00
ihrpr
1414d6a52c
improve test 2025-04-18 11:57:59 +01:00
ihrpr
ea04be4cf8
fix build 2025-04-18 11:52:51 +01: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
29ae6b8e49
appying suggested changes 2025-04-17 17:43:14 +01:00
ihrpr
9e6041135b
Merge branch 'main' into ihrpr/backwards_compatibility 2025-04-17 17:37:33 +01: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
8806c0ecb4
examples readme improvements 2025-04-16 17:49:22 +01:00
ihrpr
16df308d4f
remove logs how to ititialize with curl - not needed anymore as we have client 2025-04-16 14:51:09 +01:00
ihrpr
c3f08567a2
share implementation of in memory store between examples and integration tests 2025-04-16 14:48:47 +01:00
ihrpr
7341c9a288
fix lint 2025-04-16 14:44:45 +01:00
ihrpr
80b0bab08b
backwards compatible client 2025-04-16 14:20:55 +01:00
ihrpr
8328cfe327
example of sse server 2025-04-16 13:36:37 +01:00
ihrpr
4d2968cec3
backward compatible server example 2025-04-16 13:30:00 +01:00
ihrpr
c053c2e97d
handle session termination 2025-04-16 11:56:28 +01:00
ihrpr
a5144dc022
use utility to check for message types 2025-04-16 11:34:21 +01:00
ihrpr
8775c1fefc
add integratoin test 2025-04-16 11:26:39 +01:00