Commit graph

147 commits

Author SHA1 Message Date
Justin Spahr-Summers
347e8905a9
Add types for cancellation notifications 2024-11-14 13:39:43 +00:00
Justin Spahr-Summers
d0c83e946c
Fix notification params schemas not permitting _meta 2024-11-14 13:26:24 +00:00
Justin Spahr-Summers
f6c986d81f
Merge pull request #50 from modelcontextprotocol/justin/call-tool-iserror
`CallToolResult.isError` should not be required
2024-11-12 13:48:42 +00:00
Justin Spahr-Summers
002f82332d
Merge branch 'main' into justin/call-tool-iserror 2024-11-12 13:47:43 +00:00
Justin Spahr-Summers
02c5021e96
Merge pull request #51 from modelcontextprotocol/justin/test-version-negotiation
Improve and test version negotiation
2024-11-12 13:47:27 +00:00
Justin Spahr-Summers
6aab7ee643
Merge pull request #52 from modelcontextprotocol/justin/capabilities-negotiation
Test capabilities, use explicit specifiers for now
2024-11-12 13:46:26 +00:00
Justin Spahr-Summers
70cfb0f0d4
Unify error text 2024-11-12 12:17:35 +00:00
Justin Spahr-Summers
8b307a5d62
Check capabilities when request handlers are set 2024-11-12 12:16:43 +00:00
Justin Spahr-Summers
64c2862883
Check and add tests for notification capabilities too 2024-11-12 12:02:10 +00:00
Justin Spahr-Summers
268aac8a15
Merge pull request #53 from modelcontextprotocol/justin/release-environment
Restrict publishing to `release` environment
2024-11-12 11:50:21 +00:00
Justin Spahr-Summers
dc45f5d148
Handle capabilities checks at the request() level, make non-strict by default 2024-11-12 10:57:59 +00:00
Justin Spahr-Summers
f6fe741067
Restrict publishing to 'release' environment 2024-11-12 10:20:38 +00:00
Justin Spahr-Summers
8e369b7171
Lint 2024-11-11 22:49:53 +00:00
Justin Spahr-Summers
af03a74f5a
Fix missing argument in cli.ts 2024-11-11 22:42:01 +00:00
Justin Spahr-Summers
7ab5880569
Use explicit capabilities lists for now 2024-11-11 22:38:43 +00:00
Justin Spahr-Summers
90e91cdd62
Tests and assertions for client/server capabilities
Resolves #45.
2024-11-11 22:30:50 +00:00
Justin Spahr-Summers
852ebb9ec0
Add an InMemoryTransport 2024-11-11 22:27:45 +00:00
Justin Spahr-Summers
c82d633d8d
Disconnect from client side if initialization fails
Resolves #24.
2024-11-11 22:08:46 +00:00
Justin Spahr-Summers
8ea66e7df9
Tests for protocol version negotiation
Resolves #44.
2024-11-11 22:05:13 +00:00
Justin Spahr-Summers
7631cdb6d1
CallToolResult.isError should not be required 2024-11-11 21:27:02 +00:00
Justin Spahr-Summers
2c220862e2
npm install 2024-11-11 21:06:18 +00:00
Justin Spahr-Summers
0a7461cfc7
Merge pull request #49 from modelcontextprotocol/jspahrsummers-patch-1
Update README title
2024-11-11 16:22:53 +00:00
Justin Spahr-Summers
b3f89f56cd
Update README title 2024-11-11 16:00:24 +00:00
Justin Spahr-Summers
373b6f1d71
Remove provenance, not supported on private repos 0.4.0 2024-11-11 15:49:52 +00:00
Justin Spahr-Summers
2cc496dfe7
Merge pull request #48 from modelcontextprotocol/justin/auto-publish-npm
Publish releases publicly to npm
2024-11-11 15:45:07 +00:00
Justin Spahr-Summers
acb96d996d
Publish releases publicly to npm 2024-11-11 15:43:12 +00:00
Justin Spahr-Summers
fd907524d0
Bump version for initial publishing 2024-11-11 15:06:05 +00:00
Justin Spahr-Summers
6164360c05
Merge pull request #47 from modelcontextprotocol/justin/oss-prep
Add license information and more package metadata
2024-11-11 12:08:59 +00:00
Justin Spahr-Summers
abafc46072
Remove mention of WebSocket 2024-11-11 10:28:13 +00:00
Justin Spahr-Summers
65d092f176
Proper README, based on the Python SDK's 2024-11-11 10:27:40 +00:00
Justin Spahr-Summers
a1569c6260
Add license information and more package metadata 2024-11-11 10:22:28 +00:00
Justin Spahr-Summers
f848aca855
Merge pull request #46 from modelcontextprotocol/justin/export-prompt-message
Fix some missing type exports
2024-11-10 20:12:06 +00:00
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