Skip to main content
Glama
README.md
<!-- mcp-name: io.github.tanbopiao/iee-engine -->
# IEE 引擎 · 本体-架构-算子补全 · iee-engine

> 铭文:名定体生,体定用成

## English

**iee-engine** is a lightweight MCP (Model Context Protocol) server that turns a named concept into a complete implementation scaffold in three traceable stages:

1. **derive** — name + semantics → logical ontology (elements, relations, constraints)
2. **blueprint** — ontology → layered architecture (registry / operators / verification)
3. **emit** — architecture → operator skeleton (function stubs, dispatch table, test stubs)

Every stage keeps provenance, so the whole chain from naming to code is auditable. Pure Python standard library, zero dependencies, single stdio transport.

### Install

```bash
pip install iee-engine
```

### Run as MCP server (stdio)

```bash
iee-engine-mcp
```

Or in an MCP client config:

```json
{
  "mcpServers": {
    "iee-engine": {
      "command": "iee-engine-mcp",
      "args": []
    }
  }
}
```

### Use as a library

```python
from iee_engine.core import derive, blueprint, emit

ontology = derive(name="ledger", semantics="append-only entries", elements=["register", "resolve"], constraints=["entries are immutable"])
arch = blueprint(ontology)
skeleton = emit(arch)
```

### Tools

| Tool | Input | Output |
| --- | --- | --- |
| `derive` | `name`, `semantics`, `elements[]`, `constraints[]` | logical ontology |
| `blueprint` | `ontology` | layered architecture |
| `emit` | `architecture` | operator skeleton with dispatch keys |

## 逻辑本体

命名与语义入引擎,三段映射:命名→逻辑本体(要素/关系/约束)→架构(分层)→算子骨架;段段留痕可溯。

## 架构

```
补全引擎(三段映射)
  ├─ derive:命名+语义 → 逻辑本体
  ├─ blueprint:本体 → 架构分层
  └─ emit:架构 → 算子骨架(含注册表与测试桩)
```

## 算子注册

- `derive`
- `blueprint`
- `emit`

## 道统谱系

iee-engine 是道统工具族的一员,同族还有宗源根(谱系总册)、宗源编年史(时序记事册)、天罡壶(淬炼熔炉)、地格(空间格网)、关台(查验放行)、欧米伽决策(终局裁断)。命名取自华夏道统语义,详见各仓。