本项目是基于 Apache_superset REST_API 构建的 Model Context Protocol (MCP) 服务器端应用,借助大模型实现了基本的查询能力,为数据库操作提供了便捷途径。
# 安装 Node.js 依赖
npm install
# API client 测试
npm run src/examples/superset-example.ts
# 调试环境
npm run inspector
# 生产环境
npm run build
npm start
项目配置文件位于 config
目录下,包括:
参考 superset 官方 swagger 文档
.
├── src/ # 源代码目录
├── src/examples # 封装的 API 客户端测试代码
├── src/services # 封装的 API 函数
├── src/utils # 封装的 superset baseHttpClient
├── src/index.ts # 定义 MCP 接口
node currentFolder/build/index.js
Apache License 2.0
如有问题,请提交 Issue 或联系项目维护者。