Repository navigation
BigBase MCP — From Zero to Deployed Site in 15 Minutes #192
danielvm-git
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
BigBase MCP — From Zero to Deployed Site in 15 Minutes
Glossary
bb_prefix). Used as a Bearer token for authenticated MCP tool callsbb_dep_prefix). Scoped to one site, used in CI/CDmcp:provisiongrants write access to MCP tools/mcpwith JSON-RPC. Server returnsMcp-Session-Idfor session persistenceStep 1 — Create your BigBase account
Expected response:
{ "token": "eyJhbGci...", "refresh_token": "...", "user": { "id": 1, "email": "you@example.com" } }Save the
token— this is your JWT session token. You'll need it for the next steps.Step 2 — Create an organization
Every API key belongs to an organization. Create one:
Expected response:
{ "data": { "id": 1, "name": "my-org", "slug": "my-org" } }Note the
id— you'll need it to create API keys.Step 3 — Create an MCP API key
This is the key your AI agent will use to talk to BigBase. The
mcp:provisionscopegrants access to write tools (create repos, sites, trigger deploys).
Expected response:
{ "data": { "id": 1, "name": "mcp-key", "scopes": ["mcp:provision"], "key": "bb_a1b2c3d4e5f6..." } }This
bb_key is what your AI agent uses as a Bearer token. Treat it like a password.Step 4 — Store the key securely with direnv
We use direnv so your API key is available to your agent
automatically — no hardcoding, no leaking into git.
4a. Install direnv
Then add the hook to your shell:
Open a new terminal (or
source ~/.bashrc).4b. Create
.envrcin your project rootReplace
bb_a1b2c3d4e5f6...with the key from Step 3.4c. Allow it
4d. Add
.envrcto.gitignoreStep 5 — Configure MCP for your agent
BigBase MCP is live at
https://mcp.bigbase.click/mcp. Pick your agent below.Claude Code
Create or edit
.mcp.jsonin your project root:{ "mcpServers": { "bigbase": { "type": "http", "url": "https://mcp.bigbase.click/mcp", "headers": { "Authorization": "Bearer ${BIGBASE_API_KEY}" } } } }Cursor / VS Code
Create
.cursor/mcp.json(or.vscode/mcp.json):{ "servers": { "bigbase": { "serverUrl": "https://mcp.bigbase.click/mcp", "headers": { "Authorization": "Bearer ${BIGBASE_API_KEY}" } } } }OpenCode / MiMo Code
Create
opencode.jsonc(OpenCode) or.mimocode/mimocode.json(MiMo Code) in your project root:{ "mcp": { "bigbase": { "type": "remote", "url": "https://mcp.bigbase.click/mcp", "headers": { "Authorization": "Bearer ${BIGBASE_API_KEY}" } } } }Pi Agent
Create
.pi/mcp.jsonin your project root:{ "mcpServers": { "bigbase": { "url": "https://mcp.bigbase.click/mcp", "headers": { "Authorization": "Bearer ${BIGBASE_API_KEY}" } } } }Antigravity (Gemini CLI / IDE)
Edit
~/.gemini/settings.json(global) or.gemini/settings.json(project):{ "mcpServers": { "bigbase": { "serverUrl": "https://mcp.bigbase.click/mcp", "headers": { "Authorization": "Bearer ${BIGBASE_API_KEY}" } } } }Step 6 — Verify the connection
Ask your AI agent:
Your agent should:
ping→ getponglist_services→ get the full service catalog (auth, db, storage, deploy, etc.)Step 7 — Deploy your first site (the payoff)
Now that MCP is connected, ask your agent:
Your agent will use these MCP tools in order:
create_repocreate_sitedeploy_siteOr, if you already have a repo on GitHub, skip to:
Your agent will call
list_repos→ find your repo →deploy_site.Tool Reference
Public (no auth needed)
pinglist_servicesget_service_docsget_code_examplelist_frameworksget_ci_templatedeploy_guideRead (any bb_ key)
list_reposlist_sitesget_siteget_deploy_statusget_deploy_logsWrite (bb_ key +
mcp:provisionscope)create_repocreate_sitedeploy_siteprovision_ci_credentialsrevoke_site_keyTroubleshooting
authorization required$BIGBASE_API_KEYis set and MCP config references itinsufficient scopemcp:provisionscope — recreate with the right scopes400 Bad Request: GET requires Mcp-Session-Idemail already registered/api/auth/logininsteadSecurity Checklist
.envrcis in.gitignore— never commit secretsmcp:provisionif you only need read)DELETE /api/orgs/{id}/api-keys/{keyID}+ create new onebb_dep_) are scoped to one site — use them in CI/CD, not as general API keysNext Steps
get_code_examplewith your framework (Next.js, SvelteKit, Astro, Express...)provision_ci_credentialsto get a deploy token, add it as a GitHub secretget_service_docsfor auth, storage, or functionsFound this helpful? Have questions? Ask below — we're building this for solo devs like you.
All reactions