MCP With Codex
OntoMCP With Codex
Install
Install the runtime first:
npx ontoskills install mcpThis installs:
~/.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/ontoskills - let the client call the four public tools
The stable executable to register is:
~/.ontoskills/bin/ontomcpRecommended Runtime Command
~/.ontoskills/bin/ontomcp --ontology-root ~/.ontoskills/ontoskillsIf your Codex client supports environment-based configuration, the equivalent setting is:
ONTOSKILLS_MCP_ONTOLOGY_ROOT=~/.ontoskills/ontoskillsTools Exposed
search_skillsget_skill_contextevaluate_execution_planquery_epistemic_rules
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 and enable them before expecting Codex to see them through OntoMCP
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.