Commit graph typescript-sdk/src
Author SHA1 Message Date
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
Justin Spahr-Summers
2b0599e163
Update server SSE transport 2024-10-11 16:49:22 +01:00
Justin Spahr-Summers
c39f8084d7
Update client transports 2024-10-11 16:49:21 +01:00
Justin Spahr-Summers
87ae7ffc5a
Add start() to Transport interface 2024-10-11 16:13:46 +01:00
Justin Spahr-Summers
ec96ffc958
Treat URIs as 'URL' type 2024-10-11 16:02:24 +01:00
Justin Spahr-Summers
69daade659
Update to latest protocol version 2024-10-11 14:01:35 +01:00
Justin Spahr-Summers
8b476ddc85
Start JSON-RPC messages with 'jsonrpc' and 'id' fields, instead of the other way around 2024-10-02 22:22:00 +01:00
Justin Spahr-Summers
42fbfe2ff4
Update Protocol type inference 2024-10-02 22:01:49 +01:00
Justin Spahr-Summers
3ea255f088
Use Zod for message validation at transport layer 2024-10-02 15:06:30 +01:00
Justin Spahr-Summers
cc1f19a051
Allow messages to contain other protocol versions 2024-10-02 14:51:56 +01:00
Justin Spahr-Summers
d5c3d8178e
Add TypeScript types from Zod schemas 2024-10-02 14:51:56 +01:00
Justin Spahr-Summers
cd6820e810
Use an enum for error codes 2024-10-02 14:51:55 +01:00
Justin Spahr-Summers
4be31d0f08
Remove explicit constants of method names, factor out ProgressSchema 2024-10-02 14:51:55 +01:00
Justin Spahr-Summers
0e2b156a7d
More fixups, including object property passthroughs 2024-10-02 14:42:15 +01:00
Justin Spahr-Summers
e929a4bf67
Reorder definitions to eliminate use of lazy() 2024-10-02 14:32:04 +01:00
Justin Spahr-Summers
b400ce5782
Mark numbers as integers where possible 2024-10-02 14:22:42 +01:00
Justin Spahr-Summers
c7713e9d61
Fix up URIs 2024-10-02 14:21:25 +01:00
Justin Spahr-Summers
8488d56810
Claude rewriting types as Zod schemas 2024-10-02 14:20:31 +01:00
Justin Spahr-Summers
3786c88960
Combine types into one file 2024-10-02 14:17:31 +01:00
Justin Spahr-Summers
d2c8ced0b8
Update schema to latest 2024-10-02 14:10:43 +01:00
Justin Spahr-Summers
1cb6869681
Fix error handling 2024-09-27 11:25:12 +01:00