mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Inline MCP code mode preamble constant
This commit is contained in:
@@ -201,7 +201,7 @@ pub fn build_exec_tool_description(
|
||||
if include_shared_mcp_types {
|
||||
sections.push(format!(
|
||||
"Shared MCP Types:\n```ts\n{}\n```",
|
||||
render_mcp_typescript_preamble()
|
||||
MCP_TYPESCRIPT_PREAMBLE
|
||||
));
|
||||
}
|
||||
|
||||
@@ -427,10 +427,6 @@ type mcp_result<TStructured = unknown> = {
|
||||
structuredContent?: TStructured;
|
||||
};"#;
|
||||
|
||||
fn render_mcp_typescript_preamble() -> &'static str {
|
||||
MCP_TYPESCRIPT_PREAMBLE
|
||||
}
|
||||
|
||||
fn render_json_schema_to_typescript_inner(schema: &JsonValue) -> String {
|
||||
match schema {
|
||||
JsonValue::Bool(true) => "unknown".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user