mcp-server

v2026.1202.1
@fluidgrids/mcp-server Checked 3 days ago Published 3 days ago

FluidGrids MCP Server - Model Context Protocol server for AI-powered workflow automation

Model Context Protocol server for FluidGrids — exposes the FluidGrids workflow-automation surface (workflows, runs, nodes, credentials, webhooks, scheduled jobs, plus the standard platform modules from @burdenoff/mcp-libs) as MCP tools for AI assistants like Claude. The actual tool/resource/prompt surface is generated by @burdenoff/mcp-libs from the 9 modules mounted in src/modules.ts (a least-privilege catalog). Tool names are prefixed with fluidgrids_ (for the product-specific module) or with their own product prefix for the platform modules.

Summary extracted from the README.

FluidGrids MCP Server

Model Context Protocol server for FluidGrids — exposes the FluidGrids workflow-automation surface (workflows, runs, nodes, credentials, webhooks, scheduled jobs, plus the standard platform modules from @burdenoff/mcp-libs) as MCP tools for AI assistants like Claude.

The actual tool/resource/prompt surface is generated by @burdenoff/mcp-libs from the 9 modules mounted in src/modules.ts (a least-privilege catalog). Tool names are prefixed with fluidgrids_ (for the product-specific module) or with their own product prefix for the platform modules.

Features

  • FluidGrids workflow surface — create, update, publish, activate, trigger, run, and observe FluidGrids workflows
  • Platform modules — auth, workspaces, rbac, tags, files, integrations, notifications, export
  • Destructive tools need confirm: true — every tool advertises MCP annotations (readOnlyHint / destructiveHint / openWorldHint); deleting, archiving, cancelling a run or revoking access is not executed unless the client passes confirm: true (the call otherwise returns '<tool>' is a destructive action and was NOT executed.)
  • Two transports — stdio (default, for local Claude Desktop / Claude Code) and HTTP (opt-in via --http, for remote deploys)
  • AI-assisted prompts — fluidgrids-build-workflow, fluidgrids-debug-run
  • Live resources — fluidgrids://schema, fluidgrids://nodes

Installation

The server is published to npm as @fluidgrids/mcp-server by the Release workflow (CalVer versions, e.g. 2026.1021.2). Most users never install it by hand: an MCP client runs it on demand with npx:

npx -y @fluidgrids/mcp-server            # stdio (default)
npx -y @fluidgrids/mcp-server --http     # HTTP transport

To work on it from source:

git clone https://github.com/algoshred/fluidgrids-mcp
cd fluidgrids-mcp
bun install --frozen-lockfile
bun run build

The built entrypoint is dist/index.js (also exposed as the fluidgrids-mcp bin). @burdenoff/mcp-libs is published publicly, so no registry token is needed to install; bunfig.toml still forwards NPM_TOKEN for the @burdenoff scope when it is set.

Container image

The Dockerfile builds a non-root image that serves the HTTP transport on port 3002 (/mcp for MCP, /health for probes). The HTTP transport refuses unauthenticated requests (send the key as Authorization: Bearer <key> or X-API-Key), and DNS-rebinding protection rejects any Host header not listed in ALLOWED_HOSTS, so set both at run time:

docker build -t fluidgrids-mcp .
docker run --rm -p 3002:3002 -e MCP_API_KEY=<key> \
  -e ALLOWED_HOSTS=localhost:3002,127.0.0.1:3002 fluidgrids-mcp

The image is not deployed anywhere today; there is no hosted FluidGrids MCP endpoint.

Usage

Stdio (local MCP client)

For Claude Desktop, Claude Code, or any other MCP client that speaks stdio:

{
  "mcpServers": {
    "fluidgrids": {
      "command": "npx",
      "args": ["-y", "@fluidgrids/mcp-server"]
    }
  }
}

bun run dev watches and rebuilds on save.

HTTP (opt-in)

# default port (from product defaults / env)
bun dist/index.js --http

# custom port
bun dist/index.js --http --port 4100

There is no SSE transport — the legacy README's --transport sse flag is gone, and mcp-libs does not register an SSE handler. Use HTTP for remote deploys.

Configuration

The MCP server picks up its config from mcp-libs's standard configDir mechanism. Default config dir is ~/.config/fluidgrids-mcp/ and the default OIDC client is burdenoff_mcp_fluidgrids (registered in global-auth-svc).

The first run walks you through the device-code login (fluidgrids_auth_login → browser → token saved locally). Expired tokens refresh automatically.

Environment variables

Read by @burdenoff/mcp-libs core via the FLUIDGRIDS_ env prefix. The legacy README's FLUIDGRIDS_API_URL / FLUIDGRIDS_GRAPHQL_URL / MCP_PORT keys are not read — that documentation predated the @burdenoff/mcp-libs refactor (PR #3). The real keys are:

Env var Purpose Default
FLUIDGRIDS_WORKSPACE_ENDPOINT Workspace-tier GraphQL endpoint https://graphqlworkspaces.burdenoff.com/workspaces/graphql (local dev: http://localhost:4003/workspaces/graphql)
FLUIDGRIDS_GLOBAL_ENDPOINT Global-tier GraphQL endpoint https://graphql.burdenoff.com/global/graphql (local dev: http://localhost:4000/global/graphql)
FLUIDGRIDS_OIDC_ISSUER OIDC issuer URL derived from global endpoint
FLUIDGRIDS_CLIENT_ID OIDC client id burdenoff_mcp_fluidgrids
FLUIDGRIDS_ACCESS_TOKEN Pre-issued access token (skips device-code flow) —
FLUIDGRIDS_REFRESH_TOKEN Pre-issued refresh token —
FLUIDGRIDS_WORKSPACE_TOKEN Pre-issued workspace-scoped token —
FLUIDGRIDS_API_KEY (or MCP_API_KEY) API-key auth header —
FLUIDGRIDS_WORKSPACE_ID Selected workspace id —
FLUIDGRIDS_ORGANIZATION_ID Selected org id —
FLUIDGRIDS_HTTP_PORT (or PORT) HTTP transport port (default transport is stdio) 3002
HOST (or MCP_HOST) Bind host for HTTP transport 127.0.0.1
CORS_ORIGINS Allowed CORS origins (comma-separated) http://127.0.0.1,http://localhost
ALLOWED_HOSTS DNS rebinding allow-list 127.0.0.1,localhost

To point the MCP at the alpha or prod stack instead of localhost, set the endpoints:

FLUIDGRIDS_GLOBAL_ENDPOINT=https://graphql.burdenoff.com/global/graphql \
  FLUIDGRIDS_WORKSPACE_ENDPOINT=https://graphqlworkspaces.burdenoff.com/workspaces/graphql \
  bun dist/index.js --http --port 4100

For the MCP server running behind Cloudflare Access (alpha), see ~/products/dev/platform/context/operations/cfaccess/ — the MCP does not carry the CF Access header itself.

Development

# Install (Bun 1.3.14+ — enforced by @burdenoff/mcp-libs engines)
bun install --frozen-lockfile

# Watch + rebuild + reload on save
bun run dev

# Lint / format / type-check
bun run lint
bun run format:check
bun run typecheck

CI

.github/workflows/ci.yml runs lint, test, build, integration-test, security on every push to main / develop and on every PR. The pr-gate job depends on all five and is the required status check on main (see BOFF-7093).

License

PROPRIETARY — all rights reserved. See LICENSE.

Resources