🚀 MCP光标流AI
](https://github.com/Big-Brother/mcp-cursor-flowiseai) ](https://github.com/Big-Brother/mcp-cursor-flowiseai) ](https://github.com/Big-Brother/mcp-cursor-flowiseai/issues) ](https://github.com/Big-Brother/mcp-cursor-flowiseai/blob/main/LICENSE)   
Cursor IDE的Flowise AI集成
*22个强大的工具,用于无缝的AI驱动开发工作流程*
📖 文档 • 🚀 快速开始 • 🛠️ 特性 • 📦 安装 • 💡 例子
______________________________________________________________________
🎯 什么是MCP游标FlowiseAI?
MCP-Cursor-FlowiseAI 是一个 全面的Python包 实现模型上下文协议(MCP)服务器,该服务器与专门为无缝CursorIDE集成而设计的Flowise API集成。它提供了一种标准化和灵活的方式来管理聊天流、创建预测、处理文档存储、管理变量和跟踪聊天消息,所有这些都可以在您的Cursor开发环境中完成。
🌟 为什么是这个包?
- 🎯 专为Cursor设计:专为Cursor IDE工作流设计
- 🚀 22强大的工具:在一个软件包中完成Flowise管理
- 🤖 人工智能驱动开发:将Flowise AI代理直接集成到您的编码过程中
- 📚 RAG系统就绪:建立知识库和查询文档
- ⚡ 实时:动态配置和实时人工智能辅助
- 🔧 生产就绪:全面的错误处理和验证
📝 归因
- 12个附加工具 (共22人,原10人)
- 文档存储管理 对于RAG系统
- 变量管理 用于动态配置
- 聊天消息管理 用于会话跟踪
- 游标IDE优化 以及全面的文件
______________________________________________________________________
🚀 快速开始
1.通过uvx安装(推荐)
uvx --from git+https://github.com/Big-Brother/mcp-cursor-flowiseai mcp-cursor-flowiseai2.配置游标IDE
添加到光标MCP配置中:
{
"mcpServers": {
"mcp-cursor-flowiseai": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Big-Brother/mcp-cursor-flowiseai",
"mcp-cursor-flowiseai"
],
"env": {
"FLOWISE_API_KEY": "YOUR_FLOWISE_API_KEY_HERE",
"FLOWISE_API_ENDPOINT": "http://localhost:3000",
"FLOWISE_SIMPLE_MODE": "true"
}
}
}
}3.开始构建人工智能系统
# Create a knowledge base
create_document_store(name="My Knowledge Base", description="Project documentation")
# Set up dynamic configuration
create_variable(name="debug_mode", value="true", var_type="boolean")
# Query your knowledge base
query_document_store(store_id="your-store-id", query="How do I implement authentication?")🎉 就是这样!您现在在Cursor中有22个强大的工具!
______________________________________________________________________
📦 安装
先决条件
- Python 3.12或更高版本
- Flowise实例正在运行
- 光标IDE
通过安装和运行 uvx
确认您可以使用以下命令直接从GitHub存储库运行服务器 uvx:
uvx --from git+https://github.com/Big-Brother/mcp-cursor-flowiseai mcp-cursor-flowiseai添加到游标IDE(mcpServers 配置)
您可以集成 MCP-Cursor-FlowiseAI 通过将其添加到Cursor IDE中 mcpServers 配置。例子:
{
"mcpServers": {
"mcp-cursor-flowiseai": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Big-Brother/mcp-cursor-flowiseai",
"mcp-cursor-flowiseai"
],
"env": {
"FLOWISE_API_KEY": "YOUR_FLOWISE_API_KEY_HERE",
"FLOWISE_API_ENDPOINT": "http://localhost:3000",
"FLOWISE_SIMPLE_MODE": "true"
}
}
}
}📋 快速设置:参见 CURSOR_SETUP.md 详细的Cursor IDE集成指南。
______________________________________________________________________
🛠️ 特性
22个强大的工具:
聊天流管理(6个工具):
list_chatflows-列出所有可用的聊天流create_chatflow-创建新的聊天流update_chatflow-更新现有聊天流delete_chatflow-删除聊天流get_chatflow_details-获取详细的聊天流信息create_prediction-将问题发送到聊天流
文档存储管理(6个工具):
list_document_stores-列出所有文档存储create_document_store-创建新的文档存储get_document_store-获取文档存储详细信息upsert_document-上传和处理文件query_document_store-搜索文档delete_document_store-删除文档存储
变量管理(4个工具):
list_variables-列出所有变量create_variable-创建新变量update_variable-更新变量值delete_variable-删除变量
工具和助理管理(4个工具):
list_tools-列出可用工具create_tool-创建自定义工具list_assistants-列出可用助手create_assistant-创建新助手
聊天消息管理(2个工具):
list_chat_messages-获取对话历史记录delete_chat_messages-清除对话历史记录
______________________________________________________________________
💡 用法示例
🎯 Cursor IDE开发工作流程
# Create a knowledge base for your project documentation
create_document_store(
name="Project Knowledge Base",
description="Code documentation, APIs, and best practices"
)
# Set up development environment variables
create_variable(name="debug_mode", value="true", var_type="boolean")
create_variable(name="api_version", value="v2", var_type="string")
# Query your knowledge base while coding
query_document_store(
store_id="your-store-id",
query="How do I implement authentication in this framework?"
)
# Create an AI assistant for code review
create_assistant(
name="Code Review Assistant",
description="AI assistant for code review and suggestions",
instructions="Review code for best practices, security issues, and performance"
)🎰 构建赌场人工智能系统
# Create a knowledge base for casino strategies
create_document_store(
name="Casino Knowledge Base",
description="Strategies and rules for casino games"
)
# Create variables for dynamic configuration
create_variable(name="game_type", value="blackjack", var_type="string")
create_variable(name="bankroll", value="1000", var_type="number")
# Query the knowledge base during gameplay
query_document_store(
store_id="your-store-id",
query="What is the optimal blackjack strategy for a 6-deck shoe?"
)📚 构建RAG系统
# Create a document store for your knowledge base
create_document_store(
name="Company Knowledge Base",
description="Internal documentation and procedures"
)
# Upload documents to the store
upsert_document(
store_id="your-store-id",
files='[{"name": "manual.pdf", "content": "..."}]',
loader_config='{"name": "pdfLoader", "config": {}}'
)
# Query for relevant information
query_document_store(
store_id="your-store-id",
query="How do I reset my password?"
)______________________________________________________________________
🔧 环境变量
将军
FLOWISE_API_KEY:您的Flowise API Bearer代币(必需的).FLOWISE_API_ENDPOINT:Flowise的基本URL(默认值:http://localhost:3000).
快速MCP模式(FLOWISE_SIMPLE_MODE=true)
FLOWISE_CHATFLOW_ID:单个聊天流ID(可选)。FLOWISE_ASSISTANT_ID:单个助理ID(可选)。FLOWISE_CHATFLOW_DESCRIPTION:暴露的单个工具的可选描述。
______________________________________________________________________
📚 文档
- CURSOR_SETUP.md -详细的Cursor IDE集成指南
- 更改日志.md -版本历史和更新
- cursor-mcp-config-template.json -即用型配置模板
______________________________________________________________________
🤝 贡献
我们欢迎捐款!此软件包基于原始版本 mcp流程 并且已经得到了显著增强。
开发设置
# Clone the repository
git clone https://github.com/Big-Brother/mcp-cursor-flowiseai.git
cd mcp-cursor-flowiseai
# Install in development mode
pip install -e .
# Run tests
python -m pytest tests/______________________________________________________________________
📄 许可证
该项目根据MIT许可证获得许可。请参阅 许可证 文件以获取详细信息。
______________________________________________________________________
🆘 支持
有关支持和问题:
- GitHub问题: 创建问题
______________________________________________________________________
内置于❤️ 适用于Cursor IDE和Flowise AI社区
*比原版增强 mcp流程 带有12个附加工具和Cursor IDE优化*
