This commit is contained in:
Matthew Zeng
2026-03-05 23:09:20 -08:00
parent 84f66b3309
commit b699ec52b3
23 changed files with 512 additions and 343 deletions

View File

@@ -8,7 +8,7 @@
"type": "string"
},
"McpElicitationBooleanSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"type": [
@@ -44,6 +44,7 @@
"type": "string"
},
"McpElicitationConstOption": {
"additionalProperties": false,
"properties": {
"const": {
"type": "string"
@@ -65,29 +66,39 @@
},
{
"$ref": "#/definitions/McpElicitationMultiSelectEnumSchema"
},
{
"$ref": "#/definitions/McpElicitationLegacyTitledEnumSchema"
}
]
},
"McpElicitationIntegerSchema": {
"additionalProperties": true,
"McpElicitationLegacyTitledEnumSchema": {
"additionalProperties": false,
"properties": {
"default": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"maximum": {
"format": "int64",
"type": [
"integer",
"null"
]
"enum": {
"items": {
"type": "string"
},
"type": "array"
},
"minimum": {
"format": "int64",
"enumNames": {
"items": {
"type": "string"
},
"type": [
"integer",
"array",
"null"
]
},
@@ -98,20 +109,15 @@
]
},
"type": {
"$ref": "#/definitions/McpElicitationIntegerType"
"$ref": "#/definitions/McpElicitationStringType"
}
},
"required": [
"enum",
"type"
],
"type": "object"
},
"McpElicitationIntegerType": {
"enum": [
"integer"
],
"type": "string"
},
"McpElicitationMultiSelectEnumSchema": {
"anyOf": [
{
@@ -123,8 +129,15 @@
]
},
"McpElicitationNumberSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"format": "double",
"type": [
"number",
"null"
]
},
"description": {
"type": [
"string",
@@ -162,7 +175,8 @@
},
"McpElicitationNumberType": {
"enum": [
"number"
"number",
"integer"
],
"type": "string"
},
@@ -183,17 +197,14 @@
{
"$ref": "#/definitions/McpElicitationNumberSchema"
},
{
"$ref": "#/definitions/McpElicitationIntegerSchema"
},
{
"$ref": "#/definitions/McpElicitationBooleanSchema"
}
]
},
"McpElicitationSchema": {
"additionalProperties": true,
"description": "Typed form schema for MCP `elicitation/create` requests.\n\nThis mirrors the `requestedSchema` shape from the MCP `ElicitRequestFormParams` schema while preserving extension keywords such as Codex-specific `x-codex-*` metadata.",
"additionalProperties": false,
"description": "Typed form schema for MCP `elicitation/create` requests.\n\nThis matches the `requestedSchema` shape from the MCP 2025-11-25 `ElicitRequestFormParams` schema.",
"properties": {
"$schema": {
"type": [
@@ -201,12 +212,6 @@
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"properties": {
"additionalProperties": {
"$ref": "#/definitions/McpElicitationPrimitiveSchema"
@@ -222,12 +227,6 @@
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"type": {
"$ref": "#/definitions/McpElicitationObjectType"
}
@@ -258,8 +257,14 @@
"type": "string"
},
"McpElicitationStringSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
@@ -314,6 +319,7 @@
"type": "string"
},
"McpElicitationTitledEnumItems": {
"additionalProperties": false,
"properties": {
"anyOf": {
"items": {
@@ -328,7 +334,7 @@
"type": "object"
},
"McpElicitationTitledMultiSelectEnumSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"items": {
@@ -381,7 +387,7 @@
"type": "object"
},
"McpElicitationTitledSingleSelectEnumSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"type": [
@@ -418,6 +424,7 @@
"type": "object"
},
"McpElicitationUntitledEnumItems": {
"additionalProperties": false,
"properties": {
"enum": {
"items": {
@@ -436,7 +443,7 @@
"type": "object"
},
"McpElicitationUntitledMultiSelectEnumSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"items": {
@@ -489,7 +496,7 @@
"type": "object"
},
"McpElicitationUntitledSingleSelectEnumSchema": {
"additionalProperties": true,
"additionalProperties": false,
"properties": {
"default": {
"type": [
@@ -540,19 +547,13 @@
"type": "string"
},
"requestedSchema": {
"anyOf": [
{
"$ref": "#/definitions/McpElicitationSchema"
},
{
"type": "null"
}
]
"$ref": "#/definitions/McpElicitationSchema"
}
},
"required": [
"message",
"mode"
"mode",
"requestedSchema"
],
"type": "object"
},