Commit graph typescript-sdk/src/types.ts
Author SHA1 Message Date
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
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
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
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
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
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
Renamed from src/types/schema.ts (Previous history)