# IntentOrch **Repository Path**: mcpilotx/IntentOrch ## Basic Information - **Project Name**: IntentOrch - **Description**: Intent-driven MCP orchestration engine - **Primary Language**: TypeScript - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-13 - **Last Updated**: 2026-04-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
意图驱动的 MCP 编排引擎 — 用自然语言,驱动一切
中文 | English
左:工作流管理 | 右:MCP服务管理
### 🔧 CLI + Daemon + Web 三端一体 ```bash # 1.安装 npm install -g @intentorch/cli && npm install -g @intentorch/web # 2.配置大模型(以deepseek为例) intorch config set provider deepseek intorch config set model deepseek-chat intorch config set apiKey sk-xxx(替换为你自己的apiKey) # 3.启动daemon intorch daemon start # 4.拉取mcp服务 intorch pull Joooook/12306-mcp # 5.启动mcp服务 intorch start Joooook/12306-mcp # 6.执行自然语言驱动的任务 intorch run "查询明天广州到南宁的高铁票" intorch dashboard(想要通过web端控制台执行任务时可通过此命令启动) ``` --- ## 🏗️ 架构设计 ``` ┌─────────────────────────────────────────────────────────┐ │ 用户交互层 │ │ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │ │ │ CLI │ │ Daemon │ │ Web Dashboard │ │ │ │ 命令行 │ │ 守护进程 │ │ 可视化控制台 │ │ │ └────┬─────┘ └────┬─────┘ └────────┬─────────┘ │ └───────┼───────────────┼───────────────────┼──────────────┘ │ │ │ ┌───────┴───────────────┴───────────────────┴──────────────┐ │ 核心引擎层 │ │ │ │ ┌────────────────────────────────────────────────────┐ │ │ │ 意图驱动编排引擎 (Intent Engine) │ │ │ │ │ │ │ │ 自然语言 → 意图解析 → 工具匹配 → 工作流编排 → 执行 │ │ │ └────────────────────────────────────────────────────┘ │ │ │ │ ┌──────────────┐ ┌──────────────┐ ┌───────────────┐ │ │ │ Workflow │ │ Process │ │ Runtime │ │ │ │ Engine │ │ Manager │ │ Adapter │ │ │ │ 工作流引擎 │ │ 进程管理 │ │ 运行时适配 │ │ │ └──────────────┘ └──────────────┘ └───────────────┘ │ │ │ │ ┌──────────────┐ ┌──────────────┐ ┌───────────────┐ │ │ │ Tool │ │ Secret │ │ Config │ │ │ │ Registry │ │ Manager │ │ Manager │ │ │ │ 工具注册表 │ │ 密钥管理 │ │ 配置管理 │ │ │ └──────────────┘ └──────────────┘ └───────────────┘ │ └──────────────────────────────────────────────────────────┘ │ │ ┌───────┴────────────────────┴─────────────────────────────┐ │ MCP 生态层 │ │ ┌──────────┐ ┌──────────┐ ┌──────────────────────┐ │ │ │ 12306 │ │ File │ │ 1000+ MCP │ │ │ │ MCP │ │ System │ │ Servers... │ │ │ └──────────┘ └──────────┘ └──────────────────────┘ │ └──────────────────────────────────────────────────────────┘ ``` ### 核心模块 | 模块 | 说明 | |------|------| | **@intentorch/core** | 核心业务逻辑:意图解析、工作流引擎、MCP 客户端、进程管理 | | **@intentorch/cli** | 命令行工具:Server 管理、工作流管理、守护进程控制 | | **@intentorch/web** | Web 管理控制台:React + TypeScript + Tailwind CSS | --- ## 🚦 快速开始 ### 前置要求 - Node.js >= 18.0.0 - pnpm >= 8.0.0 ```bash # 1.安装 npm install -g @intentorch/cli && npm install -g @intentorch/web # 2.配置大模型(以deepseek为例) intorch config set provider deepseek intorch config set model deepseek-chat intorch config set apiKey sk-xxx(替换为你自己的apiKey) # 3.启动daemon intorch daemon start # 4.拉取mcp服务 intorch pull Joooook/12306-mcp # 5.启动mcp服务 intorch start Joooook/12306-mcp # 6.执行自然语言驱动的任务 intorch run "查询明天广州到南宁的高铁票" intorch dashboard(想要通过web端控制台执行任务时可通过此命令启动) ``` --- ## 📸 场景示例 ### 场景一:一句话查火车票 ``` 你: "帮我查一下明天从广州到长沙的高铁票" IntentOrch: ✅ 解析意图 → 查询火车票 ✅ 匹配工具 → 12306-mcp / get-tickets ✅ 参数映射 → date=明天, from=广州, to=长沙, filter=高铁 ✅ 执行结果 → 返回 G 字头列车时刻表和余票信息 ``` ### 场景二:多步骤自动化 ``` 你: "每天早上8点检查服务器状态,如果 CPU 超过 80% 就发送告警" IntentOrch: ✅ 解析为 3 个原子意图 ├─ 步骤1: 获取服务器 CPU 使用率 ├─ 步骤2: 判断是否超过阈值 └─ 步骤3: 发送告警通知 ✅ 自动编排依赖关系 ✅ 生成可定时执行的工作流 ``` ### 场景三:组合多个 MCP Server ``` 你: "搜索最新的 AI 新闻,总结要点,保存到本地文件" IntentOrch: ✅ 步骤1: search-web → 搜索 AI 新闻 ✅ 步骤2: ai-summarize → 总结要点 ✅ 步骤3: filesystem → 保存到本地 ✅ 自动处理步骤间的数据传递 ``` --- ## 🧩 生态兼容 IntentOrch 兼容所有遵循 [Model Context Protocol](https://modelcontextprotocol.io) 标准的 MCP Server: - 📊 **数据库** — PostgreSQL、MySQL、SQLite 查询 - 📁 **文件系统** — 文件读写、目录操作 - 🌐 **网络服务** — HTTP 请求、API 调用 - 🚄 **交通出行** — 12306 查票、航班查询 - 📰 **信息获取** — 新闻、天气、百科 - 🛠️ **开发工具** — Git 操作、代码分析 --- ## 📄 许可证 本项目基于 [Apache 2.0](LICENSE) 许可证开源。 ---IntentOrch — 从"告诉计算机怎么做"到"告诉计算机你想要什么"