Forge
Forge
MCP server + assistant de debugging sobre Supabase Edge Functions.
El agente lista schema, explica planes SQL, propone politicas RLS y corre queries de solo lectura respetando el JWT del usuario. Nada de service_role en el cliente.
Proyecto hosted (link, push, deploy, demo de 2 orgs): ver HOSTED.md.
Que demuestra
MCP hospedado en Edge Functions (Deno)
Tools con allowlist (sin DDL destructivo)
RLS como autorizacion, no checks en el frontend
Assistant UI con tool trace y boton Cargar demo RLS
Harness de evals en
evals/Skill para agentes en
skills/supabase-rls.md
Arquitectura
Cursor / Assistant UI
| MCP JSON-RPC
v
Edge Function mcp-server
| user JWT -> Postgres + RLS
v
PostgresEl LLM (Azure OpenAI mini u otro) solo vive en chat. El MCP no habla con el modelo: expone tools.
Setup local
git clone https://github.com/mcontrerasmalpar-pixel/forge-mcp-supabase.git
cd forge-mcp-supabase
npx supabase start
npx supabase db reset
npx supabase secrets set AZURE_OPENAI_ENDPOINT=https://YOUR.openai.azure.com
npx supabase secrets set AZURE_OPENAI_API_KEY=...
npx supabase secrets set AZURE_OPENAI_DEPLOYMENT=gpt-4o-mini
cd apps/web
cp .env.example .env.local
npm install
npm run devDespues del login pulsa Cargar demo RLS: te asigna acme-alpha y crea documentos en beta-shadow que no debes ver.
Cursor: copia .cursor/mcp.json.example a .cursor/mcp.json.
Tools
Tool | Guardrail |
list_tables | catalog only |
list_policies | read only |
list_functions | read only |
explain_query | blocks writes |
propose_rls | draft, does not apply |
run_readonly_sql | SELECT/WITH/EXPLAIN + read-only txn |
Seguridad
Cliente: anon key + user JWT.
run_readonly_sqlrechaza INSERT/UPDATE/DELETE/DROP/ALTER.propose_rlsno aplica migraciones.Rate limit 40 tools/min por
auth.uid().
npm run evalsMIT
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/mcontrerasmalpar-pixel/forge-mcp-supabase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server