GenPDM MCP Server
GenPDM MCP Server
一个 TypeScript/Express MCP 服务器骨架,用于将固定业务 GraphQL API 以安全、类型化的 MCP 工具形式暴露。
功能
位于
ALL /mcp的 MCP SDK v2 Streamable HTTP 端点HS256 Bearer JWT 验证与作用域检查
基于内存的按 IP 和按主体速率限制
基于有界 Undici keep-alive 连接池的 GraphQL 客户端
仅查询重试、变更幂等性、并发与响应大小限制
可复现的 mock GraphQL 上游
存活/就绪端点与优雅关闭
当前速率限制存储有意采用进程本地实现。src/rate-limit.ts 包含面向未来 Redis 后端存储的适配器边界。运行多个副本时,不要将当前计数器视为全局。
Related MCP server: gqai
文档
仓库自动化:
AGENTS.md定义了始终生效的架构与命名规则。genpdm-mcp-development引导 Codex 完成 GraphQL 操作与 MCP 工具变更。
可运行示例:
本地运行
需要 Node.js 20 或更高版本。
Copy-Item .env.example .env
npm install
npm run dev:mock在第二个终端中:
npm run dev
$token = npm.cmd run --silent token使用端点 http://127.0.0.1:3000/mcp 和请求头 Authorization: Bearer <token> 配置 MCP 客户端。
可用工具:
get_customer:{ "id": "cust-001" },需要customers:read权限create_order:{ "customerId": "cust-001", "items": [{ "sku": "SKU-1", "quantity": 2 }] },需要orders:write权限
健康端点无需认证:
GET /health/liveGET /health/ready
验证
npm run typecheck
npm run build
npm test生产环境说明
将 HS256 验证替换为公司 IdP 的 JWKS 验证器。
在横向扩展需要严格的全局限制之前,将内存速率限制存储替换为 Redis。
从密钥管理器中注入 JWT 与 GraphQL 凭据。
根据部署拓扑限制
ALLOWED_HOSTS、CORS_ORIGINS和受信任代理设置。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- MIT
- AlicenseNot gradedqualityDmaintenanceTurn any GraphQL endpoint into a set of MCP tools23MIT
- AlicenseNot gradedqualityDmaintenanceMCP that can proxy any GraphQL API and expose graphql operations as mcp tools.4518Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAutomatically generates MCP tools from any GraphQL API by introspecting its schema, supporting queries, mutations, and authentication.5GPL 3.0
Related MCP Connectors
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
34 production API tools over one hosted MCP endpoint.
Query metrics, targets, entities, and team data in your Steep workspace via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/caa1211/genpdm-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server