Commit graph

292 commits

Author SHA1 Message Date
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
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
Justin Spahr-Summers
8356cb900c
Create ResourceTemplate class and move listCallback into it 2025-01-08 13:44:12 +00:00
Charles
aca6164cde
Merge branch 'main' into fix/module-format 2025-01-08 10:28:40 +08:00
Justin Spahr-Summers
45f99e6590
Make Variables non-optional with resource template URIs 2025-01-07 22:36:20 +00:00
Justin Spahr-Summers
3f9acec31e
Add a test for listCallback 2025-01-07 22:10:05 +00:00
Justin Spahr-Summers
1970509131
Method documentation 2025-01-07 22:05:55 +00:00
Justin Spahr-Summers
098266ae22
Add simplified API for registering resources and resource templates 2025-01-07 22:01:41 +00:00
Justin Spahr-Summers
e4b382044e
Add UriTemplate.toString 2025-01-07 22:01:40 +00:00
Justin Spahr-Summers
1e040e9932
Add method to determine if a URI is a template or not 2025-01-07 22:01:40 +00:00
Justin Spahr-Summers
dc77d9cf47
More thorough handling of edge cases/pathologies 2025-01-07 18:40:53 +00:00
Justin Spahr-Summers
7f0cf7305d
URI Template parser and matcher 2025-01-07 16:42:13 +00:00
Justin Spahr-Summers
bb28c9b519
Minor tweak to make test code more idiomatic 2025-01-07 15:57:10 +00:00
Justin Spahr-Summers
aac1959855
Errors invoking tools should be erroneous tool results, not McpErrors 2025-01-07 14:53:56 +00:00
Justin Spahr-Summers
ff22f255ad
Tests for Server.tool 2025-01-07 14:44:23 +00:00
Justin Spahr-Summers
b538731af0
Fix string type check 2025-01-07 14:40:53 +00:00
Justin Spahr-Summers
c14a5d44bf
Tests for mergeCapabilities 2025-01-07 14:34:00 +00:00
Justin Spahr-Summers
7ac5a5fcf5
Automatically register tools capability 2025-01-07 14:34:00 +00:00
Justin Spahr-Summers
1506bd1b51
Allow capabilities to be dynamically registered after initialization 2025-01-07 14:34:00 +00:00
Justin Spahr-Summers
4bf5c5358a
Assert tool request handlers do not already exist 2025-01-07 14:34:00 +00:00
Justin Spahr-Summers
f8f5686966
Server.tool() convenience API 2025-01-07 14:33:56 +00:00
Justin Spahr-Summers
278cfb1de1
Merge pull request #114 from modelcontextprotocol/justin/improve-type-inference
Improve type inference from Zod schemas
2025-01-06 21:43:48 +00:00
Justin Spahr-Summers
0c5d6c4f18
Missed one 2025-01-06 21:37:30 +00:00
Jerome
a2157dcbd4
Removed unneeded test 2025-01-03 19:09:11 +00:00
Jerome
8a077474a6
Pause stdin if we were the only listeners to the data events 2025-01-03 19:05:38 +00:00
Jerome
6ebf67ea73
Don't remove drain listeners 2025-01-03 18:47:07 +00:00