FF

fivetran/fivetran-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

27 stars 16 forks 质量 85 趋势 20MIT

这是一个模型上下文协议(MCP)服务器,Fivetran用户可以克隆、配置并在自己的环境中运行。

概览

值得了解的四点:- 清单包含 Fivetran API 中的所有端点,因此系统密钥和用户 API 密钥操作在你授予的任何FIVETRAN_SCOPE内都是可访问的。设置推荐的拒绝列表以保持它们无法触及;服务器在启动时警告,而任何请求仍然可调用。system-keys:write 和 system-keys:delete 是有效的 DISALLOWED_ACTIONS 令牌。- 在 0.3.2 中修复——每个服务的连接器配置默默缺少共享的 schema_format_* 参考,而这些引用是整个配置中唯一无条件的必需字段。如果通过 get_schema/connections_write 创建连接器失败或返回不完整,现在已修复。- 通过 --transport streamable-http(或 MCP_TRANSPORT),而不仅仅是 stdio。参见 HTTP 运行(高级版)。- 实际令牌验证尚未实现,因此目前可流式HTTP模式仅以临时头部转发形式工作(保持FIVETRAN_AUTH_ISSUER未设置)。

概述(AI 翻译)

从0.3版本升级? 有四件事值得了解:

  • 凭证端点由DISALLOWED_ACTIONS管理。 清单包含Fivetran API中的所有端点,因此系统密钥和用户API密钥操作在你授予的任何FIVETRAN_SCOPE内均可访问。设置推荐的拒绝列表以保持它们不可访问;服务器启动时会警告,而任何端点仍可调用。system-keys:write和system-keys:delete是有效的DISALLOWED_ACTIONS令牌。
  • get_schema(service=X) 以前会丢弃所需的目的模式字段。 在 0.3.2 中修复——每服务连接器配置中默默缺少共享的 schema_format_* 引用,而该引用包含整个配置中唯一的无条件 required 字段。如果通过 get_schema/[connections_write 创建连接器失败或返回不完整,现在已经修复了。
  • **服务器现在可以通过--transport streamable-http(或MCP_TRANSPORT)作为托管HTTP服务器运行,而不仅仅是stdio。参见“通过HTTP运行(高级版)。
  • **OAuth 资源服务器支持仅限于基础设施支架,尚未启用。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Fivetran MCP Server

Upgrading from version 0.3? Four things worth knowing:

  • Credential endpoints are governed by DISALLOWED_ACTIONS. The manifest carries every endpoint in the Fivetran API, so system-key and user-API-key operations are reachable within whatever FIVETRAN_SCOPE you grant. Set the recommended denylist to keep them out of reach; the server warns at startup while any remain callable. system-keys:write and system-keys:delete are valid DISALLOWED_ACTIONS tokens.
  • get_schema(service=X) used to drop required destination-schema fields. Fixed in 0.3.2 — per-service connector configs were silently missing the shared schema_format_* refs, which carry the only unconditional required field in the whole config. If connector creation through get_schema/connections_write ever failed or came back incomplete, that’s now fixed.
  • The server can now run as a hosted HTTP server, via --transport streamable-http (or MCP_TRANSPORT), instead of only stdio. See Running over HTTP (advanced).
  • OAuth resource-server support is infrastructure scaffolding only, not yet functional. Real token verification isn’t implemented yet, so streamable-http mode today only works in its interim header-forwarding form (leave FIVETRAN_AUTH_ISSUER unset).

An MCP server that you can use to interact with your Fivetran environment. It allows you to ask read-only questions like “when was the last time my postgres connection completed a sync?” and “are any of my connections broken?” Set FIVETRAN_SCOPE to read/write or read/write/delete to unlock write and delete operations, and use DISALLOWED_ACTIONS to carve exceptions out of that tier (for example, system-keys:write to deny both write and delete operations on system keys). Write and delete operations are marked with advisory instructions telling the client model to confirm with you before execution; the server does not enforce confirmation.

Using the tools

The server exposes two discovery tools plus one execution tool for each allowed resource/action pair:

  • list_endpoints discovers API endpoints. Call it without arguments for category counts, with category to list a resource such as connections, or with search to find endpoints by name, summary, or path.
  • get_schema returns the parameters, request body, and response schema for an endpoint. For connection and destination create/modify endpoints, pass service (for example, postgres) to include the service-specific configuration fields.
  • _ tools execute endpoints in that group. Examples include connections_read, connections_write, and destinations_delete. Pass the endpoint name plus any path_params, query, or body values required by its schema.
在 GitHub 查看完整 README

安装

uvx --from git+https://github.com/fivetran/fivetran-mcp fivetran-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "fivetran": { "command": "uvx", "args": ["--from", "git+https://github.com/fivetran/fivetran-mcp", "fivetran-mcp"], "env": { "FIVETRAN_API_KEY": "your-api-key", "FIVETRAN_API_SECRET": "your-api-secret", "FIVETRAN_SCOPE": "read", "DISALLOWED_ACTIONS": "system-keys:read,users:read:get_user_api_key,users:read:list_api_keys,users:write:create_user_api_key,users:write:rotate_user_api_key,users:delete:delete_user_api_keys" } } } }