| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "definitions": { |
| 4 | "McpElicitationArrayType": { |
| 5 | "enum": [ |
| 6 | "array" |
| 7 | ], |
| 8 | "type": "string" |
| 9 | }, |
| 10 | "McpElicitationBooleanSchema": { |
| 11 | "additionalProperties": false, |
| 12 | "properties": { |
| 13 | "default": { |
| 14 | "type": [ |
| 15 | "boolean", |
| 16 | "null" |
| 17 | ] |
| 18 | }, |
| 19 | "description": { |
| 20 | "type": [ |
| 21 | "string", |
| 22 | "null" |
| 23 | ] |
| 24 | }, |
| 25 | "title": { |
| 26 | "type": [ |
| 27 | "string", |
| 28 | "null" |
| 29 | ] |
| 30 | }, |
| 31 | "type": { |
| 32 | "$ref": "#/definitions/McpElicitationBooleanType" |
| 33 | } |
| 34 | }, |
| 35 | "required": [ |
| 36 | "type" |
| 37 | ], |
| 38 | "type": "object" |
| 39 | }, |
| 40 | "McpElicitationBooleanType": { |
| 41 | "enum": [ |
| 42 | "boolean" |
| 43 | ], |
| 44 | "type": "string" |
| 45 | }, |
| 46 | "McpElicitationConstOption": { |
| 47 | "additionalProperties": false, |
| 48 | "properties": { |
| 49 | "const": { |
| 50 | "type": "string" |
| 51 | }, |
| 52 | "title": { |
| 53 | "type": "string" |
| 54 | } |
| 55 | }, |
| 56 | "required": [ |
| 57 | "const", |
| 58 | "title" |
| 59 | ], |
| 60 | "type": "object" |
| 61 | }, |
| 62 | "McpElicitationEnumSchema": { |
| 63 | "anyOf": [ |
| 64 | { |
| 65 | "$ref": "#/definitions/McpElicitationSingleSelectEnumSchema" |
| 66 | }, |
| 67 | { |
| 68 | "$ref": "#/definitions/McpElicitationMultiSelectEnumSchema" |
| 69 | }, |
| 70 | { |
| 71 | "$ref": "#/definitions/McpElicitationLegacyTitledEnumSchema" |
| 72 | } |
| 73 | ] |
| 74 | }, |
| 75 | "McpElicitationLegacyTitledEnumSchema": { |
| 76 | "additionalProperties": false, |
| 77 | "properties": { |
| 78 | "default": { |
| 79 | "type": [ |
| 80 | "string", |
| 81 | "null" |
| 82 | ] |
| 83 | }, |
| 84 | "description": { |
| 85 | "type": [ |
| 86 | "string", |
| 87 | "null" |
| 88 | ] |
| 89 | }, |
| 90 | "enum": { |
| 91 | "items": { |
| 92 | "type": "string" |
| 93 | }, |
| 94 | "type": "array" |
| 95 | }, |
| 96 | "enumNames": { |
| 97 | "items": { |
| 98 | "type": "string" |
| 99 | }, |
| 100 | "type": [ |
| 101 | "array", |
| 102 | "null" |
| 103 | ] |
| 104 | }, |
| 105 | "title": { |
| 106 | "type": [ |
| 107 | "string", |
| 108 | "null" |
| 109 | ] |
| 110 | }, |
| 111 | "type": { |
| 112 | "$ref": "#/definitions/McpElicitationStringType" |
| 113 | } |
| 114 | }, |
| 115 | "required": [ |
| 116 | "enum", |
| 117 | "type" |
| 118 | ], |
| 119 | "type": "object" |
| 120 | }, |
| 121 | "McpElicitationMultiSelectEnumSchema": { |
| 122 | "anyOf": [ |
| 123 | { |
| 124 | "$ref": "#/definitions/McpElicitationUntitledMultiSelectEnumSchema" |
| 125 | }, |
| 126 | { |
| 127 | "$ref": "#/definitions/McpElicitationTitledMultiSelectEnumSchema" |
| 128 | } |
| 129 | ] |
| 130 | }, |
| 131 | "McpElicitationNumberSchema": { |
| 132 | "additionalProperties": false, |
| 133 | "properties": { |
| 134 | "default": { |
| 135 | "format": "double", |
| 136 | "type": [ |
| 137 | "number", |
| 138 | "null" |
| 139 | ] |
| 140 | }, |
| 141 | "description": { |
| 142 | "type": [ |
| 143 | "string", |
| 144 | "null" |
| 145 | ] |
| 146 | }, |
| 147 | "maximum": { |
| 148 | "format": "double", |
| 149 | "type": [ |
| 150 | "number", |
| 151 | "null" |
| 152 | ] |
| 153 | }, |
| 154 | "minimum": { |
| 155 | "format": "double", |
| 156 | "type": [ |
| 157 | "number", |
| 158 | "null" |
| 159 | ] |
| 160 | }, |
| 161 | "title": { |
| 162 | "type": [ |
| 163 | "string", |
| 164 | "null" |
| 165 | ] |
| 166 | }, |
| 167 | "type": { |
| 168 | "$ref": "#/definitions/McpElicitationNumberType" |
| 169 | } |
| 170 | }, |
| 171 | "required": [ |
| 172 | "type" |
| 173 | ], |
| 174 | "type": "object" |
| 175 | }, |
| 176 | "McpElicitationNumberType": { |
| 177 | "enum": [ |
| 178 | "number", |
| 179 | "integer" |
| 180 | ], |
| 181 | "type": "string" |
| 182 | }, |
| 183 | "McpElicitationObjectType": { |
| 184 | "enum": [ |
| 185 | "object" |
| 186 | ], |
| 187 | "type": "string" |
| 188 | }, |
| 189 | "McpElicitationPrimitiveSchema": { |
| 190 | "anyOf": [ |
| 191 | { |
| 192 | "$ref": "#/definitions/McpElicitationEnumSchema" |
| 193 | }, |
| 194 | { |
| 195 | "$ref": "#/definitions/McpElicitationStringSchema" |
| 196 | }, |
| 197 | { |
| 198 | "$ref": "#/definitions/McpElicitationNumberSchema" |
| 199 | }, |
| 200 | { |
| 201 | "$ref": "#/definitions/McpElicitationBooleanSchema" |
| 202 | } |
| 203 | ] |
| 204 | }, |
| 205 | "McpElicitationSchema": { |
| 206 | "additionalProperties": false, |
| 207 | "description": "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.", |
| 208 | "properties": { |
| 209 | "$schema": { |
| 210 | "type": [ |
| 211 | "string", |
| 212 | "null" |
| 213 | ] |
| 214 | }, |
| 215 | "properties": { |
| 216 | "additionalProperties": { |
| 217 | "$ref": "#/definitions/McpElicitationPrimitiveSchema" |
| 218 | }, |
| 219 | "type": "object" |
| 220 | }, |
| 221 | "required": { |
| 222 | "items": { |
| 223 | "type": "string" |
| 224 | }, |
| 225 | "type": [ |
| 226 | "array", |
| 227 | "null" |
| 228 | ] |
| 229 | }, |
| 230 | "type": { |
| 231 | "$ref": "#/definitions/McpElicitationObjectType" |
| 232 | } |
| 233 | }, |
| 234 | "required": [ |
| 235 | "properties", |
| 236 | "type" |
| 237 | ], |
| 238 | "type": "object" |
| 239 | }, |
| 240 | "McpElicitationSingleSelectEnumSchema": { |
| 241 | "anyOf": [ |
| 242 | { |
| 243 | "$ref": "#/definitions/McpElicitationUntitledSingleSelectEnumSchema" |
| 244 | }, |
| 245 | { |
| 246 | "$ref": "#/definitions/McpElicitationTitledSingleSelectEnumSchema" |
| 247 | } |
| 248 | ] |
| 249 | }, |
| 250 | "McpElicitationStringFormat": { |
| 251 | "enum": [ |
| 252 | "email", |
| 253 | "uri", |
| 254 | "date", |
| 255 | "date-time" |
| 256 | ], |
| 257 | "type": "string" |
| 258 | }, |
| 259 | "McpElicitationStringSchema": { |
| 260 | "additionalProperties": false, |
| 261 | "properties": { |
| 262 | "default": { |
| 263 | "type": [ |
| 264 | "string", |
| 265 | "null" |
| 266 | ] |
| 267 | }, |
| 268 | "description": { |
| 269 | "type": [ |
| 270 | "string", |
| 271 | "null" |
| 272 | ] |
| 273 | }, |
| 274 | "format": { |
| 275 | "anyOf": [ |
| 276 | { |
| 277 | "$ref": "#/definitions/McpElicitationStringFormat" |
| 278 | }, |
| 279 | { |
| 280 | "type": "null" |
| 281 | } |
| 282 | ] |
| 283 | }, |
| 284 | "maxLength": { |
| 285 | "format": "uint32", |
| 286 | "minimum": 0.0, |
| 287 | "type": [ |
| 288 | "integer", |
| 289 | "null" |
| 290 | ] |
| 291 | }, |
| 292 | "minLength": { |
| 293 | "format": "uint32", |
| 294 | "minimum": 0.0, |
| 295 | "type": [ |
| 296 | "integer", |
| 297 | "null" |
| 298 | ] |
| 299 | }, |
| 300 | "title": { |
| 301 | "type": [ |
| 302 | "string", |
| 303 | "null" |
| 304 | ] |
| 305 | }, |
| 306 | "type": { |
| 307 | "$ref": "#/definitions/McpElicitationStringType" |
| 308 | } |
| 309 | }, |
| 310 | "required": [ |
| 311 | "type" |
| 312 | ], |
| 313 | "type": "object" |
| 314 | }, |
| 315 | "McpElicitationStringType": { |
| 316 | "enum": [ |
| 317 | "string" |
| 318 | ], |
| 319 | "type": "string" |
| 320 | }, |
| 321 | "McpElicitationTitledEnumItems": { |
| 322 | "additionalProperties": false, |
| 323 | "properties": { |
| 324 | "anyOf": { |
| 325 | "items": { |
| 326 | "$ref": "#/definitions/McpElicitationConstOption" |
| 327 | }, |
| 328 | "type": "array" |
| 329 | } |
| 330 | }, |
| 331 | "required": [ |
| 332 | "anyOf" |
| 333 | ], |
| 334 | "type": "object" |
| 335 | }, |
| 336 | "McpElicitationTitledMultiSelectEnumSchema": { |
| 337 | "additionalProperties": false, |
| 338 | "properties": { |
| 339 | "default": { |
| 340 | "items": { |
| 341 | "type": "string" |
| 342 | }, |
| 343 | "type": [ |
| 344 | "array", |
| 345 | "null" |
| 346 | ] |
| 347 | }, |
| 348 | "description": { |
| 349 | "type": [ |
| 350 | "string", |
| 351 | "null" |
| 352 | ] |
| 353 | }, |
| 354 | "items": { |
| 355 | "$ref": "#/definitions/McpElicitationTitledEnumItems" |
| 356 | }, |
| 357 | "maxItems": { |
| 358 | "format": "uint64", |
| 359 | "minimum": 0.0, |
| 360 | "type": [ |
| 361 | "integer", |
| 362 | "null" |
| 363 | ] |
| 364 | }, |
| 365 | "minItems": { |
| 366 | "format": "uint64", |
| 367 | "minimum": 0.0, |
| 368 | "type": [ |
| 369 | "integer", |
| 370 | "null" |
| 371 | ] |
| 372 | }, |
| 373 | "title": { |
| 374 | "type": [ |
| 375 | "string", |
| 376 | "null" |
| 377 | ] |
| 378 | }, |
| 379 | "type": { |
| 380 | "$ref": "#/definitions/McpElicitationArrayType" |
| 381 | } |
| 382 | }, |
| 383 | "required": [ |
| 384 | "items", |
| 385 | "type" |
| 386 | ], |
| 387 | "type": "object" |
| 388 | }, |
| 389 | "McpElicitationTitledSingleSelectEnumSchema": { |
| 390 | "additionalProperties": false, |
| 391 | "properties": { |
| 392 | "default": { |
| 393 | "type": [ |
| 394 | "string", |
| 395 | "null" |
| 396 | ] |
| 397 | }, |
| 398 | "description": { |
| 399 | "type": [ |
| 400 | "string", |
| 401 | "null" |
| 402 | ] |
| 403 | }, |
| 404 | "oneOf": { |
| 405 | "items": { |
| 406 | "$ref": "#/definitions/McpElicitationConstOption" |
| 407 | }, |
| 408 | "type": "array" |
| 409 | }, |
| 410 | "title": { |
| 411 | "type": [ |
| 412 | "string", |
| 413 | "null" |
| 414 | ] |
| 415 | }, |
| 416 | "type": { |
| 417 | "$ref": "#/definitions/McpElicitationStringType" |
| 418 | } |
| 419 | }, |
| 420 | "required": [ |
| 421 | "oneOf", |
| 422 | "type" |
| 423 | ], |
| 424 | "type": "object" |
| 425 | }, |
| 426 | "McpElicitationUntitledEnumItems": { |
| 427 | "additionalProperties": false, |
| 428 | "properties": { |
| 429 | "enum": { |
| 430 | "items": { |
| 431 | "type": "string" |
| 432 | }, |
| 433 | "type": "array" |
| 434 | }, |
| 435 | "type": { |
| 436 | "$ref": "#/definitions/McpElicitationStringType" |
| 437 | } |
| 438 | }, |
| 439 | "required": [ |
| 440 | "enum", |
| 441 | "type" |
| 442 | ], |
| 443 | "type": "object" |
| 444 | }, |
| 445 | "McpElicitationUntitledMultiSelectEnumSchema": { |
| 446 | "additionalProperties": false, |
| 447 | "properties": { |
| 448 | "default": { |
| 449 | "items": { |
| 450 | "type": "string" |
| 451 | }, |
| 452 | "type": [ |
| 453 | "array", |
| 454 | "null" |
| 455 | ] |
| 456 | }, |
| 457 | "description": { |
| 458 | "type": [ |
| 459 | "string", |
| 460 | "null" |
| 461 | ] |
| 462 | }, |
| 463 | "items": { |
| 464 | "$ref": "#/definitions/McpElicitationUntitledEnumItems" |
| 465 | }, |
| 466 | "maxItems": { |
| 467 | "format": "uint64", |
| 468 | "minimum": 0.0, |
| 469 | "type": [ |
| 470 | "integer", |
| 471 | "null" |
| 472 | ] |
| 473 | }, |
| 474 | "minItems": { |
| 475 | "format": "uint64", |
| 476 | "minimum": 0.0, |
| 477 | "type": [ |
| 478 | "integer", |
| 479 | "null" |
| 480 | ] |
| 481 | }, |
| 482 | "title": { |
| 483 | "type": [ |
| 484 | "string", |
| 485 | "null" |
| 486 | ] |
| 487 | }, |
| 488 | "type": { |
| 489 | "$ref": "#/definitions/McpElicitationArrayType" |
| 490 | } |
| 491 | }, |
| 492 | "required": [ |
| 493 | "items", |
| 494 | "type" |
| 495 | ], |
| 496 | "type": "object" |
| 497 | }, |
| 498 | "McpElicitationUntitledSingleSelectEnumSchema": { |
| 499 | "additionalProperties": false, |
| 500 | "properties": { |
| 501 | "default": { |
| 502 | "type": [ |
| 503 | "string", |
| 504 | "null" |
| 505 | ] |
| 506 | }, |
| 507 | "description": { |
| 508 | "type": [ |
| 509 | "string", |
| 510 | "null" |
| 511 | ] |
| 512 | }, |
| 513 | "enum": { |
| 514 | "items": { |
| 515 | "type": "string" |
| 516 | }, |
| 517 | "type": "array" |
| 518 | }, |
| 519 | "title": { |
| 520 | "type": [ |
| 521 | "string", |
| 522 | "null" |
| 523 | ] |
| 524 | }, |
| 525 | "type": { |
| 526 | "$ref": "#/definitions/McpElicitationStringType" |
| 527 | } |
| 528 | }, |
| 529 | "required": [ |
| 530 | "enum", |
| 531 | "type" |
| 532 | ], |
| 533 | "type": "object" |
| 534 | } |
| 535 | }, |
| 536 | "oneOf": [ |
| 537 | { |
| 538 | "properties": { |
| 539 | "_meta": true, |
| 540 | "message": { |
| 541 | "type": "string" |
| 542 | }, |
| 543 | "mode": { |
| 544 | "enum": [ |
| 545 | "form" |
| 546 | ], |
| 547 | "type": "string" |
| 548 | }, |
| 549 | "requestedSchema": { |
| 550 | "$ref": "#/definitions/McpElicitationSchema" |
| 551 | } |
| 552 | }, |
| 553 | "required": [ |
| 554 | "message", |
| 555 | "mode", |
| 556 | "requestedSchema" |
| 557 | ], |
| 558 | "type": "object" |
| 559 | }, |
| 560 | { |
| 561 | "properties": { |
| 562 | "_meta": true, |
| 563 | "message": { |
| 564 | "type": "string" |
| 565 | }, |
| 566 | "mode": { |
| 567 | "enum": [ |
| 568 | "openai/form" |
| 569 | ], |
| 570 | "type": "string" |
| 571 | }, |
| 572 | "requestedSchema": true |
| 573 | }, |
| 574 | "required": [ |
| 575 | "message", |
| 576 | "mode", |
| 577 | "requestedSchema" |
| 578 | ], |
| 579 | "type": "object" |
| 580 | }, |
| 581 | { |
| 582 | "properties": { |
| 583 | "_meta": true, |
| 584 | "message": { |
| 585 | "type": "string" |
| 586 | }, |
| 587 | "mode": { |
| 588 | "enum": [ |
| 589 | "openaiForm" |
| 590 | ], |
| 591 | "type": "string" |
| 592 | }, |
| 593 | "requestedSchema": true |
| 594 | }, |
| 595 | "required": [ |
| 596 | "message", |
| 597 | "mode", |
| 598 | "requestedSchema" |
| 599 | ], |
| 600 | "type": "object" |
| 601 | }, |
| 602 | { |
| 603 | "properties": { |
| 604 | "_meta": true, |
| 605 | "elicitationId": { |
| 606 | "type": "string" |
| 607 | }, |
| 608 | "message": { |
| 609 | "type": "string" |
| 610 | }, |
| 611 | "mode": { |
| 612 | "enum": [ |
| 613 | "url" |
| 614 | ], |
| 615 | "type": "string" |
| 616 | }, |
| 617 | "url": { |
| 618 | "type": "string" |
| 619 | } |
| 620 | }, |
| 621 | "required": [ |
| 622 | "elicitationId", |
| 623 | "message", |
| 624 | "mode", |
| 625 | "url" |
| 626 | ], |
| 627 | "type": "object" |
| 628 | } |
| 629 | ], |
| 630 | "properties": { |
| 631 | "serverName": { |
| 632 | "type": "string" |
| 633 | }, |
| 634 | "threadId": { |
| 635 | "type": "string" |
| 636 | }, |
| 637 | "turnId": { |
| 638 | "description": "Active Codex turn when this elicitation was observed, if app-server could correlate one.\n\nThis is nullable because MCP models elicitation as a standalone server-to-client request identified by the MCP server request id. It may be triggered during a turn, but turn context is app-server correlation rather than part of the protocol identity of the elicitation itself.", |
| 639 | "type": [ |
| 640 | "string", |
| 641 | "null" |
| 642 | ] |
| 643 | } |
| 644 | }, |
| 645 | "required": [ |
| 646 | "serverName", |
| 647 | "threadId" |
| 648 | ], |
| 649 | "title": "McpServerElicitationRequestParams", |
| 650 | "type": "object" |
| 651 | } |