Commit graph typescript-sdk/src/server
Author SHA1 Message Date
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
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
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
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
111586c523
support sse though get 2025-04-10 14:23:34 +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
632b836c51
remove order assumption for batch responses in test 2025-04-10 09:43:42 +01: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
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
311c7af1c8
Merge branch 'ihrpr/streamable-http-client' into ihrpr/fix-streamable-connection-close 2025-04-09 10:17:46 +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
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
cc7f8e4e1b
fix tests after init fix 2025-04-08 16:05:28 +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
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
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
Justin Spahr-Summers
0c437a81be
Merge pull request #231 from Exlau/exlau/sse-cache-control-header-fix
fix: 🐛 can't establish sse when server side enable compress
2025-04-07 11:18:32 +01:00
Justin Spahr-Summers
44839ee01d
Merge pull request #272 from modelcontextprotocol/revert-249-main
Revert "feat: support extending McpServer with authorization"
2025-04-07 11:17:03 +01:00
Justin Spahr-Summers
9980cbf438
Merge pull request #194 from davolokh/console-error-in-test-removed
console.error pollution logs removed in tests
2025-04-07 11:07:02 +01:00
Justin Spahr-Summers
8027ae1593
Revert "feat: support extending McpServer with authorization" 2025-04-07 10:47:37 +01:00
ihrpr
873f51f4ac
Merge branch 'main' into ihrpr/http-streamable-server 2025-04-06 17:39:40 +01:00
ihrpr
00135707f6
rename files to use conventioanal typescript names 2025-04-06 17:28:46 +01:00
ihrpr
e3bb99cd5c
remove the use of enableSessionManagement 2025-04-06 17:27:00 +01:00
ihrpr
b0697195a7
add test to cover nested logging withing a tool call 2025-04-06 16:09:15 +01:00
ihrpr
bafd9e74f3
Add ways to associate related requests and notifications 2025-04-05 19:52:29 +01:00
Geng Yan
e9caa5a12f
✨ feat: add customHeaders options 2025-04-05 18:59:26 +01:00
Geng Yan
e3a61095ae
✨ feat: add pre-rarsed body support 2025-04-05 18:59:26 +01:00
Geng Yan
4c7c434e7c
✨ feat: try add stateless mod 2025-04-05 18:59:26 +01:00