MCP BI连接器
该项目使用Azure函数创建自定义连接器,将MCP(Model Context Protocol)服务器实现为REST API。
描述
该连接器允许通过部署在Azure功能中的HTTP端点集成BI(商业智能)功能。
项目结构
mcp_bi/
├── function_app.py # Azure Functions wrapper
├── requirements.txt # Dependencias de Python
├── host.json # Configuración de Azure Functions
├── .gitignore
├── README.md
└── .github/
└── workflows/
└── deploy.yml # GitHub Actions para deployment本地安装
- 克隆存储库:
git clone https://github.com/tu-usuario/mcp-bi-connector.git
cd mcp-bi-connector- 安装依赖项:
pip install -r requirements.txt- 本地执行:
func start在Azure上部署
当推到分支时,该项目被配置为使用GitHub操作自动部署 main.
所需配置:
- Crear Azure功能应用程序
- 配置器GitHub秘密:
- AZURE_FUNCTIONAPP_PUBLISH_PROFILE
使用API
列出可用工具:
curl -X POST https://tu-function-app.azurewebsites.net/api/mcp-endpoint \
-H "Content-Type: application/json" \
-d '{"method": "list_tools"}'执行工具:
curl -X POST https://tu-function-app.azurewebsites.net/api/mcp-endpoint \
-H "Content-Type: application/json" \
-d '{"method": "call_tool", "params": {"name": "tool_name", "arguments": {}}}'争议
- 叉项目
- 创建一个分支(
git checkout -b feature/nueva-funcionalidad) - 提交您的更改(
git commit -am 'Agregar nueva funcionalidad') - 推一个la分支(
git push origin feature/nueva-funcionalidad) - 打开拉动请求
许可证
这个项目是在麻省理工学院的许可下进行的。
