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
许可证
麻省理工学院
