mcp-server

v2.0.183
@superblocksteam/mcp-server Checked 9 hours ago Published 10 days ago

Superblocks MCP server

A Model Context Protocol server that connects AI assistants (Claude, ChatGPT, Cursor, and other MCP clients) to the Superblocks platform. It lets AI agents inspect, create, and manage Superblocks applications on your behalf. For a beginner-friendly walkthrough, see QUICKSTART.md. ChatGPT requires an HTTPS endpoint. Start the server with the HTTP transport:

Summary extracted from the README.

Superblocks MCP Server

A Model Context Protocol server that connects AI assistants (Claude, ChatGPT, Cursor, and other MCP clients) to the Superblocks platform. It lets AI agents inspect, create, and manage Superblocks applications on your behalf.

Quick Start

For a beginner-friendly walkthrough, see QUICKSTART.md.

# Install the Superblocks CLI
npm install -g @superblocksteam/cli

# Authenticate
superblocks login

# Start the MCP server (stdio, for Cursor / Claude Desktop)
superblocks mcp serve

# Generate configuration for your MCP client
superblocks mcp setup --client cursor
superblocks mcp setup --client claude

Standalone (development)

# From the superblocks repo root
pnpm install
pnpm turbo run build --filter @superblocksteam/mcp-server...

# Run directly
node packages/cli/packages/mcp-server/dist/index.js

Client Configuration

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "superblocks": {
      "command": "superblocks",
      "args": ["mcp", "serve"]
    }
  }
}

Claude Desktop

Add to ~/.claude/mcp.json:

{
  "mcpServers": {
    "superblocks": {
      "command": "superblocks",
      "args": ["mcp", "serve"]
    }
  }
}

ChatGPT (HTTP transport)

ChatGPT requires an HTTPS endpoint. Start the server with the HTTP transport:

superblocks mcp serve --transport http --port 8484 --http-token <token>

Then expose it via a tunnel (e.g., ngrok) and configure it as a ChatGPT connector pointing to https://<your-tunnel>/mcp, sending Authorization: Bearer <token>.

Authentication

The MCP server uses the same authentication as the Superblocks CLI. After running superblocks login, the MCP server can access the same environment automatically.

For multiple environments, you can add tokens directly:

superblocks-mcp auth add --base-url https://staging.superblocks.com --token <api-key>
superblocks-mcp auth list

Auth resolution order:

  1. CLI auth (~/.superblocks/auth.json) -- checked first
  2. MCP auth store (~/.superblocks/mcp-auth.json) -- multi-environment extension

Available Tools

get_auth_status

Check whether you are authenticated for a Superblocks environment.

get_current_user

Get the currently authenticated user for a given base_url: their identity, the organizations they belong to, and their permissions.

/users/me also serves the browser UI, so this tool returns a projection of it rather than the whole payload, which exceeded MCP client result-size limits. Omitted: the LaunchDarkly flagBootstrap blob and onboarding-gate state (browser-only), the organization API key and per-agent keys (credentials do not belong in an LLM transcript), and the agent, profile, group, and billing lists (unbounded in size). Use list_organization_agents for agent details.

get_application_summary

Fetch application metadata: ID, name, organization, app mode (1.0 / 2.0), deployed commit, environment, and App Database status (app_database.has_database, overall_state, needs_attention; an application without a database never needs attention, and its overall_state says whether one could be added). app_databases_availability is available, disabled (the organization has App Databases turned off), unsupported (the server predates the App Databases routes), or error (the App Databases read failed; app_databases_error carries the message); app_database is null in the last three cases and the summary itself still succeeds.

get_application_commit_history

Paginated, reverse-chronological commit history with committer details and DBFS hashes.

get_audit_events

Fetch v2 audit events in OCSF format with cursor pagination. Supports filters for class, status, severity, actor, resource, and full-text search.

Audit tool guidance

  • Use get_audit_events for all audit investigations.
  • get_audit_events covers a broad set of operations, including:
    • Applications
    • APIs / Workflows
    • Folders
    • Integrations
    • Users & Groups
    • RBAC
    • SCIM
    • Tokens
    • Billing
    • OAuth
    • Organization settings
    • Files
    • Profiles
    • Repositories
    • Knowledge
    • Credentials

get_integration_access

List all users and groups that have access to an integration, including assigned roles and effective permissions.

get_application_structure

Lightweight application view. For 1.0 apps: page and API summary. For 2.0 apps: directory tree and checkout metadata (checkout_path is null when a temporary checkout is used and cleaned up).

checkout_application

Materialize a Clark AI App (2.0) to disk. 1.0 apps are rejected. Supports historical snapshots via commit_id.

Deployment

  • deploy_application - deploy an application using either app_url or application_id + base_url (optionally with commit_id)

Integration Management

  • get_integration - fetch an integration by ID
  • get_integration_config_schema - JSON schema for a plugin's configuration
  • create_integration - create an integration from name, plugin_id, and configuration; returns integration_url when the dashboard shares the API origin
  • delete_integration - delete an integration by ID
  • get_integration_access - list users/groups with integration access

list_integrations rows carry managed_by, application_id, and user_editable. Integrations with managed_by: "database_lifecycle" back an App Database: they belong to one application and the server refuses update_integration and delete_integration on them.

Folder Management

  • list_folders - list folders
  • create_folder - create a folder
  • update_folder - rename a folder
  • delete_folder - delete a folder

RBAC Assignment Management

  • get_workflow_access - list users/groups with access to a workflow
  • get_job_access - list users/groups with access to a scheduled job
  • list_rbac_assignments - list RBAC assignments for a specific resource
  • grant_resource_access - create RBAC assignments
  • update_resource_access - update a specific assignment
  • revoke_resource_access - delete a specific assignment

Billing Management

  • list_builder_seats - list builder seat assignments
  • assign_builder_seat - assign a seat to a user
  • unassign_builder_seat - remove a seat from a user
  • update_subscription - update subscription settings (payload passthrough)
  • create_checkout_session - create a checkout session (payload passthrough)
  • create_billing_intent - initialize a billing/payment intent
  • submit_payment - submit payment details (payload passthrough)
  • check_promo - validate a promo code
  • downgrade_plan - downgrade to free plan
  • contact_sales - submit a sales-contact request (payload passthrough)

Agent + Git Helpers

  • list_organization_agents - list organization agents
  • get_git_fresh_token - get a fresh Git credential token for app + host
  • find_apps_by_package - query app package usage index for declared package.json dependency usage
  • list_packages_by_app - reverse of find_apps_by_package: given an application_id, list the indexed packages used by that app
  • list_distinct_packages_in_org - org-wide aggregate sibling: returns one row per distinct package_name across the org's package-usage index, with versions[], app_count, deployed_app_count, and a bounded sample_app_ids[] (≤10). Use this to enumerate the org's full package footprint in a single call (e.g. reconciling against a CVE feed or external registry) instead of paging find_apps_by_package per package.

App Mode Coverage Notes

  • Multi-page (1.0) apps expose structured page/API metadata directly.
  • Code-mode (2.0) apps are file-based; some tools query server indexes instead of local checkout scans.
  • find_apps_by_package, list_packages_by_app, and list_distinct_packages_in_org all query the same package-usage index and support optional deployed filtering:
    • omitted: search all indexed commits
    • true: deployed commits only
    • false: non-deployed commits only
  • find_apps_by_package returns commit-level matches (commit_id, is_deployed) and does exact declared-string matching; it does not represent resolved lockfile versions.
  • list_packages_by_app returns one row per (commit_id, package_name) for the given app. Use commit_id to scope to a single commit, or deployed=true to limit to the currently-deployed bundle's packages. Supports optional package_name, package_version, package_version_resolved, and dependency_source filters.
  • list_distinct_packages_in_org collapses to one row per package_name (no per-app or per-commit fan-out). Supports package_name_prefix (literal prefix via Postgres starts_with() — % and _ are not wildcards), dependency_source (root / direct / transitive), and deployed. sample_app_ids is a deterministic, bounded sample (≤10, ordered by application_id); use find_apps_by_package to enumerate the full app set for a given package.

