Auto-approve Codex title MCP tool

This commit is contained in:
weishu
2026-06-08 13:44:26 +08:00
parent fa363c2f6c
commit deb05bb783
7 changed files with 84 additions and 5 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import {
import { codexSystemPrompt } from './utils/systemPrompt';
import type { ReasoningEffort } from './appServerTypes';
import { resolveCodexCommand } from './utils/codexExecutable';
import type { McpServersConfig } from './utils/buildHapiMcpBridge';
/**
* Filter out 'resume' subcommand which is managed internally by hapi.
@@ -38,7 +39,7 @@ export async function codexLocal(opts: {
sandbox?: 'read-only' | 'workspace-write' | 'danger-full-access';
onSessionFound: (id: string) => void;
codexArgs?: string[];
mcpServers?: Record<string, { command: string; args: string[] }>;
mcpServers?: McpServersConfig;
sessionHook?: {
port: number;
token: string;