Commit graph

884 commits

Author SHA1 Message Date
Olivier Chafik
bac384f242
simplify tests 2025-06-18 12:23:48 +01:00
Olivier Chafik
354318f147
auth: don't fail the prm if the resource doesn't match 2025-06-18 12:14:57 +01:00
Olivier Chafik
5c60c77c93
shrink diff 2025-06-18 12:09:00 +01:00
Olivier Chafik
6a01d0d4a5
shrink token.test.ts 2025-06-18 12:07:38 +01:00
Olivier Chafik
9e2a565164
minimize changes 2025-06-18 12:01:51 +01:00
Olivier Chafik
68424ef7e6
simplify changes 2025-06-18 11:59:19 +01:00
Olivier Chafik
4fcbb6870b
verify PRM resource 2025-06-18 11:50:39 +01:00
Olivier Chafik
e5b2a5b880
fix simpleStreamableHttp.ts 2025-06-18 11:50:29 +01:00
Olivier Chafik
8475e43f15
drop redundant resource canonicalization tests 2025-06-18 11:48:20 +01:00
Olivier Chafik
b77361bd14
Update streamableHttp.ts 2025-06-18 11:41:35 +01:00
Olivier Chafik
049170db7c
minimize diff 2025-06-18 11:41:09 +01:00
Olivier Chafik
aebb2ab197
Update simpleStreamableHttp.ts 2025-06-18 11:39:29 +01:00
Olivier Chafik
d58c2eb114
Update simpleStreamableHttp.ts 2025-06-18 11:26:28 +01:00
Olivier Chafik
4a88cac4c6
Update simpleStreamableHttp.ts 2025-06-18 11:23:57 +01:00
Olivier Chafik
bf72f87788
cleanups 2025-06-18 11:23:09 +01:00
Olivier Chafik
c2150f0cb0
Update README.md 2025-06-17 19:18:27 +01:00
Olivier Chafik
617faccf8e
Add test for default protocol version negotiation in bearerAuth middleware
- Tests that when mcp-protocol-version header is missing, the middleware
  uses DEFAULT_NEGOTIATED_PROTOCOL_VERSION when calling verifyAccessToken
- Ensures proper fallback behavior for protocol version negotiation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-17 17:08:21 +01:00
Olivier Chafik
40f61d88a0
show how to enable strict resource checking in mcp server 2025-06-17 17:05:34 +01:00
Olivier Chafik
515abb492f
fix lints 2025-06-17 11:53:26 +01:00
Olivier Chafik
badb5dc990
fix tests 2025-06-17 11:23:41 +01:00
Olivier Chafik
b16a415623
cleanups 2025-06-17 11:15:38 +01:00
Olivier Chafik
ec0c50425e
rm noise 2025-06-17 10:59:36 +01:00
Olivier Chafik
6e4fc52c7e
Update demoInMemoryOAuthProvider.test.ts 2025-06-17 00:42:44 +01:00
Olivier Chafik
551a43942e
use URL for resource throughout 2025-06-17 00:33:27 +01:00
Olivier Chafik
224a2e242d
update resource to be a url 2025-06-17 00:18:33 +01:00
Olivier Chafik
36f338ae23
Update demoInMemoryOAuthProvider.ts 2025-06-16 23:39:51 +01:00
Olivier Chafik
02ce81b90c
simplify diff 2025-06-16 23:10:27 +01:00
Olivier Chafik
6656d23d84
Simplify demo in-memory oauth provider
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 22:56:55 +01:00
Olivier Chafik
e542ec1989
docs: update PR description to clarify server-side validation is in demo provider
- Clarify that core server handlers only pass through resource parameter
- Emphasize that server URL validation is demonstrated in the demo provider
- Update issue references to show #592 is fixed, #635 is related
- Update examples to show DemoOAuthProviderConfig usage

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 21:38:00 +01:00
Olivier Chafik
ccccb4b7cc
simplify PR / only keep verification in demo inmemory oauth provider
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 21:34:06 +01:00
Olivier Chafik
cba6a6ea58
Update authorize.config.test.ts
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 20:41:56 +01:00
Olivier Chafik
1f4e42c09e
cleanup auth-utils and remove example files
Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-16 20:05:02 +01:00
Olivier Chafik
7b5bfcee52
implementation of RFC 8707 Resource Indicators (Fixes #592, Fixes #635) 2025-06-16 19:29:04 +01:00
ihrpr
f822c1255e
Merge pull request #632 from modelcontextprotocol/ihrpr/resource-link
Add support for resource link
2025-06-16 12:12:20 +01:00
ihrpr
1e5f0e16ba
whitespaces 2025-06-16 12:08:59 +01:00
ihrpr
97519d3e32
add description to resourse link 2025-06-16 12:08:21 +01:00
ihrpr
cacc3bc09e
Merge branch 'main' into ihrpr/resource-link 2025-06-16 11:56:19 +01:00
ihrpr
ddc1a0c292
Merge pull request #631 from modelcontextprotocol/ihrpr/title
Add title to tools, resources, prompts
2025-06-16 11:55:35 +01:00
ihrpr
f1a07a940a
ci fix 2025-06-16 11:45:35 +01:00
ihrpr
90e45950b3
show name and title in example 2025-06-16 11:36:08 +01:00
ihrpr
e78c1b787d
fix 2025-06-16 11:27:34 +01:00
ihrpr
3f939be6c7
readme fixes and template tests for title 2025-06-16 11:21:07 +01:00
ihrpr
8719f93357
clean up mcp.ts 2025-06-16 11:00:20 +01:00
ihrpr
bce2dbfb83
small fixes like argsSchema 2025-06-16 10:55:02 +01:00
ihrpr
d1c94a2c69
refactor 2025-06-16 10:43:31 +01:00
ihrpr
e8088276b1
Merge branch 'main' into ihrpr/title 2025-06-16 09:15:50 +01:00
ihrpr
86dbcfeccd
Merge pull request #630 from modelcontextprotocol/ihrpr/additinal-meta
Adds _meta to additional interface types
2025-06-16 09:13:06 +01:00
ihrpr
7e59081b43
add resource link 2025-06-15 22:19:53 +01:00
ihrpr
4d03b243e3
add title 2025-06-15 20:42:25 +01:00
ihrpr
e7284d29c8
added _meta to more objects 2025-06-15 18:47:44 +01:00