BI连接器

一个基于Azure Functions的REST API,用于集成商业智能功能。

  • by gchavez83
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 gchavez83/mcp-bi-connector

使用说明

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

本地安装

  1. 克隆存储库:
git clone https://github.com/tu-usuario/mcp-bi-connector.git
cd mcp-bi-connector
  1. 安装依赖项:
pip install -r requirements.txt
  1. 本地执行:
func start

在Azure上部署

当推到分支时,该项目被配置为使用GitHub操作自动部署 main.

所需配置:

  1. Crear Azure功能应用程序
  2. 配置器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": {}}}'

争议

  1. 叉项目
  2. 创建一个分支(git checkout -b feature/nueva-funcionalidad)
  3. 提交您的更改(git commit -am 'Agregar nueva funcionalidad')
  4. 推一个la分支(git push origin feature/nueva-funcionalidad)
  5. 打开拉动请求

许可证

这个项目是在麻省理工学院的许可下进行的。