mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
Added preliminary MCP elicitations support, gated behind elicitation_apps_mcp_gateway experimental feature
This commit is contained in:
@@ -7,6 +7,7 @@ use crate::protocol::FileChange;
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
use ts_rs::TS;
|
||||
|
||||
/// Proposed execpolicy change to allow commands starting with this prefix.
|
||||
@@ -102,9 +103,10 @@ pub struct ElicitationRequestEvent {
|
||||
#[ts(type = "string | number")]
|
||||
pub id: RequestId,
|
||||
pub message: String,
|
||||
// TODO: MCP servers can request we fill out a schema for the elicitation. We don't support
|
||||
// this yet.
|
||||
// pub requested_schema: ElicitRequestParamsRequestedSchema,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub requested_schema: Option<Value>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub url: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
||||
|
||||
Reference in New Issue
Block a user