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
Justin Spahr-Summers
438505b74c
Merge pull request #117 from modelcontextprotocol/justin/simplified-api
...
1.3.0
Simplified, Express-like API
2025-01-20 15:32:26 +00:00
Justin Spahr-Summers
e8a5ffc64f
npm audit fix
2025-01-20 15:28:01 +00:00
Justin Spahr-Summers
d47a76f608
Pre-emptively bump package version
2025-01-20 15:27:58 +00:00
Justin Spahr-Summers
ae5e297b48
Merge branch 'main' into justin/simplified-api
2025-01-20 15:27:21 +00:00
Justin Spahr-Summers
405ee78d06
Bump version
1.2.0
2025-01-20 15:25:59 +00:00
Justin Spahr-Summers
5a6823a0db
Stick with %20, don't replace with +
2025-01-16 11:24:39 +00:00
Justin Spahr-Summers
0790890bf3
Model README on the Python SDK's README
2025-01-13 21:08:47 +00:00
Justin Spahr-Summers
e60fb5e2b8
Update README.md
2025-01-13 20:41:01 +00:00
Justin Spahr-Summers
2e35b15353
Merge branch 'main' into justin/simplified-api
2025-01-13 20:34:08 +00:00
Justin Spahr-Summers
f8e5faffaf
Merge pull request #120 from kalvinnchau/instruction-support
...
feat: add optional instructions field to server _oninitialize
2025-01-13 18:04:00 +00:00
Kalvin Chau
1bb51d0fca
style: remove private getter for getInstructions
2025-01-13 09:50:02 -08:00
Kalvin Chau
54472d2ae1
feat: add optional instructions field to server _oninitialize
2025-01-13 09:09:05 -08:00
Justin Spahr-Summers
29d08ff801
Merge pull request #110 from ycjcl868/fix/module-format
...
fix: add cjs format support
2025-01-10 10:19:31 +00:00
Justin Spahr-Summers
00c7ab0f9d
Bump version
1.1.1
2025-01-10 10:17:07 +00:00
Charles
b2b1920c8b
Merge branch 'main' into fix/module-format
2025-01-09 18:26:07 +08:00
Justin Spahr-Summers
7629c70ef9
Remove unused import
2025-01-08 22:02:00 +00:00
Justin Spahr-Summers
2289dbc0d0
Factor out convenience APIs into another class
2025-01-08 21:59:38 +00:00
Jerome
e72ff8d97f
Merge pull request #115 from modelcontextprotocol/jerome/fix/clean-stdio-shutdown
...
Added clean shutdown + tests
2025-01-08 18:07:28 +00:00
Justin Spahr-Summers
189cc84113
Autocomplete on resource template variables
2025-01-08 15:46:43 +00:00
Justin Spahr-Summers
8635c6384f
Autocomplete on prompt arguments
2025-01-08 15:19:16 +00:00
Justin Spahr-Summers
02fa78728c
Add completable wrapper for Zod schemas
2025-01-08 15:00:33 +00:00
Justin Spahr-Summers
9b95fa8203
Server.prompt() convenience API
2025-01-08 14:20:44 +00:00
Justin Spahr-Summers
5ddfa0a0d9
Add extra to resource request handlers
2025-01-08 14:20:43 +00:00
Justin Spahr-Summers
f090c93127
Move Server helper definitions to bottom of file
2025-01-08 13:47:38 +00:00