MCP · OpenAI Codex

Deslint for Codex

OpenAI Codex is great at one-shotting whole features. Without a verification layer, every feature is also a fresh opportunity for arbitrary Tailwind values, off-palette colours, and missing ARIA attributes. Deslint's MCP server gives Codex a deterministic callable tool surface — analyze_and_fix, compliance_check, enforce_budget — it can invoke before committing.

Install

Any MCP-compatible Codex client accepts the standard MCP config. Add the deslint entry to your Codex MCP config file:

{
  "mcpServers": {
    "deslint": {
      "command": "npx",
      "args": ["-y", "@deslint/mcp"]
    }
  }
}

If your Codex client hasn't enabled MCP yet, the deslint CLI runs the same rule set — run npx @deslint/cli scan in your Codex-generated diff to get the identical output.

What Codex gets from deslint

Example loop

// Codex plans the change
tools/call deslint.compliance_check
// deslint returns baseline
health 82, coverage 67%
// Codex writes the diff, then re-checks
tools/call deslint.analyze_and_fix
4 auto-fixed, new health 85

Data boundary

Deslint's MCP server runs entirely on the host machine and does not call OpenAI, Anthropic, or any other provider. Even if your Codex client is cloud-hosted, deslint itself processes your code locally. For regulated teams running Codex on isolated infrastructure, deslint ships as a single stdio binary with no network dependency.

See all MCP toolsClaude Code setupCursor setupWindsurf setup