Skip to content

Commit 2048c36

Browse files
feat: use elicitInput() for SEP-1034 default validation
Updates client-side test to validate server-side default application using elicitInput() helper, which applies defaults via validation layer. This aligns with the TypeScript SDK's SEP-1034 implementation approach. The test now validates: - Server uses elicitInput() with schemas containing defaults - Client returns empty/partial content - Server automatically applies defaults during validation - Defaults are correctly merged for all primitive types
1 parent 46ea7f6 commit 2048c36

File tree

2 files changed

+416
-289
lines changed

2 files changed

+416
-289
lines changed

examples/clients/typescript/elicitation-defaults-test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ async function main(): Promise<void> {
2727
version: '1.0.0'
2828
},
2929
{
30-
capabilities: {}
30+
capabilities: {
31+
elicitation: {}
32+
}
3133
}
3234
);
3335

0 commit comments

Comments
 (0)