Inline MCP code mode preamble constant

This commit is contained in:
Vivian Fang
2026-04-09 03:50:10 -07:00
parent b291e8d1ef
commit 5405e1b949

View File

@@ -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(),