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
2b7a23bb81
Fix some missing type exports
2024-11-10 13:50:10 +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
5c6a7a247e
CallToolResult.isError should be optional
2024-11-07 13:36:57 +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
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
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
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
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
a254ab7e46
Fix missing error codes
2024-11-01 14:47:48 +00:00
Justin Spahr-Summers
4cf8dd316e
Lint
2024-10-21 12:40:29 +01:00
Justin Spahr-Summers
9dc6c9c9e0
Had to inline getCapability(), wouldn't pass typechecking otherwise
2024-10-21 12:36:50 +01:00
Justin Spahr-Summers
ee7eb5e5c9
Make most object types pass through unrecognized properties
2024-10-21 12:32:41 +01:00
Justin Spahr-Summers
209f8eb1c0
Revert string -> URL transformations
2024-10-18 17:53:01 +01:00
Ashwin Bhat
65a861328b
fix schema definitions for RequestSchema
2024-10-16 15:30:24 -07:00
Justin Spahr-Summers
be9c1fe9c8
Merge branch 'main' into justin/fix-race-condition
2024-10-16 18:23:48 +01:00
Justin Spahr-Summers
7b718de77c
Report errors when start() is called multiple times
2024-10-16 13:14:47 +01:00
Justin Spahr-Summers
83a43fda1e
Protocol.connect() can automatically call Transport.start()
2024-10-16 13:10:31 +01:00
Justin Spahr-Summers
8d80cc53a8
Merge branch 'main' into justin/fix-race-condition
2024-10-16 13:05:05 +01:00
Ashwin Bhat
bcb4b219ee
add server capabilities derivation
2024-10-15 17:08:08 -07:00
ashwin-ant
05a3e54751
fix protocol version in client
2024-10-14 20:20:52 -07:00
Justin Spahr-Summers
e9c64fbc53
Update tests and CLI
2024-10-11 16:49:22 +01:00