Commit graph

53 commits

Author SHA1 Message Date
Justin Spahr-Summers
9158f53e2d
Merge pull request #23 from modelcontextprotocol/justin/add-missing-passthroughs
Make most object types pass through unrecognized properties
2024-10-22 12:41:40 +01:00
Justin Spahr-Summers
4cf8dd316e
Lint 2024-10-21 12:40:29 +01:00
Justin Spahr-Summers
adfe2cb7f3
yarn build 2024-10-21 12:36:57 +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
cc2a1682bb
Merge pull request #22 from modelcontextprotocol/justin/revert-urls
Revert string -> URL transformations
2024-10-18 17:54:49 +01:00
Justin Spahr-Summers
209f8eb1c0
Revert string -> URL transformations 2024-10-18 17:53:01 +01:00
ashwin-ant
7d70db8057
Merge pull request #20 from modelcontextprotocol/ashwin/progress
fix schema definitions for RequestSchema
2024-10-17 08:02:20 -07:00
Ashwin Bhat
65a861328b
fix schema definitions for RequestSchema 2024-10-16 15:30:24 -07:00
Justin Spahr-Summers
e665be068b
Merge pull request #14 from modelcontextprotocol/justin/fix-race-condition
Fix race condition between transport start and initialization
2024-10-16 18:24:43 +01:00
Justin Spahr-Summers
be9c1fe9c8
Merge branch 'main' into justin/fix-race-condition 2024-10-16 18:23:48 +01:00
ashwin-ant
36ba802551
Merge pull request #17 from modelcontextprotocol/ashwin/capabilities
add server capabilities derivation
2024-10-16 08:22:47 -07:00
Justin Spahr-Summers
a1b8886b26
yarn build 2024-10-16 13:16:08 +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
Justin Spahr-Summers
dcc30bea49
Merge pull request #16 from modelcontextprotocol/ashwin/protocol
fix protocol version in client
2024-10-15 10:01:48 +01: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
73c66f4a7c
Merge pull request #13 from modelcontextprotocol/justin/uris
Treat URIs as `URL` type
2024-10-11 16:13:35 +01:00
Justin Spahr-Summers
5cad4b5dd9
Merge pull request #12 from modelcontextprotocol/justin/spec-updates
Update to latest protocol version
2024-10-11 16:13:26 +01:00
Justin Spahr-Summers
ec96ffc958
Treat URIs as 'URL' type 2024-10-11 16:02:24 +01:00
Justin Spahr-Summers
f3a8fb8685
yarn build 2024-10-11 15:45:38 +01:00
Justin Spahr-Summers
69daade659
Update to latest protocol version 2024-10-11 14:01:35 +01:00
Justin Spahr-Summers
2cc7dd1043
Merge pull request #5 from modelcontextprotocol/justin/validation
Use Zod for validation and parsing
2024-10-03 15:52:05 +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
ecbcb8d591
yarn build 2024-10-02 22:05:23 +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
698d6c5b52
Install zod 2024-10-02 14:15:11 +01:00
Justin Spahr-Summers
d2c8ced0b8
Update schema to latest 2024-10-02 14:10:43 +01:00
Justin Spahr-Summers
9a1ee2962e
Remove mcp-spec subtree
Will update the schema manually going forward.
2024-10-02 14:10:02 +01:00
Justin Spahr-Summers
2c51a0f6f2
Merge pull request #4 from modelcontextprotocol/justin/sse-parsed-messages
Add `SSEServerTransport.handleMessage` bypass
2024-09-27 15:15:21 +01:00
Justin Spahr-Summers
1cb6869681
Fix error handling 2024-09-27 11:25:12 +01:00
Justin Spahr-Summers
f4128aac71
yarn build 2024-09-27 11:16:08 +01:00
Justin Spahr-Summers
81b40e5608
Add SSEServerTransport.handleMessage bypass 2024-09-27 11:14:59 +01:00