fusebase-gate
Skill9 starsChanged 27 days agoMITView on GitHub
How to use MCP for Fusebase Gate. Use when: working with gate contracts, tokens, org user listing, health, or generated MCP tools and prompts.
In this repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fusebase-flow-always.mdcCursor rule
- .cursor/rules/fusebase-flow-implementation.mdcCursor rule
- .cursor/rules/fusebase-flow-security.mdcCursor rule
- .cursor/rules/fusebase-flow-specs.mdcCursor rule
- .cursor/rules/fusebase-flow-validation.mdcCursor rule
- api-explorationSkill
- app-api-contract-testingSkill
- app-backendSkill
- app-business-docsSkill
- app-dev-practicesSkill
- app-e2e-testsSkill
- app-quality-patternsSkill
- app-routingSkill
- app-secretsSkill
- app-sidecarSkill
- app-ui-designSkill
- business-logic-guardianSkill
- client-vs-internalSkill
- code-reviewSkill
- comment-policySkill
- communicationSkill
- design-discovery-ideationSkill
- dev-debug-logsSkill
- documentation-budgetSkill
- file-uploadSkill
- find-wasted-codeSkill
- find-wasted-effortSkill
- fusebase-cliSkill
- fusebase-dashboardsSkill
- fusebase-flow-health-checkSkill
- fusebase-portal-specific-appsSkill
- git-history-diagnosticSkill
- git-workflowSkill
- handling-authentication-errorsSkill
- handoffSkill
- implementation-planningSkill
- invite-with-passwordSkill
- lightweight-laneSkill
- liveness-disciplineSkill
- managed-integrationsSkill
- mcp-gate-debugSkill
- module-size-disciplineSkill
- north-starSkill
- phase-auditSkill
- product-apps-decompositionSkill
- product-docs-firstSkill
- product-ownerSkill
- project-onboardingSkill
- release-deploy-reportingSkill
- remote-logsSkill
- repo-onboarding-context-mapSkill
- requirements-specificationSkill
- role-disciplineSkill
- security-permissions-reviewSkill
- skill-authoringSkill
- smoke-testingSkill
- task-delegationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 11 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
Do not use this skill for dashboard schema, rows, or files cell payload guidance.
- Very specific: line 64
Do not use this skill as the canonical low-level upload lifecycle reference.
- Distinctive: line 65
Do not copy shared upload endpoint or payload blocks into Gate references.
- Distinctive: line 78
Before any work with gate MCP, verify that the fusebase-gate MCP server is connected.
- Very specific: line 80
Check that MCP tools from the gate server are present (e.g.
- Distinctive: line 81
If the gate server is not available, inform the user and suggest checking MCP server settings.
- Very specific: line 96
Read the resource resource://connection/context (if the client supports MCP Resources).
- Very specific: line 104
After connection is established: discover operations via tools_list / tools_search, get schemas via tools_describe, execute via tool_call.
- Very specific: line 111
When runtime code uses @fusebase/fusebase-gate-sdk, fusebase feature update --sync-gate-permissions relies on static analysis of SDK method …
- Distinctive: line 113
Keep direct method calls on API instances:
- Very specific: line 116
Prefer strongly typed API factories (WorkspacesApi, NotesApi, etc.), avoid any return types for Gate API objects.
- Distinctive: line 117
Avoid dynamic call patterns for Gate operations:
- Very specific: line 118
avoid destructuring methods (const { listWorkspaces } = api)
- Very specific: line 119
avoid computed operation names (api[opName] call style) unless the key is a string literal
- Distinctive: line 120
Keep a pre-publish check in your workflow:
- Very specific: line 122
if runtime imports Gate SDK and usedOps is empty, treat it as a blocker and fix before publish.
- Distinctive: line 129
If a request contains permissions the caller cannot grant, Gate degrades token permissions to the allowed subset.
- Distinctive: line 130
If a request contains unknown or service-disallowed permissions, Gate ignores those permissions in soft mode.
- Distinctive: line 131
Prefer the default soft mode for runtime integrations.
- Very specific: line 139
Treat 401/403 as expected authz outcomes (missing permission, scope mismatch, membership state) and return actionable guidance.
- Distinctive: line 140
Avoid implicit privileged fallback when user-context calls fail.
- Distinctive: line 150
If a feature truly needs service-token operations, keep them in explicit system/admin-only endpoints with audit logging and clear …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fusebase Gate MCP Skill
This document describes how to use MCP (Model Context Protocol) with Fusebase Gate during LLM development. Fusebase Gate is a service consumer built on top of the shared Fusebase platform runtime.
For rules and checklists, see AGENTS.md.
For FuseBase PostgreSQL Database (sql / postgres via the Gate isolated-stores contract), use references/isolated-sql.md for the MCP-oriented sequence and references/isolated-sql-migration-discipline.md whenever you edit or apply migration bundles (anti-drift). For runtime errors and support handoff, use references/isolated-sql-integrator-troubleshooting.md. Do not load operator runbooks (isolated-sql-stores, isolated-sql-rls-plan) — they are platform-internal. See TOC below.
Critical isolated-store runtime rule: a Gate isolated store is a platform-bound resource, not app environment configuration. Do not ask users to create app secrets or env vars for storeId, database IDs, physical database names, or provider connection details. Runtime code must resolve the store through Gate using the app token/source scope and stable alias (or use the store already bound by the platform). storeId may appear in MCP/operator handoff logs or CLI migration commands, but it must not be persisted as an app secret or hardcoded runtime config.
References
Each reference is in a separate file under references/. Load the file when you need that topic.
meta
- Authorization and Scopes
- Bootstrap
- Fusebase Gate SDK
- Tooling
specialized
- Fusebase Auth For AI Apps
- Fusebase Gate — Isolated SQL migration discipline
- Fusebase Gate App Magic Link Operations
- Fusebase Gate Billing And Stripe Flows
- Fusebase Gate Email Operations
- Fusebase Gate Files Flows
- Fusebase Gate Membership And Portal Flows
- Fusebase Gate Notes Operations
- Fusebase Gate Org Group Operations
- Fusebase Gate Organization URLs
- Fusebase Gate Portals — Create Operations
- Fusebase Gate Portals Operations
- Fusebase Gate Stripe App And Agent Integration
- Fusebase Gate Users Operations
- FuseBase PostgreSQL Database
- FuseBase PostgreSQL Database
- FuseBase PostgreSQL Database — integrator troubleshooting
- Isolated stores hierarchy: Gate vs Neon
- Isolated stores release checklist
- Portal iframe embed context (Gate SQL RLS)
- Portal theme styling (custom CSS override contract)
- Stripe for apps and agents (Gate)
When NOT To Use This Skill
- Do not use this skill for dashboard schema, rows, or
filescell payload guidance. Loadfusebase-dashboardsfor dashboard writes. - Do not use this skill as the canonical low-level upload lifecycle reference. Load
file-upload/references/upload-lifecycle.mdfortempStoredFileName -> storedFileUUID -> readUrl / relative url -> file descriptor. - Do not copy shared upload endpoint or payload blocks into Gate references. Gate guidance only owns Gate operations, auth, and scope.
Anti-Overlap Checklist
- Unique scope: Gate operations and their auth/scope behavior.
- Neighbor links: use
file-uploadfor upload lifecycle; usefusebase-dashboardsfor dashboardfilescolumns. - No duplicated dashboard
batchPutDashboardDatapayload details here. - Only hand off
storedFileUUID,readUrl, or file descriptor outputs to neighboring skills.
Verify gate MCP connection
Before any work with gate MCP, verify that the fusebase-gate MCP server is connected.
- Check that MCP tools from the gate server are present (e.g.
tools_list,tools_search,tool_call,bootstrap,prompts_list,prompts_search). - If the gate server is not available, inform the user and suggest checking MCP server settings.
MCP vs SDK
- MCP tools — for performing actions inside the LLM session: discovery, token management, org user listing, health checks.
- SDK — for runtime code (e.g. service/browser/worker). Use
@fusebase/fusebase-gate-sdkfrom npm in application code.
Bootstrap and connection context
- Read the resource
resource://connection/context(if the client supports MCP Resources). - Or call the
bootstraptool (no arguments) and use the response fordefaults.toolArgs,usage,capabilities.
Tooling flow
After connection is established: discover operations via tools_list / tools_search, get schemas via tools_describe, execute via tool_call. For prompts, use prompts_search with appropriate groups (e.g. authz, bootstrap, tooling).
Gate SDK runtime patterns for reliable permission sync
When runtime code uses @fusebase/fusebase-gate-sdk, fusebase feature update --sync-gate-permissions relies on static analysis of SDK method calls. Prefer these patterns so operations are detected reliably:
- Keep direct method calls on API instances:
const api = createWorkspacesApi(token)await api.listWorkspaces(...)
- Prefer strongly typed API factories (
WorkspacesApi,NotesApi, etc.), avoidanyreturn types for Gate API objects. - Avoid dynamic call patterns for Gate operations:
- avoid destructuring methods (
const { listWorkspaces } = api) - avoid computed operation names (
api[opName]call style) unless the key is a string literal
- avoid destructuring methods (
- Keep a pre-publish check in your workflow:
fusebase analyze gate --operations --json --feature <featureId>- if runtime imports Gate SDK and
usedOpsis empty, treat it as a blocker and fix before publish.
Token permission mode (default soft)
Token permission validation is soft by default (strictPermissionValidation = false).
- If a request contains permissions the caller cannot grant, Gate degrades token permissions to the allowed subset.
- If a request contains unknown or service-disallowed permissions, Gate ignores those permissions in soft mode.
- Prefer the default soft mode for runtime integrations; enable strict mode only for explicit fail-fast requirements.
SDK operation error handling
For runtime code with @fusebase/fusebase-gate-sdk, enforce explicit operation-level error handling:
- Wrap each Gate operation in
try/catchand branch behavior by status code and operation intent. - Treat
401/403as expected authz outcomes (missing permission, scope mismatch, membership state) and return actionable guidance. - Avoid implicit privileged fallback when user-context calls fail.
- For token operations, message that permission reduction can be expected in soft mode; only expect hard failure when strict mode is explicitly enabled.
Security rule: no implicit service-token fallback
For user-facing Gate flows (membership status, current user/org access, workspace visibility), do not silently switch from feature-token auth to service-token auth when Gate returns auth errors.
- Required behavior: fail closed (
401/403) and surface a clear runtime error. - Forbidden behavior: "best-effort" fallback that returns data from owner/service context.
- If a feature truly needs service-token operations, keep them in explicit system/admin-only endpoints with audit logging and clear auth-source labeling.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

