Commit graph typescript-sdk/src/server/index.test.ts
Author SHA1 Message Date
Konstantin Konstantinov
43189335a3
Follow up: unify v3 and v4 zod types via describe matrix and a test helper (#1141) 2025-11-20 10:10:15 +00:00
Devin Clark
418b7f9b85
feat: zod v4 with backwards compatibility for v3.25+ (#1040) 2025-11-19 20:24:53 +00:00
Nate Barbettini
4debc740a5
SEP-1036: URL Elicitation (#1105) 2025-11-18 10:53:15 +00:00
Matt
98df118a4c
Migrate to vitest from jest (#1074)
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
2025-11-14 14:08:00 +00:00
Konstantin Konstantinov
f59996ae66
SEP-1319: Decouple Request Payloads, Remove passthrough iteration, Typecheck fixes (#1086) 2025-11-07 16:50:20 +00:00
Matt
5a8fb39430
feat: pluggable JSON schema validator providers (#1012) 2025-10-25 11:56:42 -04:00
Inna Harper
1150b1d843
run prettier (#995) 2025-10-02 18:21:00 +01:00
Cliff Hall
ebf39330f3
Fix automatic log level handling for sessionless connections (#917) 2025-09-09 21:35:08 +01:00
ihrpr
25048b9eaf
rename reject to decline 2025-07-03 15:51:16 +01:00
Konstantin Konstantinov
606c278668
clean up tests - remove mockRequestInfo 2025-06-25 16:24:30 +03:00
Konstantin Konstantinov
96ff8573cf
Merge branch 'main' into request-propagation-in-tools 2025-06-24 17:21:09 +03:00
ihrpr
e7a5e331f1
rename decline to reject 2025-06-18 20:11:18 +01:00
Konstantin Konstantinov
db9ba7b419
raw request propagation in tools - implementation, unit tests, types 2025-06-14 01:08:02 +03:00
ihrpr
04cbbfbb0d
elicitation example 2025-05-21 16:59:37 -04:00
Justin Spahr-Summers
2e35b15353
Merge branch 'main' into justin/simplified-api 2025-01-13 20:34:08 +00:00
Kalvin Chau
54472d2ae1 feat: add optional instructions field to server _oninitialize 2025-01-13 09:09:05 -08:00
Justin Spahr-Summers
2289dbc0d0
Factor out convenience APIs into another class 2025-01-08 21:59:38 +00:00
Justin Spahr-Summers
189cc84113
Autocomplete on resource template variables 2025-01-08 15:46:43 +00:00
Justin Spahr-Summers
8635c6384f
Autocomplete on prompt arguments 2025-01-08 15:19:16 +00:00
Justin Spahr-Summers
9b95fa8203
Server.prompt() convenience API 2025-01-08 14:20:44 +00:00
Justin Spahr-Summers
5ddfa0a0d9
Add extra to resource request handlers 2025-01-08 14:20:43 +00:00
Justin Spahr-Summers
8356cb900c
Create ResourceTemplate class and move listCallback into it 2025-01-08 13:44:12 +00:00
Justin Spahr-Summers
45f99e6590
Make Variables non-optional with resource template URIs 2025-01-07 22:36:20 +00:00
Justin Spahr-Summers
3f9acec31e
Add a test for listCallback 2025-01-07 22:10:05 +00:00
Justin Spahr-Summers
098266ae22
Add simplified API for registering resources and resource templates 2025-01-07 22:01:41 +00:00
Justin Spahr-Summers
bb28c9b519
Minor tweak to make test code more idiomatic 2025-01-07 15:57:10 +00:00
Justin Spahr-Summers
aac1959855
Errors invoking tools should be erroneous tool results, not McpErrors 2025-01-07 14:53:56 +00:00
Justin Spahr-Summers
ff22f255ad
Tests for Server.tool 2025-01-07 14:44:23 +00:00
Justin Spahr-Summers
437a870029
Tests for request timeout 2024-11-16 16:37:24 +00:00
Justin Spahr-Summers
6ec4c09325
Add tests for issuing cancellation notifications 2024-11-14 14:11:11 +00:00
Justin Spahr-Summers
8b307a5d62
Check capabilities when request handlers are set 2024-11-12 12:16:43 +00:00
Justin Spahr-Summers
64c2862883
Check and add tests for notification capabilities too 2024-11-12 12:02:10 +00:00
Justin Spahr-Summers
dc45f5d148
Handle capabilities checks at the request() level, make non-strict by default 2024-11-12 10:57:59 +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
8ea66e7df9
Tests for protocol version negotiation
Resolves #44.
2024-11-11 22:05:13 +00:00
Justin Spahr-Summers
f5fa3cf8e3
Oops, ignore more lints 2024-11-04 21:22:05 +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