Commit graph

1,044 commits

Author SHA1 Message Date
Inna Harper
1b14bd7fa4
Merge pull request #719 from modelcontextprotocol/ihrpr/1.13.3 1.13.3
Bump version to 1.13.3
2025-07-01 16:46:01 +01:00
ihrpr
cfec7d9b39
1.13.3 2025-07-01 16:43:50 +01:00
Glen Maddern
6f5e53b44b
Returning undefined from discoverOAuthMetadata for CORS errors (#717)
* Returning undefined from `discoverOAuthMetadata` for CORS errors

This behaviour was already happening for the root URL, but the new `fetchWithCorsRetry` logic differed.

The issue was if the server returns a 404 for `/.well-known/oauth-authorization-server/xyz` that didn't have the `access-control-allow-origin`, a TypeError was being thrown. There was logic there already to handle a TypeError for a _preflight_ request (cause by custom headers), but not the fallback. I refactored so all combinations return `undefined`.

* Add test for CORS error handling that should return undefined

This test covers the scenario where both the initial request with headers
and the retry without headers fail with CORS TypeErrors. The desired
behavior is to return undefined instead of throwing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix test comment

---------

Co-authored-by: Glen Maddern <glen@glenmaddern.com>
Co-authored-by: Paul Carleton <paulc@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Paul Carleton <paulcarletonjr@gmail.com>
2025-07-01 16:24:27 +01:00
Inna Harper
fb4d07f0ee
Merge pull request #698 from RishiNandha/main
Added Sampling Example to README
2025-06-30 16:31:42 +01:00
ihrpr
a8fa0b342a
build 2025-06-30 16:25:26 +01:00
ihrpr
3d6acd3d9a
add an example and update readme 2025-06-30 16:23:19 +01:00
Inna Harper
5e20ee1fc5
Merge pull request #371 from formulahendry/junhan/http-doc
docs: add error handling when it fails to start HTTP server
2025-06-30 15:28:21 +01:00
ihrpr
a02704cd32
Merge branch 'main' into junhan/http-doc 2025-06-30 15:25:06 +01:00
Inna Harper
0a1cfd949f
Merge pull request #463 from marcopeg/main
doc minimum node version requirment
2025-06-30 15:15:35 +01:00
Inna Harper
27a412cc65
Merge branch 'main' into main 2025-06-30 15:13:54 +01:00
bhosmer-ant
95339723f0
Merge pull request #670 from sushichan044/feat/structured-content-with-type-safety
fix: add type safety for tool output schemas in ToolCallback
2025-06-30 10:10:38 -04:00
bhosmer-ant
a40b353fb6
Merge branch 'main' into feat/structured-content-with-type-safety 2025-06-30 10:08:09 -04:00
Inna Harper
a1a486de1c
Merge pull request #455 from XiaofuHuang/xiaofhua/pid-StdioClientTransport
fix: Expose the MCP child process PID as an accessible property in StdioClientTransport
2025-06-30 14:46:21 +01:00
ihrpr
0db4407d43
Merge branch 'main' into xiaofhua/pid-StdioClientTransport 2025-06-30 14:44:36 +01:00
Inna Harper
7682c4cf4f
Merge pull request #598 from sinedied/fix-empty-schema
fix: missing "properties" property in empty schema
2025-06-30 13:20:42 +01:00
sushichan044
fb303d748f
tidying up 2025-06-28 14:56:02 +09:00
Inna Harper
64a60c4ecd
Merge pull request #571 from garciasdos/main
fix: extra headers when they are a Headers object
2025-06-27 17:29:06 +01:00
Inna Harper
99c75281bd
Merge pull request #661 from kentcdodds/resource-types
add overloads for registerResource method in McpServer class
2025-06-27 17:05:01 +01:00
Felix Weinberger
191c2cbb0e
Merge pull request #386 from muzea/hotfix/windows-default-env
fix: add windows env PROGRAMFILES, avoid some exe can not be found
2025-06-27 15:54:19 +01:00
Felix Weinberger
d54ebee8fe
Merge branch 'main' into hotfix/windows-default-env 2025-06-27 15:50:27 +01:00
Inna Harper
773b842127
Merge pull request #424 from domnit/eventsource-parser-dep
fix: add missing eventsource-parser dependency
2025-06-27 15:28:28 +01:00
ihrpr
c17d851bb8
Merge branch 'main' into eventsource-parser-dep 2025-06-27 15:26:57 +01:00
Inna Harper
0c9b9fbec3
Merge pull request #704 from modelcontextprotocol/ihrpr/fix-lint
fix lint
2025-06-27 14:17:15 +01:00
ihrpr
53ad0a01d5
fix lint 2025-06-27 14:14:21 +01:00
Inna Harper
26a98de872
Merge pull request #565 from ddworken/main
Implement DNS Rebinding Protections per spec
2025-06-27 14:13:11 +01:00
David Dworken
8bc7374f5e
Fix merge conflict 2025-06-26 16:12:26 -07:00
David Dworken
185fb23f34
Merge branch 'main' into main 2025-06-26 16:10:00 -07:00
Inna Harper
1e52f38f36
Merge pull request #701 from modelcontextprotocol/ihrpr/1.13.2 1.13.2
Update version of the package to 1.13.2
2025-06-26 18:54:47 +01:00
ihrpr
9d678ce591
1.13.2 2025-06-26 18:52:24 +01:00
Inna Harper
be845dd4ea
Merge pull request #391 from christian-bromann/cb/sse-tests
test(server): add more tests for `SSEServerTransport` class
2025-06-26 18:28:53 +01:00
Christian Bromann
f76652bb10
Update src/server/sse.test.ts 2025-06-26 10:22:27 -07:00
Christian Bromann
362acfc1ce
Update package-lock.json 2025-06-26 09:51:26 -07:00
Christian Bromann
08c767f8e1
Merge branch 'main' into cb/sse-tests 2025-06-26 09:50:41 -07:00
Inna Harper
6e0b699718
Merge pull request #428 from modelcontextprotocol/dependabot/npm_and_yarn/npm_and_yarn-12fbce29b8
Bump formidable from 3.5.2 to 3.5.4 in the npm_and_yarn group across 1 directory
2025-06-26 16:06:25 +01:00
Inna Harper
a783c5a5ef
Merge pull request #542 from dhodun/dhodun/add-streamable-http-comments
docs: Add clarifying comments for stateless streamable HTTP endpoints
2025-06-26 14:07:20 +01:00
Inna Harper
71d309d0d8
Merge pull request #477 from nichtsam/pr/protocol-overwriting-transport-hooks
Pr/protocol overwriting transport hooks
2025-06-26 14:04:16 +01:00
Inna Harper
909fe5df07
Merge pull request #633 from Achintha444/main
Update readme file to include a tip to allow `mcp-session-id` in CORS when using StreamableHTTP
2025-06-25 18:20:46 +01:00
Achintha Isuru
5f96ae4d89 update PR#633 to address the comment about improving the example 2025-06-25 11:34:44 -04:00
Achintha Isuru
4954cd7294
Merge branch 'main' into main 2025-06-25 11:20:55 -04:00
Rishi Nandha Vanchi
ca9924b20b
Changed example 2025-06-25 20:10:57 +05:30
Rishi Nandha Vanchi
b232faf798
Fixed Tabs 2025-06-25 20:09:54 +05:30
Rishi Nandha Vanchi
7a64f97493
Add: Sampling Example to README 2025-06-25 20:08:15 +05:30
Inna Harper
462110508c
Merge pull request #627 from KKonstantinov/request-propagation-in-tools
Raw request propagation in tools - passed to callbacks via RequestHandlerExtra<ServerRequest, ServerNotification>
2025-06-25 15:18:41 +01:00
Achintha Isuru
fc85113980
Merge branch 'main' into main 2025-06-25 10:02:15 -04:00
Konstantin Konstantinov
a94a63a2d0
Merge branch 'main' into request-propagation-in-tools 2025-06-25 16:25:24 +03:00
Konstantin Konstantinov
924c1ce56b
Merge branch 'request-propagation-in-tools' of github.com:KKonstantinov/typescript-sdk into request-propagation-in-tools 2025-06-25 16:25:09 +03:00
Konstantin Konstantinov
606c278668
clean up tests - remove mockRequestInfo 2025-06-25 16:24:30 +03:00
Inna Harper
f733207dae
Merge pull request #640 from cliffhall/report-session-id-per-request
Show session id per request in simpleStreamableHttp example server
2025-06-25 14:18:49 +01:00
Konstantin Konstantinov
384095c30b
Merge branch 'main' into request-propagation-in-tools 2025-06-25 14:16:18 +03:00
Chris Dickinson
05d98bb3a4
feat(shared/auth): support software_statement in OAuthClientMetadata (#696)
Per [Section 3.1.1][ref], `software_statement` is an OPTIONAL member
of the client creation request, which may contain a JWT encoding claims
about client software.

[ref]: https://datatracker.ietf.org/doc/html/rfc7591#section-3.1.1
2025-06-25 11:20:26 +01:00