// hosts/codex/rest-shim.ts — REST/OpenAPI shim (SPEC-592)
//
// DECISION GATE OUTCOME: Codex supports MCP-over-stdio natively.
// Evidence: https://developers.openai.com/codex/mcp documents both STDIO and
// Streamable HTTP MCP servers. As of April 2026, Codex expanded MCP support
// with namespaced registration and parallel-call opt-in.
//
// This file is intentionally a stub. MCP-over-stdio is the canonical transport.
// If future Codex enterprise versions restrict stdio access (e.g., cloud-only
// deployments), implement an HTTPS shim here using Node's built-in `node:http`
// module (no new runtime deps). The shim would:
//   1. Accept POST /tools/:name with zod-validated body
//   2. Delegate to the registered MCP tool handler
//   3. Return { content: [...] } in MCP-compatible format
//
// See website/en/guide/hosts/codex.md — "Decision Gate" section for full rationale.
export const REST_SHIM_STATUS = 'disabled';
export const REST_SHIM_REASON = 'Codex supports MCP-over-stdio natively. REST shim is not needed.';
//# sourceMappingURL=rest-shim.js.map