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
8bff256cb2
Preemptively bump package version
2025-02-11 16:02:16 +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
Justin Spahr-Summers
62d67ad874
Add refresh token support
2025-02-06 16:37:47 +00:00
Justin Spahr-Summers
fe24aa5c26
Remove nested folder for auth
2025-02-06 16:34:33 +00:00
Justin Spahr-Summers
956f6658e8
Implement token exchange
2025-02-06 14:52:37 +00:00
Justin Spahr-Summers
8a26e2d9e8
Validate auth flow is supported
2025-02-06 14:39:50 +00:00
Justin Spahr-Summers
c39c8bf62b
WIP start authorization flow
2025-02-06 13:44:41 +00:00
Justin Spahr-Summers
0bc3a74ac3
OAuth metadata discovery
2025-02-06 13:38:21 +00:00
Justin Spahr-Summers
0db3da4636
Install pkce-challenge library
2025-02-06 13:33:57 +00:00
Justin Spahr-Summers
13c3eea3b8
Merge pull request #141 from funwarioisii/fix-docs-client-call-tool
...
Update README.md about `client.callTool`
2025-01-27 11:20:24 +00:00
Justin Spahr-Summers
a2b7afdbae
Merge pull request #140 from ihrpr/patch-1
...
Update README.md new SSE Server to match defaults in inspector
2025-01-27 11:19:28 +00:00
funwarioisii
e8bed12b6d
Update README.md about client.callTool
2025-01-27 17:33:13 +09:00
ihrpr
892d8f389d
Update README.md to match defaults in inspector
...
When launching inspector and changing to use SSE, the URL is set to `http://localhost:3001/sse `. It's quite confusing to have an example use different endpoint names and port, hence the change.
2025-01-26 16:54:49 +00:00
Justin Spahr-Summers
87197fb4a7
Bump version
1.4.1
2025-01-24 14:51:53 +00:00
Justin Spahr-Summers
d60b0fb271
Merge pull request #137 from modelcontextprotocol/justin/improve-sse-errors
...
Improve SSE error code reporting
2025-01-24 13:46:35 +00:00
Justin Spahr-Summers
63f8f07a22
Add SseError class for easier introspection
2025-01-24 11:26:12 +00:00
Justin Spahr-Summers
9923aecf29
Report SSE error codes
2025-01-23 17:29:46 +00:00
Justin Spahr-Summers
8533f106bf
Bump version
1.4.0
2025-01-23 13:56:58 +00:00
Justin Spahr-Summers
edfdea539f
Merge pull request #134 from modelcontextprotocol/justin/sse-auth
...
Use `eventsource` package, to permit custom headers for SSE
2025-01-23 13:56:41 +00:00
Justin Spahr-Summers
87bfb61544
Try a different way of waiting for close
2025-01-23 11:53:41 +00:00
Justin Spahr-Summers
99fe1932d7
Merge pull request #133 from kalvinnchau/client-instruction-support
...
feat: add mcp client instruction support
2025-01-23 11:48:25 +00:00
Justin Spahr-Summers
842b9f0d01
Merge pull request #136 from modelcontextprotocol/justin/more-readme-improvements
...
More README improvements
2025-01-23 10:15:33 +00:00
Justin Spahr-Summers
e72314c510
Make clear where server handlers go in "Running Your Server"
2025-01-23 10:14:10 +00:00
Justin Spahr-Summers
6896e57afa
Add transport to quickstart too
2025-01-23 10:13:57 +00:00
Justin Spahr-Summers
866c8fd6c6
Merge pull request #132 from modelcontextprotocol/justin/readme-improvements
...
Add instructions for starting the server transport
2025-01-23 10:08:07 +00:00
Justin Spahr-Summers
742b8b43a0
General tests for SSE client transport
...
Since we're here anyway…
2025-01-22 18:55:47 +00:00
Justin Spahr-Summers
e2723d30b8
Tests for passing custom SSE headers
2025-01-22 18:51:00 +00:00
Justin Spahr-Summers
c828067171
Use eventsource package
2025-01-22 18:49:04 +00:00
Kalvin Chau
5087087190
style: fix linting error on String vs string
2025-01-22 09:25:28 -08:00
Kalvin Chau
443c0829ed
feat: add mcp client instruction support
2025-01-22 09:17:59 -08:00
Justin Spahr-Summers
33654e1113
Add instructions for starting the server transport
2025-01-22 15:24:22 +00:00
Justin Spahr-Summers
cf4c592c8b
Merge pull request #131 from modelcontextprotocol/justin/fix-competing-completions
...
1.3.2
Fix attempted double registration of completion handlers
2025-01-22 11:44:11 +00:00
Justin Spahr-Summers
01574e1f27
Preemptively bump package version
2025-01-22 11:41:38 +00:00
Justin Spahr-Summers
dbf560f24a
Don't double-add completion handler
2025-01-22 11:41:11 +00:00
Justin Spahr-Summers
eba6461567
Failing test case for double completion handlers
2025-01-22 11:41:05 +00:00
Justin Spahr-Summers
1fb33e8117
Merge pull request #126 from modelcontextprotocol/justin/fix-multiple-registrations
...
1.3.1
Fix registering multiple tools/resources/prompts
2025-01-21 12:56:38 +00:00
Justin Spahr-Summers
13ddf5fb69
Merge pull request #125 from modelcontextprotocol/justin/fix-quickstart
...
Fix README examples not using `ResourceTemplate` class
2025-01-21 11:59:50 +00:00
Justin Spahr-Summers
38c361a0c2
Preemptively bump package version
2025-01-21 09:14:44 +00:00
Justin Spahr-Summers
2590d40e74
Fix registering multiple tools/resources/prompts
...
Request handlers were being re-registered every time a new tool/resource/prompt was added, which would fail since the handlers were already registered. Now we track whether handlers have been initialized and only register them once.
Added tests to verify that multiple registrations work correctly.
Resolves #124 .
2025-01-21 09:14:14 +00:00
Justin Spahr-Summers
846a47c7de
Fix README examples not using ResourceTemplate class
...
Resolves #123 .
2025-01-21 08:57:01 +00:00