InsightFlow 是一个高级分析平台,结合实时数据处理与基于人工智能的洞察,使用模型上下文协议(MCP)。它提供了与 Claude AI 的无缝集成,用于智能数据分析和决策支持。
git clone https://github.com/yourusername/insightflow.git
cd insightflow
python -m venv venv
source venv/bin/activate # 在 Windows 上:venv\Scripts\activate
pip install -r requirements.txt
cp config/config.example.yaml config/config.yaml
# 使用您的设置编辑 config.yaml
cp .env.example .env
# 使用您的凭据编辑 .env
python app/main.py
http://localhost:8000/docs
GET /tools - 列出可用的 MCP 工具POST /tool/{tool_name} - 执行特定工具WS /ws - 实时通信的 WebSocket 端点数据分析
查询数据
生成洞察
系统可以通过 config.yaml 或环境变量进行配置:
server:
host: "0.0.0.0"
port: 8000
debug: false
mcp:
enabled: true
websocket_path: "/ws"
max_connections: 100
ai:
model_name: "claude-2"
temperature: 0.7
max_tokens: 2000
insightflow/
├── app/
│ ├── main.py # 应用程序入口点
│ ├── config.py # 配置管理
│ ├── core/ # 核心 MCP 和服务器逻辑
│ ├── data/ # 数据处理模块
│ ├── analytics/ # 分析引擎
│ ├── ai/ # AI 集成
│ ├── api/ # API 端点
│ └── models/ # 数据模型
└── requirements.txt # Python 依赖项
pytest tests/
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 查看 LICENSE 文件获取详细信息。
对于支持和问题,请在 GitHub 仓库中打开一个问题或联系维护者。
由 Ilias RAFIK 制作 ❤️