How gura105/operational-ontology works
Operational Ontology is a TypeScript reference implementation for modeling business objects, links, read functions, and governed actions over systems of record. The principal workflow integrates legacy data into a shared model, indexes it for reads and queries, then routes changes through validated, audited actions to ontology-owned storage or back to the source owner. MCP exposes model-derived tools to agent consumers. The README documents the orders example’s workflow; source excerpts show the core runtime, query helpers, and MCP adapter, but not the example adapter implementations.
Main entry points: core.ts Runtime and actions · mcp.ts MCP tools · index.ts Public API · integrate.ts Orders integration
Components 10
Data integration
- Orders integration
examples/orders/integrate.ts - Orders ontology
examples/orders/ontology.ts
Ontology runtime
- Runtime and actions
src/core.ts - Ontology state
src/core.ts - ERP write-back
examples/orders/erp-adapter.ts - Sets and aggregates
src/query.ts
Consumer interfaces
- MCP tools
src/mcp.ts - Public API
src/index.ts
Other components
- Legacy order ERPs
- Apps and agents
Connections 12
- Legacy order ERPs → Orders integration: supplies data
README.md - Orders integration → Runtime and actions: integrates data
README.md - Orders ontology → Runtime and actions: defines model
README.md - Runtime and actions → Ontology state: reads and writes
src/core.ts - Runtime and actions → Sets and aggregates: aggregates sets
src/core.ts - Runtime and actions → ERP write-back: writes to owner
README.md - Public API → Runtime and actions: exports runtime
src/index.ts - Public API → MCP tools: exports adapter
src/index.ts - MCP tools → Runtime and actions: dispatches tools
src/mcp.ts - MCP tools → Sets and aggregates: classifies fields
src/mcp.ts - Apps and agents → Public API: uses model
README.md - Apps and agents → MCP tools: calls tools
README.md