Skip to content

Commit b402830

Browse files
author
jovanSAPFIONEER
committed
feat: add OpenAI Codex MCP integration (.codex/config.toml + docs)
1 parent 4d7fb89 commit b402830

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

.codex/config.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Network-AI — OpenAI Codex MCP server (project-scoped)
2+
#
3+
# Codex auto-loads this file for trusted projects (CLI and IDE extension).
4+
# It registers the Network-AI MCP server over stdio, exposing the blackboard,
5+
# federated budget, permission-token, and audit-log tools.
6+
#
7+
# To register globally instead, copy the [mcp_servers.network-ai] block into
8+
# ~/.codex/config.toml. Or run:
9+
# codex mcp add network-ai -- npx -y -p network-ai network-ai-server --stdio
10+
#
11+
# startup_timeout_sec is raised from the default (10s) because the first run
12+
# may download the package via npx.
13+
14+
[mcp_servers.network-ai]
15+
command = "npx"
16+
args = ["-y", "-p", "network-ai", "network-ai-server", "--stdio"]
17+
startup_timeout_sec = 30

QUICKSTART.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,15 @@ Install Network-AI as a [Claude Code](https://code.claude.com) plugin — the MC
686686

687687
Every Network-AI tool (`blackboard_read`, `budget_status`, `audit_query`, …) then loads natively. The plugin runs `npx -y -p network-ai network-ai-server --stdio`. Validate the manifests locally with `claude plugin validate .`.
688688

689+
**OpenAI Codex (CLI & IDE):**
690+
Add Network-AI as a Codex MCP server with one command:
691+
692+
```bash
693+
codex mcp add network-ai -- npx -y -p network-ai network-ai-server --stdio
694+
```
695+
696+
Or commit it per-project — the repo root ships a [`.codex/config.toml`](.codex/config.toml) that registers the same stdio server for trusted checkouts. Run `/mcp` in the Codex TUI to verify it connected.
697+
689698
---
690699

691700
## Fan-Out / Fan-In Pattern

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,30 @@ Validate the manifests locally with `claude plugin validate .`.
282282

283283
---
284284

285+
## Use with OpenAI Codex
286+
287+
Network-AI also runs as an [OpenAI Codex](https://developers.openai.com/codex) MCP server — in both the Codex CLI and the IDE extension. The same tools that load in Claude Code become available in Codex.
288+
289+
**Add it with one command** (uses the published npm package):
290+
291+
```bash
292+
codex mcp add network-ai -- npx -y -p network-ai network-ai-server --stdio
293+
```
294+
295+
In the Codex TUI, run `/mcp` to confirm `network-ai` is connected.
296+
297+
**Or scope it to a project** — the repo root ships a [`.codex/config.toml`](.codex/config.toml) so any trusted checkout picks the server up automatically. To register it globally instead, drop the same block into `~/.codex/config.toml`:
298+
299+
```toml
300+
[mcp_servers.network-ai]
301+
command = "npx"
302+
args = ["-y", "-p", "network-ai", "network-ai-server", "--stdio"]
303+
```
304+
305+
Either route exposes the full tool set (`blackboard_read`, `budget_status`, `audit_query`, `token_create`, …) over stdio MCP — no API keys, no running server to manage.
306+
307+
---
308+
285309
## CLI
286310

287311
Control Network-AI directly from the terminal — no server required. The CLI imports the same core engine used by the MCP server.

0 commit comments

Comments
 (0)