Codex
Use provider tools in Codex with a local skill and MCP server connection. Codex integration gives you:
- Skill file — Famasi provider instructions at
.famasi/skills/codex/famasi-provider/SKILL.md - AGENTS.md — Codex-level agent directive (created or appended)
- MCP server — Connection to
https://mcp.famasi.ai/mcp
Install
npx @famasi/agents@latest install codexFiles created
.mcp.json # MCP server config.famasi/skills/codex/famasi-provider/SKILL.md # Skill instructionsAGENTS.md # Agent directive (upserted)If AGENTS.md already exists, the installer appends a ## Famasi Provider section. If not, it creates one:
## Famasi Provider- Use the local skill at `.famasi/skills/codex/famasi-provider/SKILL.md`.- Use the `famasi-provider` MCP server before guessing endpoint shapes.- Run `npx @famasi/agents doctor` when the install state is unclear.The installer only appends if ## Famasi Provider isn’t already present — safe to run multiple times.
Authenticate
Link provider:
npx @famasi/agents@latest link provider --provider-id YOUR_PROVIDER_IDAPI key:
export FAMASI_PROVIDER_API_KEY=pk_live_...Usage
Once installed and linked, use natural language in Codex:
"Search the formulary for metformin""Show my wallet balance""List orders from this week""Create a customer with phone +2348012345678"Codex reads the skill file and uses the MCP server for all API calls.
Troubleshooting
“Skill not found”
npx @famasi/agents@latest doctorCheck that .famasi/skills/codex/famasi-provider/SKILL.md exists.
“MCP server not responding”
- Verify
.mcp.jsonexists and points tohttps://mcp.famasi.ai/mcp - Check your API key is set
“AGENTS.md conflict”
- The installer only appends if
## Famasi Providerisn’t already present - Safe to run multiple times