Commit graph

115 commits

Author SHA1 Message Date
Justin Spahr-Summers
2b7a23bb81
Fix some missing type exports 2024-11-10 13:50:10 +00:00
Justin Spahr-Summers
c9d810bff5
Merge pull request #41 from modelcontextprotocol/justin/disallow-returning-old-tool-format
Prevent new server code from returning `toolResult`
2024-11-08 16:21:40 +00:00
Justin Spahr-Summers
e8a8273438
Preemptive version bump 2024-11-08 16:13:14 +00:00
Justin Spahr-Summers
68ef1f9f52
Prevent new server code from returning toolResult
This doesn't impact the ability of clients to handle it (see `Client.callTool`), but does make it a type error to return the old format. This will make it easier to catch sites that haven't been updated.
2024-11-08 16:12:55 +00:00
Justin Spahr-Summers
9334495bb3
Merge pull request #39 from modelcontextprotocol/justin/is-error-optional 0.3.2
`CallToolResult.isError` should be optional
2024-11-07 13:40:22 +00:00
Justin Spahr-Summers
1026bb7c4a
Bump package version 2024-11-07 13:38:41 +00:00
Justin Spahr-Summers
5c6a7a247e
CallToolResult.isError should be optional 2024-11-07 13:36:57 +00:00
Justin Spahr-Summers
a4031e2f5b
Ugh have to use a new package version 0.3.1 2024-11-07 13:12:32 +00:00
Justin Spahr-Summers
7372b8abbd
Merge pull request #38 from modelcontextprotocol/justin/support-older-protocol-version 0.3.0
Add backwards compatibility with 2024-10-07
2024-11-07 13:10:56 +00:00
Justin Spahr-Summers
1f3dbef66c
Support old tools/call result structure, if explicitly opted in 2024-11-07 13:09:20 +00:00
Justin Spahr-Summers
b618157c93
Continue allowing 2024-10-07 in version negotiation 2024-11-07 13:00:52 +00:00
Justin Spahr-Summers
0bf7e66e98
Require protocolVersion to be a string now 2024-11-07 12:57:19 +00:00
Justin Spahr-Summers
f33666267a
Bump version to 0.3.0 2024-11-07 12:53:46 +00:00
Justin Spahr-Summers
d3f05f6638
Merge pull request #37 from modelcontextprotocol/justin/spec-updates
Update to spec version 2024-11-05
2024-11-07 12:06:38 +00:00
Justin Spahr-Summers
f74a289211
Split out ModelHintSchema for better typing and docs 2024-11-06 11:56:20 +00:00
Justin Spahr-Summers
f7f0ccff0e
Declare known stopReasons, as a kind of documentation 2024-11-06 11:56:05 +00:00
Justin Spahr-Summers
099c2e2be3
Update client and server convenience methods 2024-11-06 11:46:55 +00:00
Justin Spahr-Summers
45a4c9ee37
List roots is not a client request 2024-11-06 11:45:19 +00:00
Justin Spahr-Summers
579ac51f21
Export type aliases for roots 2024-11-06 11:44:37 +00:00
Justin Spahr-Summers
ce50ba4915
Fix resources/templates/list not being included in client/server schemas 2024-11-06 11:42:09 +00:00
Justin Spahr-Summers
7e085d0519
Update for spec changes 2024-11-06 11:38:02 +00:00
Justin Spahr-Summers
9b8bf3b3cc
Bump version to 0.2.0 0.2.0 2024-11-06 10:45:49 +00:00
Justin Spahr-Summers
e95e91a77c
Merge pull request #35 from modelcontextprotocol/justin/conveniences
Add convenience methods for issuing requests
2024-11-05 16:54:49 +00:00
Justin Spahr-Summers
2b9b1b73fa
Merge pull request #33 from modelcontextprotocol/justin/custom-requests
Fix typing for custom requests, notification, and result types
2024-11-05 16:36:02 +00:00
Justin Spahr-Summers
844d69db6e
Merge pull request #36 from modelcontextprotocol/justin/env-var-inheritance
Inherit environment variables deemed safe by default
2024-11-05 16:05:38 +00:00
Justin Spahr-Summers
08b89404a3
Trim Windows list down based on review 2024-11-05 12:10:24 +00:00
Justin Spahr-Summers
3447575417
Inherit environment variables deemed safe by default 2024-11-05 11:56:47 +00:00
Justin Spahr-Summers
12c92341b4
Support onprogress callbacks 2024-11-04 22:38:10 +00:00
Justin Spahr-Summers
a9b6ae6679
Convenience methods for Server 2024-11-04 22:38:10 +00:00
Justin Spahr-Summers
3d32ce69df
Convenience methods for Client 2024-11-04 22:38:10 +00:00
Justin Spahr-Summers
8be664b0a9
Merge branch 'main' into justin/custom-requests 2024-11-04 22:36:09 +00:00
Justin Spahr-Summers
bfb6ffc87a
Merge pull request #32 from modelcontextprotocol/justin/fix-params-types
Fix `params` being required on paginated requests
2024-11-04 21:22:46 +00:00
Justin Spahr-Summers
f5fa3cf8e3
Oops, ignore more lints 2024-11-04 21:22:05 +00:00
Justin Spahr-Summers
af9df1ff14
Don't actually run request() and notification() 2024-11-04 21:13:00 +00:00
Justin Spahr-Summers
2026260668
Wrap into one test (required) 2024-11-04 21:12:17 +00:00
Justin Spahr-Summers
9774e2fdfe
Disable unused vars lint 2024-11-04 21:10:35 +00:00
Justin Spahr-Summers
b5880ec18a
Support custom server request, notification, and result types 2024-11-04 21:07:53 +00:00
Justin Spahr-Summers
7cc7e81387
Support custom client request, notification, and result types 2024-11-04 21:07:41 +00:00
Justin Spahr-Summers
bcf9862937
progressToken should be required in progress notifications 2024-11-04 20:50:27 +00:00
Justin Spahr-Summers
f02952aa81
Fix paginated requests requiring params
Resolves #21.
2024-11-04 20:50:23 +00:00
Justin Spahr-Summers
d474c570e4
Add basic exercise of params typing 2024-11-04 20:45:52 +00:00
Justin Spahr-Summers
9b4c949f65
Merge pull request #31 from modelcontextprotocol/justin/fix-missing-error-code
Fix missing error codes
2024-11-01 15:57:31 +00:00
Justin Spahr-Summers
a8b61c3693
Preemptively bump package version 2024-11-01 14:49:46 +00:00
Justin Spahr-Summers
a254ab7e46
Fix missing error codes 2024-11-01 14:47:48 +00:00
Justin Spahr-Summers
3d39ca63b7
Merge pull request #30 from modelcontextprotocol/justin/npmrc
Add npmrc to always point to npm for public packages
2024-10-31 17:12:58 +00:00
Justin Spahr-Summers
88ad14c2c4
Add npmrc to always point to npm for public packages 2024-10-31 15:42:58 +00:00
Justin Spahr-Summers
55d8aafd1b
Merge pull request #29 from modelcontextprotocol/justin/publish-packs
Automatically publish `npm pack` to GH Releases
2024-10-29 19:55:41 +00:00
Justin Spahr-Summers
8e07474f52
Remove test job 2024-10-29 12:17:20 +00:00
Justin Spahr-Summers
9eeaf3e44e
Just remove the 'if' for testing 2024-10-29 12:16:08 +00:00
Justin Spahr-Summers
6e868d1d71
Cancel in-progress builds automatically 2024-10-29 12:15:35 +00:00