Mikro Run, Jump & Fly AI Ontology & MCP Connector
Mikro Run, Mikro Jump and Mikro Fly store operational transactions inside compact prefixed SQL Server columns (cha_*, sth_*, sip_*, ise_*) where dozens of document types, normal/return flags and multi-discount cascades (isk1..isk6) live in single integer codes. Generic Text-to-SQL tools misread cha_evrak_tip and sth_cins on the first prompt. Naditu ships a complete Mikro semantic dictionary and Mikro API V2 write gate.
SQL Server Read Replica · Evrak Tipi Enum Dictionary
Human-approved via Mikro API V2 REST Service
Canonical ontology mapping
Business objects & field-level governance.
Instead of exposing raw physical tables to an LLM, Naditu assembles governed domain objects and enforces caller role policies at query time.
Cari Account & Aging Ledger
Physical tables / entitiesCARI_HESAPLAR · CARI_HESAP_HAREKETLERI · CARI_HESAP_ADRESLERIGovernance & masking rulecha_srmrkkodu responsibility-center filter & credit limit rulesOrder & Open Backlog
Physical tables / entitiesSIPARISLER · CARI_HESAPLAR · STOKLARGovernance & masking ruleRemaining deliverable quantity (sip_miktar - sip_teslim_miktar) & margin maskStock Movement & Warehouse Total
Physical tables / entitiesSTOKLAR · STOK_HAREKETLERI · DEPOLAR · BARKOD_TANIMLARIGovernance & masking rulePurchase price & cost columns restricted to Purchasing & FinanceProduction Work Order & Recipe (Fly)
Physical tables / entitiesIS_EMIRLERI · URUN_RECETELERI · URETIM_ROTA_PLANLARIGovernance & masking ruleRecipe cost & workstation rates masked for general roles
| Business object | Physical tables / entities | Governance & masking rule |
|---|---|---|
| Cari Account & Aging Ledger | CARI_HESAPLAR · CARI_HESAP_HAREKETLERI · CARI_HESAP_ADRESLERI | cha_srmrkkodu responsibility-center filter & credit limit rules |
| Order & Open Backlog | SIPARISLER · CARI_HESAPLAR · STOKLAR | Remaining deliverable quantity (sip_miktar - sip_teslim_miktar) & margin mask |
| Stock Movement & Warehouse Total | STOKLAR · STOK_HAREKETLERI · DEPOLAR · BARKOD_TANIMLARI | Purchase price & cost columns restricted to Purchasing & Finance |
| Production Work Order & Recipe (Fly) | IS_EMIRLERI · URUN_RECETELERI · URETIM_ROTA_PLANLARI | Recipe cost & workstation rates masked for general roles |
Why raw SQL & generic MCP fail
Three physical schema traps solved in the layer.
Every operational system carries implicit join keys, status discriminators and multi-company rules that ungrounded Text-to-SQL guesses wrong.
- 01
Prefixed integer discriminators (sth_tip, sth_cins, sth_normal_iade, cha_evrak_tip)
STOK_HAREKETLERI and CARI_HESAP_HAREKETLERI encode entry/exit direction, wholesale vs retail, return vs normal and 60+ document kinds as small integers. Naditu binds the verified Mikro enum table.
- 02
Six-tier discount columns (sth_iskonto1..6) and net unit price math
Line gross amount (sth_tutar) excludes cascading header/line discounts stored across six separate columns. Computing net revenue without subtracting isk1..isk6 overstates sales.
- 03
GUID / RECno version changes across Mikro V15, V16 and V17
Primary and relation keys evolved from integer RECno columns in V15 to Guid keys (sth_Guid, cha_Guid) in V16/V17. Naditu supports your exact Mikro schema generation.
Common engineering questions.
Which Mikro editions and versions does Naditu support?
Mikro Run, Mikro Jump and Mikro Fly (V16 and V17, plus legacy V15/Enerji/Standart SQL Server schemas) are supported on-premises.
How are new orders or stock slips written back to Mikro safely?
Writes execute through official Mikro API V2 endpoints after human approval so document series/sequence numbers, taxes and warehouse balances remain valid.
Can Mikro ERP be connected alongside e-commerce platforms like Trendyol, Ticimax or ikas?
Yes. Barcode and stock-code joins compare live Mikro warehouse balances against marketplace listings to catch stock drift immediately.
Engineering deep dives
Related architecture notes from the blog.
Connecting Uyumsoft, Mikro, and DIA ERP to AI
How to connect Uyumsoft LioX, Mikro Jump and Fly, and DIA Cloud ERP to AI agents safely: WCF SOAP, daily MD5 tokens, WS kontor, and write gates.
Fixing Ticimax, ikas, and Trendyol ERP stock drift in AI
How omnichannel retailers stop phantom inventory, penny rounding errors, and duplicate orders across Ticimax, ikas, Trendyol, and ERP AI agents.