Nate Barbettini
9df0972774
chore: Add deprecated marker to old elicitInput overload ( #1142 )
2025-11-20 18:26:22 +00:00
Konstantin Konstantinov
43189335a3
Follow up: unify v3 and v4 zod types via describe matrix and a test helper ( #1141 )
2025-11-20 10:10:15 +00:00
Devin Clark
418b7f9b85
feat: zod v4 with backwards compatibility for v3.25+ ( #1040 )
2025-11-19 20:24:53 +00:00
Paul Carleton
2e67eb552e
[auth] Adjust scope management to line up with SEP-835 ( #1133 )
...
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
2025-11-18 17:30:50 +00:00
Michael
7e44b10401
add none to test and the router. ( #1116 )
2025-11-18 15:34:31 +00:00
Nate Barbettini
4debc740a5
SEP-1036: URL Elicitation ( #1105 )
2025-11-18 10:53:15 +00:00
Matt
98df118a4c
Migrate to vitest from jest ( #1074 )
...
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
2025-11-14 14:08:00 +00:00
Kent C. Dodds
29cb08071a
Implementation of SEP-986: Specify Format for Tool Names ( #900 )
...
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
2025-11-11 18:45:31 +00:00
Konstantin Konstantinov
9f06b6b499
SEP-1330: Compatibility with SEP-1034 ( #1100 )
...
Co-authored-by: cliffhall <cliff@futurescale.com>
2025-11-11 17:03:28 +00:00
Konstantin Konstantinov
ce420f8f94
DRAFT: SEP-1034: Default values for Elicitation Schemas ( #1096 )
2025-11-11 14:11:42 +00:00
Konstantin Konstantinov
f59996ae66
SEP-1319: Decouple Request Payloads, Remove passthrough iteration, Typecheck fixes ( #1086 )
2025-11-07 16:50:20 +00:00
Kenneth Sinder
806d7cf9c0
registerTool: accept ZodType<object> for input and output schema (#816 )
2025-11-07 16:22:58 +00:00
Matt
11f04e1b0b
Check script which typechecks using Typescripts new Go port ( #1075 )
2025-11-06 18:23:37 +00:00
Chip
ee9fed28cc
fix: Support WWW-Authenticate scope param for SEP-835 ( #983 )
...
Co-authored-by: OtotheA <oscar@otothea.com>
2025-11-03 15:24:42 +00:00
adam jones
216604720b
Add @deprecated annotations to legacy APIs ( #1018 )
...
Co-authored-by: Claude <noreply@anthropic.com>
2025-11-03 15:21:18 +00:00
Konstantin Konstantinov
7387c44bf5
Fix: Non-existent tool, disabled tool and inputSchema validation return MCP protocol level instead of CallToolResult with isError: true ( #1044 )
2025-10-28 15:00:04 +00:00
Paul Carleton
e74a358728
Update metadata.ts ( #1010 )
...
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
2025-10-27 17:40:23 +00:00
Matt
5a8fb39430
feat: pluggable JSON schema validator providers ( #1012 )
2025-10-25 11:56:42 -04:00
Pierre-Élie Fauché
c543095985
fix: Zod to JSONSchema pipe strategies ( #962 )
2025-10-18 08:12:42 +01:00
Inna Harper
1150b1d843
run prettier ( #995 )
2025-10-02 18:21:00 +01:00
Blust.AI
1d475bb3f7
fix(auth-router): correct Protected Resource Metadata for pathful RS and add explicit resourceServerUrl (RFC 9728) ( #858 )
...
Co-authored-by: Eugene <eugene@blust.ai>
2025-09-22 15:32:29 +01:00
Jakub Kopecký
24b3972931
fix: prevent streamable http wite after end from crashing the node process ( #933 )
2025-09-17 10:51:37 +01:00
Cliff Hall
ebf39330f3
Fix automatic log level handling for sessionless connections ( #917 )
2025-09-09 21:35:08 +01:00
Khanh Nguyen
5dd7a2b700
feat: add _meta field support to tool definitions ( #922 )
...
Co-authored-by: David Soria Parra <167242713+dsp-ant@users.noreply.github.com>
2025-09-09 14:39:52 +01:00
Cliff Hall
79d11dc53f
Automatic handling of logging level ( #882 )
...
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
2025-08-27 15:09:07 -04:00
Christian Daguerre
2db0dbebe7
fix client id issuance date should only be sent when generated ( #775 )
2025-07-17 18:51:51 +01:00
Luca Chang
9d2a0aeb7b
fix: consistently use consumer-provided fetch function ( #767 )
2025-07-17 17:57:54 +01:00
Glen Maddern
4b2ad0385d
Adding invalidateCredentials() to OAuthClientProvider ( #570 )
...
Co-authored-by: Paul Carleton <paulc@anthropic.com>
2025-07-14 17:11:52 +01:00
Christian Daguerre
cc9ea7fd21
make client side client_id generation configurable in the oauth router ( #734 )
2025-07-14 17:07:50 +01:00
Daniel Kelleher
5b99c24bda
Add OIDC ID token support ( #680 )
2025-07-14 12:22:04 +00:00
Jerome
11e84f0471
Merge pull request #751 from modelcontextprotocol/jerome/fix/allow-async-onsession-callbacks
...
feat: support async callbacks for onsessioninitialized and onsessionclosed
2025-07-09 21:04:15 +01:00
Christian Bromann
8714f21541
fix(server): validate expiresAt token value for non existence ( #446 )
...
* fix(server): validate expiresAt token value for non existence
---------
Co-authored-by: Olivier Chafik <ochafik@anthropic.com>
2025-07-09 15:43:33 +01:00
Jerome
0ddf6827b6
feat: support async callbacks for onsessioninitialized and onsessionclosed
...
Updated StreamableHTTPServerTransport to support both sync and async callbacks:
- Changed callback types to return void | Promise<void>
- Used await Promise.resolve() to handle both sync and async callbacks
- Added comprehensive tests for async callback functionality
- Errors in callbacks now properly propagate to HTTP responses
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-09 14:48:40 +01:00
Jerome
61052b1fa8
Add comprehensive tests for onsessionclosed callback in StreamableHTTPServerTransport
...
• Tests callback is called when session is closed via DELETE
• Tests system works correctly when callback is not provided
• Tests callback is not called for invalid session DELETE requests
• Tests correct session ID is passed when multiple sessions exist
• Follows existing test patterns and includes proper cleanup
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 15:19:40 +01:00
Jerome
52e22ad7cb
Refactor ondelete hook to onsessionclosed in StreamableHTTPServerTransport
...
- Renamed ondelete callback to onsessionclosed for better clarity
- Moved callback from public property to private field following options pattern
- Added comprehensive JSDoc documentation explaining the callback's purpose
- Updated DELETE request handler to use the new callback structure
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 14:57:41 +01:00
Jerome
afb8971569
Add ondelete hook to StreamableHTTPServerTransport
...
Adds optional ondelete callback that fires when DELETE request is received, providing the sessionId for cleanup handling.
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 14:44:35 +01:00
bhosmer-ant
9879d7a98e
Merge pull request #725 from sushichan044/revert-670-feat/structured-content-with-type-safety
...
Revert "fix: add type safety for tool output schemas in ToolCallback"
2025-07-03 17:03:31 -04:00
ihrpr
25048b9eaf
rename reject to decline
2025-07-03 15:51:16 +01:00
Kentaro Suzuki
a45e4febd9
Revert "fix: add type safety for tool output schemas in ToolCallback"
2025-07-03 22:13:24 +09:00
bhosmer-ant
a40b353fb6
Merge branch 'main' into feat/structured-content-with-type-safety
2025-06-30 10:08:09 -04: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
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
ihrpr
53ad0a01d5
fix lint
2025-06-27 14:14:21 +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
Christian Bromann
f76652bb10
Update src/server/sse.test.ts
2025-06-26 10:22:27 -07:00
Christian Bromann
08c767f8e1
Merge branch 'main' into cb/sse-tests
2025-06-26 09:50:41 -07:00
Konstantin Konstantinov
606c278668
clean up tests - remove mockRequestInfo
2025-06-25 16:24:30 +03:00
Konstantin Konstantinov
166da76b00
extra parameter - remain optional for backwards compatibility
2025-06-24 19:39:37 +03:00
Konstantin Konstantinov
33895f4520
Merge branch 'main' into request-propagation-in-tools
2025-06-24 19:32:49 +03:00