Skip to content

Commit f75650f

Browse files
Fix elicitation tests for SDK 1.23.0-beta.0
- Add mode: 'form' to all elicitation/create request params (required by new SDK schema) - Update vitest exclude pattern to properly exclude SDK internal tests - Bump SDK to 1.23.0-beta.0
1 parent b64e054 commit f75650f

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

examples/servers/typescript/everything-server.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ function createMcpServer() {
385385
{
386386
method: 'elicitation/create',
387387
params: {
388+
mode: 'form',
388389
message: args.message,
389390
requestedSchema: {
390391
type: 'object',
@@ -437,6 +438,7 @@ function createMcpServer() {
437438
{
438439
method: 'elicitation/create',
439440
params: {
441+
mode: 'form',
440442
message: 'Please review and update the form fields with defaults',
441443
requestedSchema: {
442444
type: 'object',
@@ -512,6 +514,7 @@ function createMcpServer() {
512514
{
513515
method: 'elicitation/create',
514516
params: {
517+
mode: 'form',
515518
message: 'Please select options from the enum fields',
516519
requestedSchema: {
517520
type: 'object',

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"vitest": "^4.0.5"
4646
},
4747
"dependencies": {
48-
"@modelcontextprotocol/sdk": "^1.23.0-beta.0",
48+
"@modelcontextprotocol/sdk": "1.23.0-beta.0",
4949
"commander": "^14.0.2",
5050
"express": "^5.1.0",
5151
"zod": "^3.25.76"

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineConfig({
55
globals: true,
66
environment: 'node',
77
include: ['**/*.test.ts'],
8-
exclude: ['node_modules', 'dist'],
8+
exclude: ['**/node_modules/**', 'dist'],
99
// Run test files sequentially to avoid port conflicts
1010
fileParallelism: false,
1111
// Increase timeout for server tests in CI

0 commit comments

Comments
 (0)