Jerome
3d381df2bc
Added cors settings to simpleStreamableHttp example server
2025-07-07 12:35:52 +01:00
Jerome
bda811a950
feat: Add CORS configuration for browser-based MCP clients
...
- Add cors middleware to example servers with Mcp-Session-Id exposed
- Add CORS documentation section to README
- Configure minimal CORS settings (only expose required headers)
This enables browser-based clients to connect to MCP servers by properly
exposing the Mcp-Session-Id header required for session management.
Reported-by: Jerome
2025-07-04 16:06:20 +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
d868c4a147
build
2025-07-03 16:01:14 +01: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
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
bhosmer-ant
a40b353fb6
Merge branch 'main' into feat/structured-content-with-type-safety
2025-06-30 10:08:09 -04:00
sushichan044
fb303d748f
tidying up
2025-06-28 14:56:02 +09: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
sushichan044
08808a45e0
test: add type assertion to bypass type check
2025-06-20 17:24:17 +09:00
Paul Carleton
87da0e0c3a
adjust default validation for resource parameter in client flow, and server example
2025-06-19 17:52:24 +01:00
Olivier Chafik
2a238905df
simpleStreamableHttp: fix example code ( #660 )
2025-06-19 11:44:43 +01:00
ihrpr
2f9530bdf9
fix typo
2025-06-18 20:33:35 +01:00
ihrpr
e7a5e331f1
rename decline to reject
2025-06-18 20:11:18 +01:00
Inna Harper
90569d885f
Merge pull request #638 from modelcontextprotocol/ochafik/auth-resource
...
RFC 8707 Resource Indicators Implementation
2025-06-18 17:34:37 +01:00
Olivier Chafik
68424ef7e6
simplify changes
2025-06-18 11:59:19 +01:00
Olivier Chafik
e5b2a5b880
fix simpleStreamableHttp.ts
2025-06-18 11:50:29 +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
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
Jerome
8b9aa20b39
Jerome/fix/dev oauth server required scopes change ( #629 )
...
* updating lock to latest version
* Added .git-blame-ignore-revs (fixes gitlens)
* Not requiring mcp:tools
2025-06-17 10:18:58 +01:00
Olivier Chafik
6e4fc52c7e
Update demoInMemoryOAuthProvider.test.ts
2025-06-17 00:42:44 +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
cliffhall
5a8af45c09
In src/examples/server/simpleStreamableHttp.ts
...
- In mcpPostHandler,
- Get `mcp-session-id` header early so that it can be reported in every incoming request.
- Helpful for troubleshooting Inspector's ability to retain the session id for the Proxy <-> Server leg
2025-06-16 16:34:46 -04: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
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
54c30109fb
Merge branch 'main' into ihrpr/elicitation
2025-06-16 19:11:57 +01:00
ihrpr
cacc3bc09e
Merge branch 'main' into ihrpr/resource-link
2025-06-16 11:56:19 +01:00
ihrpr
90e45950b3
show name and title in example
2025-06-16 11:36:08 +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
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
eed97c9d17
Merge branch 'main' into ihrpr/elicitation
2025-06-10 14:43:35 +01:00
ihrpr
c69168cf93
Merge pull request #534 from modelcontextprotocol/ihrpr/fix-example-shttp
...
Fix StreamableHttp example for tool calls - have a separate option for testing notifications resumption
2025-05-22 16:43:03 +01:00
ihrpr
3d76bbe6c6
Merge pull request #526 from modelcontextprotocol/ihrpr/auth-example-client3
...
Example Auth client
2025-05-22 11:14:51 +01:00
ihrpr
cbe9279206
add new tool for testing resumability - leave the rest normal
2025-05-22 10:38:43 +01:00