App Databases

Read-only view of the App Databases the organization has provisioned. Every tool except get_application_database_compatibility requires the app_databases:manage permission (Admin and Owner by default), and all of them require App Databases to be enabled for the organization.

  • get_app_databases_overview - org-wide rollup: database_record_count (every binding record the server holds, retired ones included; the server only resolves retirement per returned page, so there is no live count yet), per data tag how many apps and instances it has and whether a lifecycle agent serves it, every physical instance with capacity and per-state database counts, advertised physical pools, and which pools/data tags can be provisioned right now
  • list_app_databases - one row per database with its application, data tag, engine, lifecycle/migration state, hosting instance, integration, connection host/port/database, and last error. Retired databases (retired_at set) are left out unless include_retired is true; because the server cannot filter them before paginating, the tool reads further server pages (up to 10 per call) until the requested page of active rows is full. offset/next_offset count server records, retired included, and total_count is the server's record count
  • list_app_database_pools - every physical pool (agent_name, engine), including pools still provisioning or whose last run failed, with its registered instances and latest provisioning run
  • get_app_database_pool_provisioning_run - poll one provisioning run by provisioning_id
  • get_application_database_compatibility - whether one application's App Database can be served on every data tag it can run under (has_database, overall_state, needs_attention, the same verdict fields as get_application_summary), plus data_tags with the lifecycle operations missing per tag. For an application without an App Database, needs_attention is always false (there is nothing to fix) and overall_state says whether a database could be added, which is what the server's create gate checks. Readable by anyone who can view the application

Provider diagnostics (raw Terraform output) are dropped from last_error and provisioning errors; the App Databases admin page shows them on demand. Mutating operations (provision, retry, retire) are intentionally not exposed yet.

Existing tools also surface App Database facts: list_applications reports has_app_database per row and accepts a has_app_database filter, get_application_summary includes an app_database status block, and list_integrations marks the integrations an App Database owns (see above). The first two carry app_databases_availability so an agent can tell available from disabled (organization has the feature off), unsupported (older server without the routes), error (the App Databases read failed; see app_databases_error), or not_checked (empty page, nothing to decorate). An App Databases failure never fails the application list or summary; only the has_app_database filter, which cannot be answered without it, rejects. The dedicated App Databases tools surface those conditions as errors instead.

Tool Annotations

All tools include MCP tool annotations so clients can make informed decisions about auto-approval:

  • Read-only tools (get_auth_status, get_application_summary, etc.) are marked with readOnlyHint: true
  • checkout_application writes to disk but is non-destructive (destructiveHint: false)

Transports

Transport Use case Command
stdio (default) Cursor, Claude Desktop, local MCP clients superblocks mcp serve
HTTP ChatGPT, remote clients superblocks mcp serve --transport http --port 8484 --http-token <token>

The HTTP transport binds to 127.0.0.1 by default. For security, HTTP transport requires an authentication token. Provide it via --http-token or SUPERBLOCKS_MCP_HTTP_TOKEN.

Environment Hints

The server recognizes these Superblocks environments from URLs:

  • app.superblocks.com / app.superblockshq.com → prod
  • eu.superblocks.com / prod-eu.superblocks.com → prod-eu
  • staging.superblocks.com → staging
  • pr-*.superblocks.dev → ephemeral
  • localhost / 127.0.0.1 → local

Unknown URLs still work as long as auth is configured for that base URL.

Troubleshooting

"Not authenticated" errors

# Check which environments are configured
superblocks-mcp auth list

# Re-authenticate via CLI
superblocks login

# Or add a token for a specific environment
superblocks-mcp auth add --base-url <url> --token <api-key>

Server won't start

  • Ensure node is on your PATH (Node.js >= 24)
  • Rebuild: pnpm turbo run build --filter @superblocksteam/mcp-server...
  • Test standalone: superblocks mcp serve --help