fusebase-dashboards
Skill9 starsChanged 27 days agoMITView on GitHub
How to use MCP for working with FuseBase Project Dashboards during LLM development. Use when: 1. Discovering dashboards, views, and schema via MCP; 2. Reading or updating dashboard data; 3. Working with relations, filters, templates, and child tables; 4. Understanding dashboard/view structure before SDK runtime code; 5. Working with system managed databases — Companies, Deals, Meetings (CRM, pipeline, B2B accounts, seeding demo rows, alias-only discovery).
- Reads credentials
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-flow-health-checkSkill
- fusebase-gateSkill
- 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
26 rules. About 0 are common, 6 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
When the user mentions any of the intents below, load the matching reference before domain tool calls (or use prompts_search with group …
- Very specific: line 58
Alias-only discovery rule: Never hardcode database/dashboard/view UUIDs.
- Very specific: line 82
If a managed database is missing: use getOrCreateDatabase only when exposed in the session.
- Very specific: line 87
Do not use this skill for multipart upload details, temp-file endpoints, stored-file endpoints, or display URL construction.
- Very specific: line 88
Do not use this skill for Gate file operations, auth, or scopes.
- Very specific: line 89
Do not copy shared upload API blocks into dashboard references.
- Distinctive: line 111
Do not proceed with dashboard operations until the connection is available.
- Very specific: line 123
Do not mix: use either the MCP chain (discovery → tool_call) for development, or the SDK chain (sdk_search → sdk_describe → insert code) …
- Very specific: line 134
Read the resource resource://connection/context.
- Very specific: line 139
Call the bootstrap tool (no arguments).
- Very specific: line 141
If full JSON context is needed — call whoami (returns the same data as the connection/context resource).
- Very specific: line 145
If a tool call requires scope_type and scope_id and the LLM did not provide them — use values from defaults.toolArgs in the connection …
- Very specific: line 154
After the connection is established (session ID set, connection context loaded): have domain knowledge (prompts or skill in context), …
- Very specific: line 162
If the project has the fusebase-dashboards skill (this document and references/*.md, generated from MCP prompts), ensure that skill is in …
- Distinctive: line 167
Always: use a group filter when loading prompts.
- Very specific: line 168
Never: call prompts_search({}) or omit the groups parameter.
- Very specific: line 169
Call prompts_search with groups: e.g.
- Very specific: line 171
If the result is too large, request one group at a time (e.g.
- Distinctive: line 173
Invariant: Do not call domain operations until you have this knowledge (from the skill in context or from prompts).
- Very specific: line 205
Rule: Use prompts_list for version checks.
- Very specific: line 222
Use the exact names returned by tools_list / tools_search.
- Very specific: line 226
Call tools_describe with the operation name (as in the list/search result):
- Distinctive: line 267
Do not construct REST URLs from feature names.
- Very specific: line 268
When creating entities (dashboard, view, row, etc.) use generate_id when needed (format: uuid for global_id, nanoid for short keys/aliases).
- Distinctive: line 296
Do not mix in one scenario: either the MCP chain (discovery → tool_call) or the SDK chain (sdk_search → sdk_describe → code generation).
- Distinctive: line 365
Connection check: Always verify fusebase-dashboards MCP is connected.
≈ “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 Project Dashboards MCP Skill
This document describes how to use MCP (Model Context Protocol) for working with FuseBase Project Dashboards during LLM development. MCP is used for discovery and execution from the LLM; the SDK is used only in runtime code (feature/browser). See the Fusebase Dashboards SDK skill for SDK usage.
For rules and checklists, see AGENTS.md.
- For runtime SDK code that reads or writes dashboard data (
getDashboardViewData,batchPutDashboardData, etc.),references/data-patterns.mdis required — it defines the real response/request shapes; use it together withsdk_describe(do not inferdata.rowsvs top-leveldatafrom memory). - Default-path rule — this skill is for existing dashboard surfaces and explicitly dashboard-oriented tasks. It is not the default storage-planning skill for new app-owned structured data. Do not ask the user to choose between PostgreSQL and a new dashboard/database unless the user explicitly requested dashboards or the project is extending an existing dashboard surface.
References
Each reference is in a separate file under references/. Load the file when you need that topic.
meta
- Authorization and Scopes
- Bootstrap
- SDK Discovery
- Tooling
core
- Dashboard Data
- Dashboard Schema
- Domain Overview
specialized
- Child Tables
- Dashboard Relations
- Dashboard Rows
- Dashboard View Filters
- Dashboard View Representations
- Members (system dashboard)
Managed database routing (Companies, Deals, Meetings)
System managed dashboards (Companies, Deals, Meetings) are first-class product surfaces — same category as Workspaces, Portals, Clients. They live in managed databases with fixed template aliases (not org-specific UUIDs from URLs). Technically rootEntity: custom; do not treat them as arbitrary user-created custom tables.
When the user mentions any of the intents below, load the matching reference before domain tool calls (or use prompts_search with group managedDatabases):
| User intent (examples) | Load reference / MCP prompt |
clients (root_entity: client) — no dedicated managed-DB prompt | references/core-concepts.md + references/relations-guide.md |
Alias-only discovery rule: Never hardcode database/dashboard/view UUIDs. Resolve by stable aliases within org scope from bootstrap defaults.toolArgs:
| Entity | Companies | Deals |
| Database | companies_db | deals_db |
| Dashboard | companies | deals_table (not deals) |
| Views | companies | deals_pipeline (default Kanban), deals_all (table) |
Meetings DB alias: meetings; dashboards: meetings, trackers.
Prompt load (Option B): prompts_search({ groups: ["managedDatabases", "data", "relations"] }) — add "childTables" for Meetings trackers/results.
CRM demo data recipe (alias-only)
For requests like “seed demo companies and deals”, “fill CRM with sample data”:
bootstrap— readdefaults.toolArgs(scope_type,scope_id).- Domain knowledge — load Companies + Deals references (or
prompts_searchabove). resolveAliases— one call with all aliases forcompanies_db/companiesanddeals_db/deals_table/deals_pipeline(see references for exactitemsshape).getDashboardView— schema for each dashboard; resolveitem_keyby columnalias(never hardcode keys).batchPutDashboardData— create company rows (company_name, etc.), then deal rows (deal_name,deal_stage,deal_value, …). Usegenerate_idfor new row UUIDs.deal_stage=[label-nanoid]from schema.findRelationsByDashboardIds—inversive_search: trueon deals dashboard id from step 3.addRelationRows— link Companies → Deals (source_index= companyroot_index_value,target_index= dealroot_index_value). Do not write lookup columns viabatchPutDashboardData.
If a managed database is missing: use getOrCreateDatabase only when exposed in the session; otherwise report that the managed DB was not found.
When NOT To Use This Skill
- Do not use this skill for multipart upload details, temp-file endpoints, stored-file endpoints, or display URL construction. Load
file-upload/references/upload-lifecycle.mdfor the canonical lifecycle. - Do not use this skill for Gate file operations, auth, or scopes. Load
fusebase-gateforstartMultipartFileUpload,completeMultipartFileUpload, anddeleteFile. - Do not copy shared upload API blocks into dashboard references. Dashboard guidance only explains how to put an already-uploaded file descriptor into a
filescolumn.
Anti-Overlap Checklist
- Unique scope: dashboard schema, rows, views, relations, and dashboard data.
- Neighbor links: use
file-uploadfor upload lifecycle; usefusebase-gatefor Gate file operations. - No duplicated upload endpoint or payload details in this skill.
- Only hand off the already-uploaded file descriptor to
batchPutDashboardData.
Mandatory: verify fusebase-dashboards MCP connection
Before any work with dashboards, the LLM must verify that the fusebase-dashboards MCP server is connected and available.
- Check that MCP tools from the fusebase-dashboards server are present in your tool list (e.g.
tools_list,tools_search,tool_call,bootstrap,prompts_list,prompts_search). - If fusebase-dashboards is not available (tools are missing or calls fail):
- Stop and inform the user that the fusebase-dashboards MCP connection is required for working with dashboards.
- Suggest that the user check their connected MCP servers in the IDE settings and ensure fusebase-dashboards is added and enabled.
- For config (
.env, MCP config files,fusebase init), see AGENTS.md or themcp/directory. - Do not proceed with dashboard operations until the connection is available.
MCP is for development and dashboard access from the LLM. SDK is only for runtime code in the feature.
MCP vs SDK (reminder)
- MCP tools (
tools_list,tools_search,tools_describe,tool_call,bootstrap,prompts_list,prompts_search, etc.) — for performing actions inside the LLM session: discovery, schema inspection, and reading/writing dashboard data during development. - SDK methods — for runtime code only (feature/browser). The LLM uses
sdk_search/sdk_describeto generate code that the feature will execute; the LLM does not execute SDK.
Do not mix: use either the MCP chain (discovery → tool_call) for development, or the SDK chain (sdk_search → sdk_describe → insert code) for generating feature code. Each operation has the same opId in both MCP and SDK.
Part I — Bootstrap and connection context
Right after session initialization, obtain the connection context: who is authenticated, which scopes/permissions apply, and what default arguments to use for tool calls.
Preferred path (if the client supports MCP Resources)
- Read the resource
resource://connection/context. - From the response, use:
auth,defaults.toolArgs(scope_type, scope_id),usage,capabilities.
Alternative (tools only)
- Call the
bootstraptool (no arguments). - In the response:
connectionContextUri,whoamiToolName,defaults,usage,pointers(tool names for resources_list, resources_get, prompts_list, prompts_search). - If full JSON context is needed — call
whoami(returns the same data as the connection/context resource).
Defaults rule
- If a tool call requires
scope_typeandscope_idand the LLM did not provide them — use values fromdefaults.toolArgsin the connection context. - Explicitly passed arguments always take precedence over defaults.
- For database/dashboard operations, org scope is used by default:
scope_type: "org",scope_idfrom context.
Part II — Tooling flow (when connection exists)
After the connection is established (session ID set, connection context loaded): have domain knowledge (prompts or skill in context), discover operations, get schemas, execute via tool_call.
II.1 Domain knowledge before domain tool calls
You must have the required domain knowledge (database, dashboard, view, relations, rows, data, etc.) before any domain tool calls. Two options:
Option A — Skill in context (when the project has this skill):
- If the project has the fusebase-dashboards skill (this document and
references/*.md, generated from MCP prompts), ensure that skill is in this chat's context. - Then you do not need to load prompts via MCP.
Option B — Load prompts via MCP:
- Always use a group filter when loading prompts.
- Never call
prompts_search({})or omit thegroupsparameter. - Call
prompts_searchwithgroups: e.g.prompts_search({ groups: ["data", "rows", "schema"] })for default dashboard work; add"managedDatabases"for Companies/Deals/Meetings/CRM tasks; add"dashboard","filters","templates","relations","childTables"when needed (see table below). - CRM / managed DB example:
prompts_search({ groups: ["managedDatabases", "data", "relations"] })before working with Companies, Deals, or seeding pipeline data. - If the result is too large, request one group at a time (e.g.
["schema"]then["dashboard"]).
Invariant: Do not call domain operations until you have this knowledge (from the skill in context or from prompts).
Prompt groups (summary):
| Group | Purpose |
| tooling | Discovery and execution (tools.list → describe → call) |
| authz | Permissions, scopes, ID formats |
| bootstrap | Connection context and defaults |
| database | Database entities and operations |
| dashboard | Dashboards, types, root_entity |
| view | Views (dashboard projections) |
| schema | Dashboard schema and columns |
| relations | one_to_many, many_to_many relations |
| filters | View filters |
| representations | Cell display |
| rows | Rows (custom rows) |
| data | Reading/writing cell data |
| templates | Templates and creating from templates |
| childTables | Child-table-link columns, get-or-create child dashboard |
| managedDatabases | System managed DBs: Companies, Deals, Meetings (alias-only discovery) |
II.1a Prompts and skills (version check)
The MCP server is the source of truth for prompt content. The skill folder fusebase-dashboards (e.g. in .claude/skills/ or generated/claude_skills/) contains the entrypoint and versioned reference files for IDE/agent loading.
Version check without loading full prompt bodies:
- Get versions — Call
prompts_listonce. It returns for each prompt:name,title,description,groups, andversion(semver). No message bodies; lightweight. - Compare with skills — Each skill's frontmatter has
mcp_prompt(e.g.domain.childTables) andlast_synced(date). Match bymcp_promptto the list entry; compareversionor regeneration date to see if the skill is up to date. - When to load the prompt — Use
prompts_search(or native get_prompt) only when you need the actual content (e.g. bygroupsor by name). If operations fail or the skill is stale, the VERSION CHECK block in that skill's SKILL.md says: load MCP prompt{mcp_prompt}for latest content.
Rule: Use prompts_list for version checks; use prompts_search only when you need prompt text.
Why: Version checks stay cheap: less data over the network (no full prompt bodies) and fewer tokens used. Load full prompt content only when you actually need it.
II.2 Operation discovery
Operations cannot be guessed by name or REST path. Explicit discovery is required.
Step 1 — catalog or search:
tools_list— full list of available operations (short descriptions, no full schemas).tools_search— search by keywords. Example:tools_search({ queries: ["create", "database"] })ortools_search({ queries: ["getDashboardView", "view"] }).
Use the exact names returned by tools_list / tools_search.
Step 2 — operation schema:
- Call
tools_describewith the operation name (as in the list/search result):tools_describe({ name: "<op name>" })— returns a compact input schema by default.- For data operations (e.g.
batchPutDashboardData) prefer:tools_describe({ name: "batchPutDashboardData", schemaMode: "summary" })— faster and sufficient for most cases. schemaMode:"input"(default),"output","both","summary","full". Use"full"only when needed (large payload).
Response includes: inputSchema, outputSchema, schemaVersion, requiredPrompts (groups/names), and promptsInvariant — reminder to have the required knowledge (from prompts or from this skill in context) before using the tool.
Step 3 — execution:
- All domain (business) operations must be executed only via
tool_call. - Direct invocation by tool name is allowed only for meta/built-in tools explicitly listed in the
tools_listresponse (e.g. bootstrap, whoami, ping, tools_list, tools_search, tools_describe, tool_call, generate_id, prompts_list, prompts_search, resources_list, resources_get). Do not guess or call unknown operations by name — usetool_callonly.
II.3 Executing operations
Universal way for domain operations:
tool_call({
"opId": "<exact name from tools_list/tools_search>",
"args": { ... }
})Optional:
schemaVersion— if provided and it does not match the server's current schema version, the server returnsSCHEMA_VERSION_MISMATCH; then calltools_describeagain and retrytool_callonce with updated arguments.
Response format (for both tool_call and direct built-in calls):
ok: booleanopId: stringdata?: unknown— on successerror?: { message, code?, issues? }— on error
Rules:
- By default always use
tool_callto execute domain operations. - Direct calls only when the tool is registered (from
tools_list) and is a meta/built-in tool. - Do not construct REST URLs from feature names; always rely on discovery (tools_list → tools_describe → tool_call) or the SDK.
- When creating entities (dashboard, view, row, etc.) use
generate_idwhen needed (format:uuidfor global_id,nanoidfor short keys/aliases).
II.4 Working with schemas
- In the
tools_describeresponse, schemas may contain$reflike#/$defs/SomeName. $defslive in the same schema object (inputSchema or outputSchema) where the$refis used.- Resolve
$refby looking up the key in$defsof that same schema. Do not use external or absolute$refvalues. - For data operations prefer
schemaMode: "summary"; if validation fails, request a more complete schema (inputorfull) if needed.
II.5 Error handling and retry
- TOOL_NOT_FOUND — operation is not in the allowed list; do not retry the same opId.
- SCHEMA_VERSION_MISMATCH — refresh the schema via
tools_describeonce and retrytool_callwith correct arguments. - INVALID_ARGS — response may include
issues(validation details). Fix arguments per schema and retry. - EXECUTION_FAILED — error on the API side; message in
error.message. Do not retry automatically without changing the request. - Authorization errors (access outside the token's scope) — do not retry; explain the access limitation to the user.
II.6 MCP vs SDK (in flow)
- MCP tools — for performing actions inside the LLM session (discovery, tool_call for dashboards/data).
- SDK methods — for application/runtime code only. Use
sdk_search/sdk_describewhen you need to generate code for the feature; sameopIdand input schema as the MCP tool.
Do not mix in one scenario: either the MCP chain (discovery → tool_call) or the SDK chain (sdk_search → sdk_describe → code generation).
II.7 Flow diagram summary
Tooling flow after the connection is established:
┌──────────────────────────────────────────────────────────┐
│ LLM / MCP Client (session ready) │
└──────────────────────────────────────────────────────────┘
│
┌─────────────────────────┴─────────────────────────┐
│ 1. Bootstrap (if not done in Part I) │
│ • resource://connection/context OR │
│ • bootstrap() → then whoami if needed │
│ • Remember defaults.toolArgs (scope_type, id) │
└─────────────────────────┬───────────────────────────┘
│
┌─────────────────────────┴─────────────────────────┐
│ 2. Have domain knowledge (before domain calls) │
│ prompts_search({ groups: [...] }) OR skill in ctx │
└─────────────────────────┬───────────────────────────┘
│
┌─────────────────────────┴─────────────────────────┐
│ 3. Discovery │
│ tools_search(queries: [...]) or tools_list() │
│ → pick op by name from response │
└─────────────────────────┬───────────────────────────┘
│
┌─────────────────────────┴─────────────────────────┐
│ 4. Operation schema │
│ tools_describe({ name: "<op>", schemaMode? }) │
│ • data ops: schemaMode: "summary" │
│ • Resolve $ref from $defs in same schema │
│ • Honor requiredPrompts / promptsInvariant │
│ (knowledge from prompts or skill in context) │
└─────────────────────────┬───────────────────────────┘
│
┌─────────────────────────┴─────────────────────────┐
│ 5. Execution │
│ tool_call({ opId: "<name>", args: {...} }) │
│ • scope_type/scope_id from defaults when needed │
│ • On SCHEMA_VERSION_MISMATCH: describe + retry │
└─────────────────────────┬───────────────────────────┘
│
┌─────────────────────────┴─────────────────────────┐
│ 6. Handle response │
│ ok ? data : error (message, code, issues) │
└───────────────────────────────────────────────────┘Short checklist (Part II, connection already exists):
- Get context if needed (resource connection/context or bootstrap + whoami).
- Have domain knowledge: load prompts (with groups) or ensure fusebase-dashboards skill is in chat context.
- Find operations via tools_search or tools_list.
- For each operation used — tools_describe (use summary for data ops).
- Execute domain operations only via tool_call.
- Handle errors by code (including schema version mismatch with one retry after describe).
Summary
- MCP = LLM development: used for discovery and dashboard access from the LLM; configure fusebase-dashboards in your IDE and verify connection before use.
- SDK = runtime only: used only in feature code; see the Fusebase Dashboards SDK skill.
- Connection check: Always verify fusebase-dashboards MCP is connected; if not, ask the user to check connected MCP servers.
- Flow: Bootstrap/context → have domain knowledge (prompts or skill in context) → tools_search/tools_list → tools_describe → tool_call → handle response.
- Managed DB / CRM: Route by user intent (Companies / Deals / Meetings references) →
prompts_search({ groups: ["managedDatabases", ...] })→ alias-onlyresolveAliases→ data ops. See Managed database routing above.
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.

