Commit graph

724 commits

Author SHA1 Message Date
ihrpr
b0255e51ff
Merge pull request #410 from cliffhall/update-protocol-version
Update protocol version
2025-04-29 17:54:30 +01:00
cliffhall
d11673fc2d Add client/server version negotiation tests without mocks
* In src/client/index.test.ts added tests:
  - "should connect new client to old, supported server version"
  - should negotiate version when client is old, and newer server supports its version"
  - "should throw when client is old, and server doesn't support its version"
2025-04-28 18:01:24 -04:00
Cliff Hall
f2f030e479
Merge branch 'main' into update-protocol-version 2025-04-28 17:59:36 -04:00
cliffhall
cada5a4266 Add client/server version negotiation tests without mocks
* In src/client/index.test.ts added tests:
  - "should connect new client to old, supported server version"
  - should negotiate version when client is old, and newer server supports its version"
  - "should throw when client is old, and server doesn't support its version"
2025-04-28 17:58:47 -04:00
ihrpr
7e18c70169
Merge pull request #403 from botengyao/fix-comments-stateless
comment: fix stateless comments that no session-id is included in any responses
2025-04-28 18:39:31 +01:00
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
ihrpr
d13a69b031
Merge pull request #417 from c121914yu/main
Update stateless streamable http usecase
2025-04-28 17:46:14 +01:00
archer
73b476d60d
update usecase 2025-04-28 12:35:11 +08: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
ihrpr
747369476a
Merge pull request #328 from iamarcel/main
Pass request _meta to request handlers extra param
2025-04-25 14:53:03 +01:00
cliffhall
84dc914231 Update protocol version
* tidy types.test.ts
2025-04-25 09:29:29 -04:00
cliffhall
1e9d5d548a Update protocol version
* Added types.test.ts
  - "should have correct latest protocol version"
  - "should have correct supported protocol versions"
2025-04-25 09:28:16 -04:00
cliffhall
3a9a6c944b Update protocol version
* This fixes #378
* In types.ts
  - set LATEST_PROTOCOL_VERSION to "2025-03-26"
  - add "2025-03-26" to SUPPORTED_PROTOCOL_VERSIONS
* In auth.test.ts
  - in test "returns metadata when discovery succeeds"
    - expect "MCP-Protocol-Version" to be "2025-03-26"
2025-04-25 09:16:28 -04: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
Boteng Yao
414cb11898 fix stateless comments 2025-04-25 01:42:36 +00:00
ihrpr
1317767645
Merge pull request #384 from simonedstrom96/patch-1
Update README.md to include working examples
2025-04-23 22:53:06 +01:00
ihrpr
fcf4402226
Merge pull request #388 from modelcontextprotocol/ihrpr/fix-sse-example
fix SSE transport server  examples
2025-04-23 22:49:04 +01: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
bhosmer-ant
c04842ec7e
Merge pull request #309 from modelcontextprotocol/basil/tool_annotations
Add ToolAnnotations support to McpServer.tool() method
2025-04-22 16:39:59 -04: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
simonedstrom96
ad51fd0f5b
Update README.md to include working examples
The current documentation contains code that will cause errors, they should be fixed.
2025-04-22 17:59:10 +02:00
Justin Spahr-Summers
4d6197ac07
Merge pull request #382 from modelcontextprotocol/justin/revert-334 1.10.2
Revert "Capability notification for the MCP Server"
2025-04-22 12:48:53 +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
Justin Spahr-Summers
66884e1c90
Merge pull request #381 from modelcontextprotocol/ihrpr/bump-version
Update package version to 1.10.2
2025-04-22 11:12:14 +01:00
ihrpr
a0276be738
bump version 2025-04-22 11:06:01 +01:00
ihrpr
9d335f042b
Merge pull request #374 from ferrants/patch-1
Fixed Streamable HTTP Example
2025-04-22 10:55:56 +01:00
ihrpr
e427c9548a
Merge branch 'main' into patch-1 2025-04-22 10:51:43 +01:00
ihrpr
73f464f76a
Merge pull request #377 from modelcontextprotocol/ihrpr/example-clients
Streamable Http - fix server initialization validation in Stateless servers
2025-04-22 10:47:17 +01:00
ihrpr
ded0ce3a8d
improve readme 2025-04-22 10:45:17 +01:00
ihrpr
4b8efae013
Merge branch 'main' into ihrpr/example-clients 2025-04-22 10:35:23 +01:00
ihrpr
ac939a598e
Merge pull request #366 from RamAnanth/main
Update README.md to use correct location of InMemoryEventStore
2025-04-21 16:40:10 +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
Matt Ferrante
e2db54592e
Fixed Streamable HTTP Example
I tried copying the Streamable HTTP example and it didn't work until I updated these imports.
2025-04-20 23:41:15 -06:00
Ram Ananth
f9299285d2
Merge branch 'main' into main 2025-04-19 23:31:31 -04:00
Ram Ananth
14b8371ef9
Remove in memory event store from README.md 2025-04-19 23:30:41 -04:00
Cliff Hall
3ef902328a
Merge pull request #334 from m-paternostro/mp/notifier
Capability notification for the MCP Server
2025-04-19 16:51:07 -04:00