Commit graph typescript-sdk/src/client
Author SHA1 Message Date
ihrpr
15c10a5883
fix lint 2025-04-08 22:30:15 +01:00
ihrpr
d4ad976401
use EventSourceParserStream 2025-04-08 21:39:49 +01:00
ihrpr
f1827ced10
handle not implemented get 2025-04-08 15:04:07 +01:00
ihrpr
c3b446d424
multiple streams and initial stream with get 2025-04-08 11:11:09 +01:00
ihrpr
640ae5a863
initial client implementation 2025-04-08 09:43:22 +01:00
ihrpr
251bb9d97d
Merge branch 'main' into ihrpr/http-streamable-server 2025-04-07 14:29:09 +01:00
Justin Spahr-Summers
58adcd4d60
Merge pull request #224 from nanbingxyz/main
✨ (client/index.ts): add optional RequestOptions parameter to connect…
2025-04-07 11:31:28 +01:00
Justin Spahr-Summers
a76b2639d7
Merge pull request #268 from morinokami/patch-2
fix: Ensure the correct capability is checked for `completion/complete`
2025-04-07 11:29:04 +01:00
Justin Spahr-Summers
0c437a81be
Merge pull request #231 from Exlau/exlau/sse-cache-control-header-fix
fix: 🐛 can't establish sse when server side enable compress
2025-04-07 11:18:32 +01:00
Justin Spahr-Summers
9980cbf438
Merge pull request #194 from davolokh/console-error-in-test-removed
console.error pollution logs removed in tests
2025-04-07 11:07:02 +01:00
ihrpr
268c9f7469
fix test 2025-04-06 18:42:46 +01:00
Shinya Fujino
87dc5eb4a2 fix: Ensure the correct capability is checked for completion/complete 2025-04-06 11:42:18 +09:00
Exlau
e5eecd4308
Merge branch 'main' into exlau/sse-cache-control-header-fix 2025-04-02 11:16:00 +08:00
Ironben
3139be6cb8
Merge branch 'main' into main 2025-03-29 01:03:22 +08: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
ExlauChen
6c15dcb65f fix: 🐛 can't establish sse when server side enable compress 2025-03-28 14:50:59 +08:00
Ironben
b6cfddf04d
Merge branch 'main' into main 2025-03-26 20:41:54 +08:00
Justin Spahr-Summers
c6635d71d6
Fix lints 2025-03-26 10:12:19 +00:00
Ironben
b6749998f5 ✨ (client/index.ts): add optional RequestOptions parameter to connect method to allow additional configuration options 2025-03-26 11:54:48 +08:00
Peter Raboud
2a2392be26
Correctly pass redirect_uri to tokens call 2025-03-25 14:20:34 -07: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
Dmitry Volokh
fee4bbec58 console.error pollution removed in tests 2025-03-14 19:54:03 +01:00
Jerome
c521710b86
Lint 2025-02-25 09:51:17 +00: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
3b12961e2e
Added tests 2025-02-23 14:55:30 +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
a0069e2341
Split full/partial client information 2025-02-17 11:41:42 +00:00
Justin Spahr-Summers
afae4212e6
Move OAuth definitions into shared, add more 2025-02-17 11:07:59 +00:00
Justin Spahr-Summers
41e0d26f23
Merge pull request #144 from modelcontextprotocol/justin/client-auth
Client implementation of MCP auth
2025-02-17 10:46:39 +00:00
Justin Spahr-Summers
b1f4b65709
Improve auth docs and add finishAuth convenience method 2025-02-17 10:45:34 +00:00
Justin Spahr-Summers
44a440854f
Code review comments 2025-02-17 10:34:57 +00:00
Justin Spahr-Summers
c0ebe90154
Test transparent token refresh in SSEClientTransport 2025-02-12 14:17:03 +00:00
Justin Spahr-Summers
79d2db3e71
Missed one await server.close() 2025-02-12 14:01:22 +00:00
Justin Spahr-Summers
36999dcef7
Fix fetch test polluting auth tests 2025-02-12 14:00:21 +00:00
Justin Spahr-Summers
d47d88be9e
Auth tests for SSEClientTransport 2025-02-12 13:47:59 +00:00
Justin Spahr-Summers
3e2dd35dca
Fix tests 2025-02-11 22:02:20 +00:00
Justin Spahr-Summers
92621516f8
Re-auth upon 401 when POSTing 2025-02-11 21:37:49 +00:00
Justin Spahr-Summers
03e583b70f
Add support for AuthProvider in SSEClientTransport 2025-02-11 20:35:36 +00:00
Justin Spahr-Summers
fceebdcf5a
Add MCP-Protocol-Version header 2025-02-11 17:58:58 +00:00
Justin Spahr-Summers
141f3f5532
Don't need full OAuth client metadata in response 2025-02-11 16:54:57 +00:00
Justin Spahr-Summers
9fea0af998
Correctly provide client ID (+ secret) to every auth step 2025-02-11 15:59:16 +00:00
Justin Spahr-Summers
47fd6df229
Higher-level auth flow 2025-02-11 15:13:17 +00:00
Justin Spahr-Summers
fa50204a11
Fix import of auth.js in test 2025-02-11 14:17:10 +00:00
Justin Spahr-Summers
4c87fb50ab
Prefix client metadata + info with OAuth 2025-02-11 14:17:02 +00:00
Justin Spahr-Summers
d17a382a65
Auth tests and fixes 2025-02-11 13:47:58 +00:00
Justin Spahr-Summers
2b9a58182c
Add dynamic client registration 2025-02-11 13:32:10 +00:00
Nate
d28ab78b3f add cwd to StdioServerParameters 2025-02-10 09:15:34 -08:00