Stackbilt Mcp Gateway — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Stackbilt Mcp Gateway (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<p align="center"> <img src="docs/banner.png" alt="Stackbilt MCP Gateway — img-forge + Stackbilder" width="480" /> </p>
<p align="center"> <em>Two products. One MCP connection. Image generated by img-forge (ultra tier).</em> </p>
MCP Registry: dev.stackbilt.mcp/gateway — published on the Official MCP RegistryOAuth-authenticated Model Context Protocol (MCP) gateway for Stackbilt platform services. Built as a Cloudflare Worker using @cloudflare/workers-oauth-provider.
A single MCP endpoint (mcp.stackbilt.dev/mcp) that routes tool calls to multiple backend product workers:
| Backend | Tools | Description |
|---|---|---|
| TarotScript | scaffold_create, scaffold_classify, scaffold_publish, scaffold_deploy, scaffold_import, scaffold_status | Deterministic project scaffolding, n8n workflow import, GitHub publishing, CF deployment |
| img-forge | image_generate, image_list_models, image_check_job | AI image generation (5 quality tiers) |
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 WorkerZero LLM calls for file generation. ~20ms for structure, ~2s with oracle prose. 21x faster than flow_create.
RATELIMIT_KV (free=20/min, hobby=60, pro=300, enterprise=1000); 429 with Retry-After and X-RateLimit-* headersedge-auth before dispatch and committed/refunded on outcome; image_generate cost scales with the effective quality tier (1×/1×/3×/5×/8× for draft/standard/premium/ultra/ultra_plus); when model is set it takes billing precedence over quality_tiertools/list is filtered by token scopes; tools/call requires the generate scope for mutating tools; expensive image_generate quality tiers (premium and above) are gated to Pro+ plans; specifying model directly enforces the same gate via model→tier mappingREAD_ONLY, LOCAL_MUTATION, EXTERNAL_MUTATION); structured audit logging with secret redaction; HMAC-signed identity tokensPUBLIC_SIGNUPS_ENABLED flag to control public accessnpm i -g wrangler)npm install
npm run devnpm testnpm run deployDeploys to the mcp.stackbilt.dev custom domain via Cloudflare Workers.
| Name | Type | Description |
|---|---|---|
SERVICE_BINDING_SECRET | Secret | HMAC-SHA256 key for signing identity tokens |
TAROTSCRIPT_API_KEY | Secret | Bearer key for protected TarotScript routes (/run, /classify, /agents/*) |
API_BASE_URL | Variable | Base URL for OAuth redirects (e.g. https://mcp.stackbilt.dev) |
AUTH_SERVICE | Service Binding | RPC to edge-auth worker (AuthEntrypoint) |
TAROTSCRIPT | Service Binding | Route to scaffold + classify backend |
IMG_FORGE | Service Binding | Route to image generation backend |
OAUTH_KV | KV Namespace | Stores social OAuth state (5-min TTL entries) and MCP sessions |
RATELIMIT_KV | KV Namespace | Per-tenant fixed-window rate-limit counters (60s TTL) |
PLATFORM_EVENTS_QUEUE | Queue | Audit event pipeline (stackbilt-user-events) |
MCP_REGISTRY_AUTH | Variable | MCP Registry domain verification string (served at /.well-known/mcp-registry-auth) |
Set secrets with:
wrangler secret put SERVICE_BINDING_SECRETsrc/
index.ts # Entry point — OAuthProvider setup, CORS, health check, MCP Registry well-known
gateway.ts # MCP JSON-RPC transport, session management, tool dispatch
rest-scaffold.ts # REST scaffold endpoint (POST /api/scaffold) for CLI consumers
oauth-handler.ts # OAuth 2.1 flows: login, signup, social SSO, consent
tool-registry.ts # Tool catalog aggregation, namespacing, schema validation
cost-attribution.ts # Per-tool credit costs and quota feature key mapping
rate-limiter.ts # Fixed-window per-tenant rate limiting via KV
billing-tools.ts # billing_status / billing_purchase_credits MCP tool handlers
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, GatewayEnv interface
test/
audit.test.ts
auth.test.ts
billing-agent-charge.test.ts
billing-tools.test.ts
cost-attribution.test.ts
gateway.test.ts
index.test.ts
oauth-handler.test.ts
rate-limiter.test.ts
rest-scaffold.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 flow216 tests across 14 test files covering:
initialize, tools/list, tools/call, SSE streaming, error handlingnpm test # single run
npm run test:watch # watch modeMIT — see LICENSE
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.