Empresa Bot MCP
Bot MCP(Model Context Protocol)服务器,用于集成AI的企业任务自动化和管理。
🚀 特点
- ✅ 兼容MCP服务器
- ✅ 与人工智能API(人工智能,OpenAI)的集成
- ✅ 自定义工具
- ✅ 产品搜索
- ✅ 嵌入式系统
- ✅ 灵活配置
📋 要求
- Node.js(v16高级版)
- npm o纱线
- API键(Anthropic y/o OpenAI)
🔧 安装
1.克隆存储库
git clone https://github.com/connexiontd/empresa-bot-mcp.git
cd empresa-bot-mcp2.安装依赖项
npm install3.配置环境变量
cp .env.example .env编辑 .env 使用您的API密钥:
ANTHROPIC_API_KEY=tu-api-key-aqui
OPENAI_API_KEY=tu-api-key-aqui
PORT=30004.启动服务器
npm start🏗️ 项目结构
empresa-bot-mcp/
├── index.js # Servidor principal MCP
├── config.js # Configuración
├── tools/ # Herramientas personalizadas
│ └── buscar-productos.js
├── utils/ # Utilidades
├── .env.example # Plantilla de variables
└── package.json🛠️ 技术
- 主控程序:模型上下文协议
- Node.js:运行时
- 无烟煤API:克劳德
- OpenAI API:GPT模型
- 嵌入:语义搜索
📝 使用
作为 MCP 服务器
// Conectar al servidor MCP
const client = new MCPClient({
serverUrl: 'http://localhost:3000'
});可用的工具
buscar-productos:搜索带有嵌入的产品- 更多工具正在开发中。(笑)。。
🔐 安全
- 永远不会 提交您的文件
.env - 美国
.env.example作为模板 - 密钥API必须在环境变量中
- 李
SECURITY.md更多信息
🧪 测试
# Test de embeddings
node test_embedding.js
# Test de búsqueda
node test_embedding_match.js
# Debug
node test_debug.js📚 文件
🤝 争议
- 叉项目
- 创建分支(
git checkout -b feature/AmazingFeature) - 提交您的更改(
git commit -m 'Add some AmazingFeature') - 推拉拉马(
git push origin feature/AmazingFeature) - 打开拉动请求
📄 许可证
这个项目是开源的。
📧 联系方式
对于问题或建议,请在GitHub上打开一个问题。
______________________________________________________________________
备注:该项目需要有效的Anthropic和/或OpenAI密钥API。
