MCP with Codex
Install
Install the runtime first:
npx ontoskills install mcpThis installs:
~/.ontoskills/bin/ontomcpFast bootstrap
The recommended setup is:
npx ontoskills install mcp --codexManual equivalent:
codex mcp add ontomcp -- ~/.ontoskills/bin/ontomcpCodex global setup uses the same local stdio command as other clients:
~/.ontoskills/bin/ontomcpIntegration model
Codex-based workflows use the same MCP contract as other local clients:
- launch
ontomcpas a localstdiosubprocess - point it at the managed ontology home in
~/.ontoskills/ontologies - let the client call the five public tools
The stable executable to register is:
~/.ontoskills/bin/ontomcpRecommended runtime command
~/.ontoskills/bin/ontomcp --ontology-root ~/.ontoskills/ontologiesIf your Codex client supports environment-based configuration, the equivalent setting is:
ONTOMCP_ONTOLOGY_ROOT=~/.ontoskills/ontologiesTools exposed
search_skillsget_skill_contextevaluate_execution_planquery_epistemic_rulessearch_intents
Notes
- The MCP server reads compiled
.ttlontologies, not rawSKILL.md - If you want custom skills, install the compiler too:
npx ontoskills install core- Then compile or import source skills — they are auto-enabled on install for MCP access
--codexautomates Codex global setup only; for repository-local Codex MCP config,ontoskillscurrently prints manual steps instead of forcing a non-standard config file
Practical rule
Treat Codex integration as a standard local stdio MCP registration whose command points at:
~/.ontoskills/bin/ontomcpThe exact UI or config file shape may vary across Codex builds, but the server command and ontology root remain the same.