Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Contributor guide for the Butterbase monorepo covering architecture, adding MCP tools, API routes, and database migrations.
23% 100%+77 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 5 of 22 without it.
Which directory contains the serverless function executor in the Butterbase monorepo, and on which local port does it run?
Identifies services/deno-runtime as the serverless executor directory
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Contributor guide for the Butterbase monorepo. Covers architecture, how to add MCP tools, API routes, database migrations, and coding conventions.
| Directory | Package | Purpose |
|---|---|---|
packages/cli | @butterbase/cli (v0.1.3) | Published CLI tool (Commander.js). Commands: init, apps, schema, functions, storage, deploy, data, env, keys, realtime, status, open |
packages/sdk | @butterbase/sdk (v1.2.1) | Published TypeScript SDK. Modules: auth, storage, functions, AI, billing, realtime, admin |
packages/shared | @butterbase/shared | Internal shared types, constants, schema DSL, error types |
packages/plugin | @butterbase/plugin | Claude Code plugin (this package — skills for AI agents) |
services/control-api | @butterbase/control-api | Fastify API server — the brain. Routes, plugins, services. Port 4000 |
services/mcp-server | @butterbase/mcp | MCP server with capability-dependent tools (consolidated manage_* action-based tools + standalone ones like init_app, deploy_function, select_rows). Runs via stdio or HTTP (served by control-api at /mcp); hosted cloud may also register manage_office |
services/deno-runtime | — | Serverless function executor. Deno-based worker isolation. Port 7133 |
services/cron-scheduler | @butterbase/cron-scheduler | Cron job runner using node-cron + cron-parser |
services/dashboard | — | React management UI (Vite + Radix UI) |
services/dashboard-api | — | Dashboard backend proxy. Port 4100 |
services/docs | @butterbase/docs | Astro/Starlight documentation site |
services/storage-indexer | — | Cloudflare Worker for S3 event indexing |
db/control-plane | — | SQL migrations (sequential numbering, 001_ upward). Control plane database schema |
db/data-plane | — | Per-app database initialization scripts |
services/mcp-server/src/tools/my-new-tool.tsDecide whether the new capability is a standalone tool (single, self-contained operation like init_app) or another action on an existing umbrella tool (manage_schema, manage_function, etc). Most new operations should be added as actions on an existing manage_* tool — this keeps the surface area small for AI agents.
For a brand-new standalone tool, follow the pattern from init-app.ts:
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { z } from 'zod';
import { apiPost } from '../api-client.js';
Next to this one in the catalogue, plus more from the same author.