Features

AI & MCP

BetaHobby, Pro, Scale

Deploy scale-to-zero Streamable HTTP MCP servers with verified tool scopes

Scaffold Streamable HTTP MCP servers in Node, Go, or Python, lock down every tool behind gregale-mcp.json allowlists, scale to zero between agent sessions, and monitor readiness continuously.

Updated

Scaffold a Streamable HTTP MCP server and lock down tool allowlists

Remote Model Context Protocol servers sit idle between agent bursts yet need strict tool authorization and health verification before Claude, Cursor, Codex, or VS Code connect. Gregale treats MCP hosting as a first-class workload with official starters, protocol checks, and zero-idle billing.

bash
# Create a Node, Go (--runtime go), or Python (--runtime python) MCP server
gregale mcp server init --path ./my-mcp

# gregale-mcp.json — unlisted tools are hidden and refused with 403 tool_access_denied
# {
#   "auth": {
#     "tool_scopes": { "lookup": [], "greet": [] }
#   }
# }

Key capabilities

Official Node, Go & Python starters

Generate a working Streamable HTTP server at /mcp in seconds with sample tools, resources, prompts, health checks, and drain handlers wired.

Fail-closed tool, resource & prompt allowlists

Every exposed capability must be listed in gregale-mcp.json (tool_scopes, resource_scopes, prompt_scopes). Unlisted tools are hidden and rejected with 403 tool_access_denied.

Scale-to-zero between agent calls

Hosted MCP servers run in isolated Firecracker microVMs that park at $0 between sessions and wake on demand without idling GPUs or VM instances.

Protocol diagnostics & readiness checks

Each new deployment runs MCP verification before taking live traffic, paired with readiness monitoring and optional PostgreSQL-backed durable MCP Tasks (Preview).

Typical PaaS vs. Gregale

CapabilityTypical PaaSGregale
Idle MCP server billingFixed monthly container charge even between sessionsParks to $0 idle between agent calls; wakes on /mcp requests
Per-tool allowlists & scopingHand-rolled auth middleware inside server codeDeclarative gregale-mcp.json scope maps enforced per tool
Account management via MCP + guardrailsDirect destructive CLI tokens onlyPlan -> Verify -> Approval -> Undo workflows for agent safety

Deep-dive guides (3)

Related benchmarks & studies

Runnable starters & integrations (6)

Browse all templates

Documentation references

Questions

Which MCP transport and runtimes does Gregale support?

Gregale hosts Streamable HTTP MCP servers at /mcp and provides official starters via gregale mcp server init for Node.js, Go (--runtime go), and Python (--runtime python).

What happens if an MCP tool is registered in code but omitted from gregale-mcp.json?

The scope maps act as allowlists. Any tool missing from auth.tool_scopes (or resource_scopes / prompt_scopes) is hidden from callers and rejected with 403 tool_access_denied.

Can coding agents also manage my Gregale apps safely over MCP?

Yes. Gregale exposes a hosted management MCP endpoint (https://api.gregale.dev/mcp) with OAuth, dry-run deploy diffs, canary verification, approval gates, and single-command undo.