Skip to main content
Glama

@floopfloop/mcp

npm version Node.js Version License: MIT

FloopFloop API 的模型上下文协议 (MCP) 服务器 — 允许 Claude Desktop、Cursor、Zed 以及任何其他支持 MCP 的 LLM 主机代表用户构建、轮询和优化 FloopFloop 项目。

封装了官方的 @floopfloop/sdk,并将其功能的一个精选子集作为 MCP 工具公开。

工具

工具

功能描述

list_projects

列出您有权访问的所有项目

get_project

通过 ID 或子域名获取项目

project_status

轻量级状态快照 — 可安全轮询

create_project

根据自然语言提示启动新构建

refine_project

向现有项目发送优化消息

wait_for_live

阻塞直到项目达到最终状态

check_subdomain

给定的 slug 是否可用?

suggest_subdomain

根据提示生成友好的 slug

list_secrets

列出项目上的密钥(仅名称)

set_secret

创建/覆盖项目密钥

remove_secret

删除项目密钥

whoami

显示已认证的用户

Related MCP server: mcp-minecraft

配置

获取 API 密钥:使用 floop keys create mcp-host(通过 floop CLI)或在仪表板 → 账户 → API 密钥中获取。创建新密钥需要商业计划。

服务器从环境变量中读取 FLOOP_API_KEY。您可以选择覆盖 FLOOP_API_URL 以指向测试环境。

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %AppData%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "floopfloop": {
      "command": "npx",
      "args": ["-y", "@floopfloop/mcp"],
      "env": { "FLOOP_API_KEY": "flp_..." }
    }
  }
}

重启 Claude Desktop;工具将显示在 🔌 图标下。

Cursor

~/.cursor/mcp.json (或 Cursor 设置 → 工具与集成 → MCP):

{
  "mcpServers": {
    "floopfloop": {
      "command": "npx",
      "args": ["-y", "@floopfloop/mcp"],
      "env": { "FLOOP_API_KEY": "flp_..." }
    }
  }
}

通用 MCP 主机

任何支持 MCP stdio 传输的主机都可以运行该服务器:

FLOOP_API_KEY=flp_... npx -y @floopfloop/mcp

安装

上述配置片段通过 npx -y @floopfloop/mcp 自动拉取包。如果您更喜欢固定版本安装:

npm install -g @floopfloop/mcp
which floop-mcp

使用说明

  • create_project 会立即开始构建。后续可使用 wait_for_live(阻塞)或 project_status(轮询)来了解构建何时完成。

  • wait_for_live 默认上限为 10 分钟(受 timeoutMs 限制,最高 30 分钟)。大多数构建在两分钟内完成。

  • set_secret / remove_secret 被标记为 destructiveHint: true — 主机可能会在执行前要求用户确认。

  • list_secrets 仅返回名称,从不返回具体值。密钥值一旦写入便无法检索;如需更改,请重新设置。

  • 如果发生故障,工具会返回 MCP isError 内容结果,而不是终止会话,以便主机向用户显示错误信息。

开发

git clone https://github.com/FloopFloopAI/floop-mcp.git
cd floop-mcp
npm install
npm run typecheck
npm run build

FLOOP_API_KEY=flp_... node dist/index.js

要在没有 LLM 主机的情况下对 stdio 握手进行冒烟测试:

printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
  | FLOOP_API_KEY=flp_dummy node dist/index.js 2>/dev/null

许可证

MIT

Available Tools

12 tools
check_subdomainCheck subdomain availabilityA
Read-onlyIdempotent

Check whether a given subdomain slug is free.

Inputs: slug (required).

create_projectCreate a projectA

Create a new FloopFloop project from a natural-language prompt. Build kicks off immediately. Call wait_for_live to block until the site is up, or poll project_status.

Inputs: prompt (required), name, subdomain, botType, +2 more.

get_projectGet a projectA
Read-onlyIdempotent

Fetch a single project by id or subdomain. Returns the project's url, status, and metadata.

Inputs: ref (required), teamId.

list_projectsList projectsA
Read-onlyIdempotent

List all FloopFloop projects the authenticated user has access to. Optionally scope to a team.

Inputs: teamId.

list_secretsList a project's secretsA
Read-onlyIdempotent

List secret keys for a project. Values are never returned — only names, because FloopFloop stores secrets one-way-encrypted.

Inputs: ref (required).

project_statusProject build statusA
Read-onlyIdempotent

Fetch the current build/deploy status for a project. Cheap — safe to call in a polling loop.

Inputs: ref (required).

refine_projectRefine a project with a new instructionA

Send a refinement message to an existing project. Triggers a follow-up build unless the backend decides it's a code-only edit.

Inputs: ref (required), message (required), wait.

remove_secretRemove a project secretA
DestructiveIdempotent

Delete a secret from a project.

Inputs: ref (required), name (required).

set_secretSet a project secretB
DestructiveIdempotent

Create or overwrite an environment secret on a project.

Inputs: ref (required), name (required), value (required).

suggest_subdomainSuggest a subdomain from a promptB
Read-only

Ask the backend to generate a friendly subdomain slug based on a natural-language prompt.

Inputs: prompt (required).

wait_for_liveWait until a project is liveA
Read-onlyIdempotent

Block (polling every 2 s) until the project reaches a terminal state. Returns the final Project on success, an error result on build-failed or build-cancelled.

Inputs: ref (required), timeoutMs.

whoamiShow the authenticated userA
Read-onlyIdempotent

Return the current user's id, email, and plan.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool targets a distinct resource (project, secret, subdomain) with clear actions. No overlap: check_subdomain vs suggest_subdomain are separate operations, and wait_for_live complements create_project without ambiguity.

    Naming Consistency4/5

    Tools mostly follow verb_noun pattern (e.g., create_project, remove_secret, list_projects). whoami is a mild deviation but is a common convention. Minor inconsistency: project_status is noun-based while others are verb-based.

    Tool Count5/5

    12 tools is well-scoped for a project management MCP. Each tool covers a necessary operation without bloat, from project CRUD to secret and subdomain management.

    Completeness4/5

    Covers core project lifecycle (create, get, list, refine, status) and secret management (list, set, remove). Missing update_project (rename) or delete_project, but these might be intentional gaps for safety.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers