Commit graph typescript-sdk/src
Author SHA1 Message Date
Justin Spahr-Summers
3447575417
Inherit environment variables deemed safe by default 2024-11-05 11:56:47 +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
Justin Spahr-Summers
81b40e5608
Add SSEServerTransport.handleMessage bypass 2024-09-27 11:14:59 +01:00
David Soria Parra
929275eddf
Add 'packages/mcp-spec/' from commit 'd06853c5e8'
git-subtree-dir: packages/mcp-spec
git-subtree-mainline: 02e421c1f1
git-subtree-split: d06853c5e8
2024-09-24 21:59:42 +01:00
David Soria Parra
02e421c1f1
Initial import 2024-09-24 21:53:34 +01:00