Commit graph typescript-sdk/src/examples
Author SHA1 Message Date
Matt
7fca1f2b15
feat: url based client metadata registration (SEP 991) (#1127) 2025-11-19 16:44:53 +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
Konstantin Konstantinov
f59996ae66
SEP-1319: Decouple Request Payloads, Remove passthrough iteration, Typecheck fixes (#1086) 2025-11-07 16:50:20 +00:00
Matt
11f04e1b0b
Check script which typechecks using Typescripts new Go port (#1075) 2025-11-06 18:23:37 +00:00
Chip
874aa27a89
fix: Prefer the token_endpoint_auth_method response from DCR registration (#1022) 2025-10-28 11:24:46 +00:00
Matt
5a8fb39430
feat: pluggable JSON schema validator providers (#1012) 2025-10-25 11:56:42 -04:00
Inna Harper
1150b1d843
run prettier (#995) 2025-10-02 18:21:00 +01:00
adam jones
7d29cee2ba
fix: change Icon.sizes from string to string[] (#981) 2025-09-29 19:40:12 +01:00
Tyler James Leonhardt
9841a6cf29
Use redirect Uri passed in in demoInMemoryOAuthProvider (#931) 2025-09-22 15:29:39 +01:00
Jesse Lumarie
217756edf7
mcp: update SDK for SEP 973 + add to example server (#904)
Co-authored-by: David Soria Parra <167242713+dsp-ant@users.noreply.github.com>
2025-09-09 12:21:03 +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
Dale Seo
4d0977bc91
Fix quit command in Example client with OAuth (#864) 2025-08-11 19:23:07 +01:00
Olivier Chafik
4056c098a1
Add missing app.listen error handling to server examples 2025-07-09 11:23:24 +01:00
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