Commit graph

435 commits

Author SHA1 Message Date
heyitsaamir
39481027ec Bump up to 5.0.0 2025-04-01 16:59:57 -07:00
Jerome
592c91fc86
Merge pull request #222 from modelcontextprotocol/praboud/redirect-uri-fix
Correctly pass redirect_uri to tokens call
2025-03-28 15:51:02 +00:00
Justin Spahr-Summers
784012946d
Bump version 1.8.0 2025-03-26 10:15:46 +00:00
Justin Spahr-Summers
a7922a8d57
Merge pull request #198 from zhibisora/add-cross-spawn
Add cross spawn and the test for it
2025-03-26 10:14:54 +00:00
Justin Spahr-Summers
c6635d71d6
Fix lints 2025-03-26 10:12:19 +00:00
Peter Raboud
2a2392be26
Correctly pass redirect_uri to tokens call 2025-03-25 14:20:34 -07:00
Justin Spahr-Summers
54aa316d3e
Merge pull request #197 from modelcontextprotocol/sse-server-transport
Improve transport in SSE server example
2025-03-25 11:11:03 +00:00
zhibisora
46ae2a17af Fix test for cross-spawn 2025-03-16 05:15:50 +08:00
zhibisora
d4bf73b06e Replace native spawn with cross-spawn for improved cross-platform compatibility 2025-03-16 05:00:36 +08:00
Samuel Colvin
3c0081f2ec
add improve transport in SSE server example 2025-03-15 13:22:15 +00:00
Justin Spahr-Summers
0fa2397174
Bump version 1.7.0 2025-03-11 10:54:21 +00:00
Justin Spahr-Summers
f4d113172a
Merge pull request #158 from jwvictor/add-sessionid-to-context
Add sessionID to RequestHandlerExtra type for tool invocations so multi-user services can distinguish users
2025-03-11 10:52:49 +00:00
Jerome
66e1508162
Bumping version 1.6.1 2025-02-28 11:55:10 +00:00
Jerome
a22092bea2
Merge branch 'main' into add-sessionid-to-context 2025-02-28 11:50:37 +00:00
Jerome
170e656dcb
Merge pull request #163 from modelcontextprotocol/ashwin/claudemd
Add CLAUDE.md with SDK development guide
2025-02-27 09:47:34 +00:00
Ashwin Bhat
ac72918951
Add CLAUDE.md with SDK development guide
🤖 Generated with [Claude Code](https://docs.anthropic.com/s/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-02-26 16:10:31 -08:00
Jason Victor
c396b4af1d added test for session id using in memory transport 2025-02-25 17:57:45 -05:00
Jason Victor
57f3b07bb9 docstring 2025-02-25 17:48:14 -05:00
Jerome
42b1738d54
Merge pull request #157 from modelcontextprotocol/jerome/fix/no-mcp-header-in-metadata-fetching
* Check token expiry in requireAuth middleware
* Gracefully handle cors issues in metadata fetching (experienced due to MCP-Protocol-Version header)
* Don't set client secret expiry for public clients
2025-02-25 09:54:32 +00:00
Jerome
c521710b86
Lint 2025-02-25 09:51:17 +00:00
Justin Spahr-Summers
5c07636405
Merge pull request #152 from Ozamatash/feature/progress-timeout-reset
Add timeout reset on progress notifications
2025-02-24 20:54:18 +00:00
Jason Victor
0408fdbb62 put missing comment back 2025-02-24 11:06:34 -05:00
Jerome
8dfa64338e
Fixing up tests 2025-02-24 13:48:24 +00:00
Jerome
885590c099
Fixing tests 2025-02-24 13:39:58 +00:00
Jerome
26b47438c6
Tidy up CORS error catching 2025-02-24 10:39:38 +00:00
Jerome
aad2badb2f
Removed nested ternaries 2025-02-24 10:26:59 +00:00
Jerome
d5906b7cf2
Bumping version for auth release 1.6.0 2025-02-24 09:17:26 +00:00
Jason Victor
44c9bffa85 added session id to request handler extra data 2025-02-23 12:39:15 -05:00
Jerome
3b12961e2e
Added tests 2025-02-23 14:55:30 +00:00
Jerome
8a222e8b38
Don't set client secret expiry if public client 2025-02-23 10:59:05 +00:00
Jerome
2dc7fa5df8
Check token expiry in bearer auth 2025-02-23 10:57:26 +00:00
Jerome
1b8e94ca40
During metadata fetching, try with the MCP header, then without, then return undefined if both fail 2025-02-22 16:20:41 +00:00
Justin Spahr-Summers
80e148491c
Merge pull request #151 from modelcontextprotocol/justin/server-auth
Server implementation of MCP auth
2025-02-21 15:47:43 +00:00
Justin Spahr-Summers
f0777d2d1f
Client secrets should not be removed, but expiry checked in middleware 2025-02-21 12:11:51 +00:00
Justin Spahr-Summers
094b81f70d
Throw error if scopes are requested and client has none 2025-02-21 11:55:46 +00:00
Justin Spahr-Summers
fadcee3f14
Remove tests that are just testing a mock 2025-02-21 11:48:46 +00:00
Justin Spahr-Summers
529d017d94
Merge branch 'main' into justin/server-auth 2025-02-21 11:44:57 +00:00
Tuomas
b09240bc10 only return early from progress notification on actual timeout errors 2025-02-20 15:36:57 -06:00
Tuomas
28415d3917 Refactor progress notification timeout handling in protocol 2025-02-19 12:23:16 -06:00
Justin Spahr-Summers
506ae06b03
Merge pull request #150 from disintegrator/zod-to-json-schema-strict-unions
fix: drop unresolved union members in zod schemas
2025-02-19 14:26:13 +00:00
Justin Spahr-Summers
89bb5e8a8e
Merge pull request #154 from modelcontextprotocol/justin/esbuild-update
Update `esbuild` to resolve security advisory
2025-02-19 14:23:21 +00:00
Justin Spahr-Summers
bb5045bf90
Update esbuild to resolve security advisory 2025-02-19 14:21:09 +00:00
Justin Spahr-Summers
b8b816ca9f
Bearer auth middleware 2025-02-18 16:09:51 +00:00
Justin Spahr-Summers
c8f4d621a9
Render /authorize errors as JSON 2025-02-18 15:06:54 +00:00
Justin Spahr-Summers
7fb8e4a099
Catch and format standard error types in responses 2025-02-18 15:01:29 +00:00
Justin Spahr-Summers
57fe3b3fb0
Use standard error types in middleware 2025-02-18 14:18:13 +00:00
Justin Spahr-Summers
1dfb9aa709
Classes for standard OAuth error types 2025-02-18 14:15:47 +00:00
Justin Spahr-Summers
f6e47c4751
Add missing name to McpError 2025-02-18 14:15:22 +00:00
Justin Spahr-Summers
63db32236e
Set Cache-Control: no-store 2025-02-18 14:08:07 +00:00
Justin Spahr-Summers
7b81b4f672
Handle POST bodies in /authorize 2025-02-18 13:55:20 +00:00