Stackbilt
Stackbilt MCP 网关
MCP 注册表:
dev.stackbilt.mcp/gateway— 发布于 官方 MCP 注册表
用于 Stackbilt 平台服务的 OAuth 认证 模型上下文协议 (MCP) 网关。作为 Cloudflare Worker 使用 @cloudflare/workers-oauth-provider 构建。
功能说明
单一 MCP 端点 (mcp.stackbilt.dev/mcp),将工具调用路由到多个后端产品 Worker:
后端 | 工具 | 描述 |
TarotScript |
| 确定性项目脚手架、n8n 工作流导入、GitHub 发布、CF 部署 |
img-forge |
| AI 图像生成(5 个质量层级) |
Stackbilder (TarotScript 后端) |
| 已弃用 — 架构流程编排(正在迁移至 |
脚手架流水线 (E2E)
You: "Build a restaurant menu API with D1 storage"
↓
scaffold_create → structured facts + 9 deployable project files
↓
scaffold_publish → GitHub repo with atomic initial commit
↓
git clone → npm install → npx wrangler deploy → live Worker文件生成无需 LLM 调用。结构生成约 20ms,包含 Oracle 文本约 2s。比 flow_create 快 21 倍。
Related MCP server: forgemesh-imagegen
关键特性
OAuth 2.1 with PKCE — GitHub SSO、Google SSO 以及电子邮件/密码认证
后端适配器模式 — 从多个服务绑定聚合工具目录,并进行命名空间隔离以避免冲突
分层级速率限制 — 通过
RATELIMIT_KV实现每租户固定窗口限制(免费版=20/分钟,业余版=60,专业版=300,企业版=1000);返回 429 状态码及Retry-After和X-RateLimit-*响应头成本归因与配额 — 每次工具调用均有信用成本;配额在分发前通过
edge-auth预留,并在结果产生后提交/退还;image_generate成本随有效质量层级缩放(草稿/标准/高级/超高/超高+ 分别为 1×/1×/3×/5×/8×);当设置model时,其计费优先级高于quality_tier作用域 + 层级强制执行 —
tools/list根据令牌作用域进行过滤;tools/call要求具备generate作用域才能调用变更类工具;昂贵的image_generate质量层级(premium及以上)仅限 Pro+ 计划;直接指定model会通过模型→层级映射强制执行相同的门控安全宪法合规 — 每个工具声明风险等级(
READ_ONLY、LOCAL_MUTATION、EXTERNAL_MUTATION);结构化审计日志包含敏感信息脱敏;HMAC 签名身份令牌即将推出门控 —
PUBLIC_SIGNUPS_ENABLED标志用于控制公共访问基于 HTTP 的 MCP JSON-RPC — 支持流式传输 (SSE) 和请求/响应传输
快速入门
前置要求
Node.js 18+
Wrangler CLI (
npm i -g wrangler)已配置所需服务绑定的 Cloudflare 账户
安装与运行
npm install
npm run dev运行测试
npm test部署
npm run deploy通过 Cloudflare Workers 部署到 mcp.stackbilt.dev 自定义域名。
环境变量与密钥
名称 | 类型 | 描述 |
| 密钥 | 用于签署身份令牌的 HMAC-SHA256 密钥 |
| 变量 | OAuth 重定向的基础 URL(例如 |
| 服务绑定 | 指向 |
| 服务绑定 | 指向 |
| 服务绑定 | 指向 |
| KV 命名空间 | 存储社交 OAuth 状态(5 分钟 TTL 条目)和 MCP 会话 |
| KV 命名空间 | 每租户固定窗口速率限制计数器(60 秒 TTL) |
| 队列 | 审计事件流水线 ( |
| 变量 | MCP 注册表域名验证字符串(服务于 |
使用以下命令设置密钥:
wrangler secret put SERVICE_BINDING_SECRET项目结构
src/
index.ts # Entry point — OAuthProvider setup, CORS, health check, MCP Registry well-known
gateway.ts # MCP JSON-RPC transport, session management, tool dispatch
oauth-handler.ts # OAuth 2.1 flows: login, signup, social SSO, consent
tool-registry.ts # Tool catalog aggregation, namespacing, schema validation
audit.ts # Structured audit logging, secret redaction, trace IDs
auth.ts # Bearer token extraction & validation
route-table.ts # Static routing table, tool-to-backend mapping, risk levels
types.ts # Type definitions, RiskLevel enum, interfaces
test/
audit.test.ts
auth.test.ts
gateway.test.ts
oauth-handler.test.ts
route-table.test.ts
tool-registry.test.ts
docs/
user-guide.md # End-user guide: account creation, client setup, tool usage
api-reference.md # MCP tool surface, authentication flow, tool routing
architecture.md # System design, security model, request flow测试套件
涵盖 6 个测试文件的 122 个测试,内容包括:
OAuth 处理程序 — 身份令牌签名/验证、登录、注册、社交 OAuth 流程、同意、HTML 转义
网关 — 会话生命周期、
initialize、tools/list、tools/call、SSE 流式传输、错误处理审计 — 敏感信息脱敏模式(API 密钥、Bearer 令牌、十六进制哈希、密码字段)、追踪 ID、队列发射
认证 — Bearer 令牌提取、API 密钥与 JWT 验证、错误映射
工具注册表 — 目录构建、名称映射、模式验证、风险等级强制执行
路由表 — 路由解析、风险等级查找
npm test # single run
npm run test:watch # watch mode文档
许可证
MIT — 参见 LICENSE
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
- AlicenseBqualityDmaintenanceProduction-ready MCP server with 40+ tools — QR codes, PDFs, text processing, TTS, web scraping, image generation and more. Built for AI agents.2550MIT

forgemesh-imagegenofficial
AlicenseAqualityCmaintenanceMCP server for AI image generation with automatic USDC payments on Base mainnet. Generate, remove backgrounds, and upscale images via simple tool calls.41911MIT- AlicenseAqualityBmaintenanceMCP server for AI-powered image, audio, and video generation, enabling media creation directly from Claude, Cursor, and other MCP clients.1144MIT
- AlicenseNot gradedqualityCmaintenanceA lightweight MCP server that bridges AI agents with a local ComfyUI instance to generate and iteratively refine images, audio, and video through conversational tool calls.41MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
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/Stackbilt-dev/stackbilt-mcp-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server