@guyghost/swarm-dao-codex-adapter
v0.2.0
Published
Swarm DAO governance adapter for OpenAI Codex — MCP server, native config.toml, and AGENTS.md
Maintainers
Readme
@guyghost/swarm-dao-codex-adapter
Swarm DAO governance adapter for OpenAI Codex (Codex CLI).
It bundles:
- the Swarm DAO MCP server (
swarm-dao-codexbin) - a native
config.tomlsnippet for[mcp_servers] - an
AGENTS.mdinstructions file - a
HostAdapterimplementation for programmatic use
Install
npm install @guyghost/swarm-dao-codex-adapterConfigure
MCP server
Append the block from config/mcp-config.toml to your Codex config
(~/.codex/config.toml or the project-local config):
[mcp_servers.swarm_dao]
command = "npx"
args = ["-y", "@guyghost/swarm-dao-codex-adapter"]
env = { DAO_ROOT = "." }The dao_* tools then become available to Codex as the swarm_dao MCP server.
Instructions
Append the contents of AGENTS.md to your repo's AGENTS.md so Codex follows
the DAO workflow.
Run the server directly
swarm-dao-codex # uses $DAO_ROOT or cwdProgrammatic API
import { createCodexHostAdapter, startCodexServer } from "@guyghost/swarm-dao-codex-adapter";
const adapter = createCodexHostAdapter("/path/to/repo");
await startCodexServer();License
MIT
