npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codex-cli-architect-mcp

v0.2.1

Published

MCP server for OpenAI Codex CLI - Enable AI-powered coding assistance through Model Context Protocol

Readme

Codex CLI Architect MCP

An MCP (Model Context Protocol) server implementation for OpenAI's Codex CLI, enabling AI-powered coding assistance through standardized tool interfaces.

npm version License: MIT

Features

  • Technical Consultation: Get expert advice on architecture, design patterns, and technology choices
  • Code Review: Comprehensive code quality and security analysis
  • Code Explanation: Clear explanations of code snippets and programming concepts
  • Read-Only File Access: Can read files in the current workspace (directory and subdirectories)
  • Write Protection: Uses Codex CLI's read-only sandbox mode to prevent file modifications
  • Sandboxed Execution: Runs with platform-specific sandboxing (Apple Seatbelt on macOS, Landlock/seccomp on Linux)
  • No Code Modification: Focuses on analysis and advice, not code generation

Prerequisites

Usage with MCP Clients

Claude Code

Register the MCP server with Claude Code:

# Using NPM package
claude mcp add codex -- npx codex-cli-architect-mcp

# With custom model configuration
claude mcp add codex -e CODEX_MODEL=gpt-5 -- npx codex-cli-architect-mcp

# With OpenAI API key
claude mcp add codex -e OPENAI_API_KEY=your-api-key-here -- npx codex-cli-architect-mcp

Other MCP Clients

Configure the MCP server in your client's settings file:

{
    "mcpServers": {
        "codex": {
            "command": "npx",
            "args": ["codex-cli-architect-mcp"],
            "env": {
                "OPENAI_API_KEY": "your-api-key-here",
                "CODEX_MODEL": "gpt-5",
                "CODEX_TIMEOUT": "300000"
            }
        }
    }
}

Available Tools

The MCP server provides the following tools:

  1. codex_consult - Technical consultation for architecture, design patterns, and implementation strategies
  2. codex_review - Comprehensive code review for quality, security, and best practices
  3. codex_explain - Get clear explanations of code snippets or programming concepts

These tools are exposed through the MCP protocol and can be used by any MCP-compatible client.

Configuration

Environment variables:

  • OPENAI_API_KEY - OpenAI API key for authentication (optional, uses ChatGPT login if not provided)
  • CODEX_MODEL - Model to use (default: gpt-5)
  • CODEX_TIMEOUT - Execution timeout in milliseconds (default: 300000)

Development

# Install dependencies
npm install

# Build
npm run build

# Development mode
npm run dev

# Run tests
npm test

License

MIT