[English] | 简体中文
IntentOrch is a high-performance, intent-driven orchestration engine designed for the Model Context Protocol (MCP) ecosystem. It transforms vague natural language instructions into precise, executable, and resilient tool-calling workflows.
Current LLM tool-calling often suffers from "Over-decomposition" (wasting tokens on redundant steps) or "Schema Mismatch" (naming conflicts between different MCP servers). IntentOrch solves these with a professional-grade orchestration layer.
- Minimal Decomposition Principle: Intelligent pre-analysis to ensure the simplest possible execution path. Avoids redundant steps and significantly reduces LLM latency and cost.
- Adaptive Parameter Mapping: A semantic-aware mapping engine that bridges the gap between LLM reasoning and heterogeneous MCP Tool Schemas (e.g., automatically mapping
filenametopath). - Resilient DAG Engine: Executes tasks using Directed Acyclic Graphs (DAG) with built-in dependency tracking, topological sorting, and sophisticated error recovery.
- Hybrid Intent Parsing: Combines ultra-fast rule-based heuristics with deep LLM reasoning to achieve the optimal balance between performance and accuracy.
npm install @mcpilotx/intentorchExperience the magic of multi-tool orchestration in just a few lines of code.
import { createSDK } from '@mcpilotx/intentorch';
const sdk = createSDK();
// 1. Configure your AI brain
await sdk.configureAI({
provider: 'openai', // or 'deepseek', 'ollama', etc.
apiKey: process.env.OPENAI_API_KEY,
model: 'gpt-4o'
});
// 2. Connect multiple MCP Servers
await sdk.connectMCPServer({
name: 'github',
transport: { type: 'stdio', command: 'npx', args: ['-y', '@modelcontextprotocol/server-github'] }
});
await sdk.connectMCPServer({
name: 'slack',
transport: { type: 'stdio', command: 'npx', args: ['-y', '@modelcontextprotocol/server-slack'] }
});
// 3. Initialization CloudIntentEngine
await sdk.initCloudIntentEngine();
// 4. Orchestrate complex intent
const result = await sdk.executeWorkflowWithTracking(
"Analyze the latest PR in mcpilotx/intentorch and send a summary report to Slack #dev-channel"
);
console.log('Workflow Finished:', result.success);IntentOrch operates as an intelligent middleware between your Application and the MCP ecosystem:
graph TD
User([User Intent]) --> Selector{Parser Selector}
Selector -->|Simple| Rule[Rule-based Parser]
Selector -->|Complex| Cloud[Cloud LLM Engine]
Cloud --> MinDec[Minimal Decomposition Filter]
MinDec --> DAG[DAG Workflow Generator]
DAG --> ParamMap[Adaptive Parameter Mapper]
ParamMap --> Validator[Pre-execution Validator]
Validator --> MCP[MCP Tool Execution]
MCP --> Result([Final Output])
When intent confidence is low, IntentOrch can automatically pause and request user confirmation before executing critical tools.
Intervene in the orchestration process using natural language directives:
Analyze the logs @intentorch summary-> Automatically appends an AI-generated summary step to the workflow.
Built-in RetryManager, FallbackManager, and PerformanceMonitor ensure your workflows are production-ready.
Apache-2.0 License. See LICENSE for details.
We welcome contributions! Please feel free to submit a Pull Request.
Built with ❤️ by MCPilotX