GraphQL转MCP工具

一个将GraphQL操作转换为MCP工具的核心库,支持自定义多步骤工具。

  • by Akashmathwani
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 Akashmathwani/gql-to-mcp

使用说明

GraphQL MCP Monorepo

这个monorepo包含一个GraphQL到MCP框架,使用 学习.

📦 包裹

packages/gql-mcp

将GraphQL操作转换为MCP工具的核心库,支持自定义多步骤工具。

examples

gql-mcp的示例实现和使用模式。

🚀 快速开始

# Install dependencies
npm install

# Build all packages
npm run build

# Run both servers in parallel

🛠️ 常用命令

构建命令

npm run build              # Build all packages
npm run build:packages     # Build only gql-to-mcp
npm run build:servers      # Build only servers

实用程序命令

npm run clean              # Clean all build artifacts
npm run lint               # Lint all packages
npm run format             # Format all code
npm run type-check         # Type check all packages

📁 存储库结构

example-mcp/
├── packages/
│   └── gql-mcp/           # Core MCP framework library
├── examples/              # Example implementations
├── lerna.json             # Lerna configuration
└── package.json           # Root workspace configuration

📚 文档

🔧 需求

  • Node.js>=18.19.0或>=20.6.0(建议使用Node 20.x)
  • npm>=9.0.0

许可证

麻省理工学院