Community研究与数据分析github.com

ComposioHQ/Neon-Automation

自动化 Neon 无服务器 PostgreSQL 操作——通过 Composio MCP 集成管理项目、分支、数据库、角色和连接 URI。

Neon-Automation 是什么?

Neon Automation 技能通过 Composio MCP 集成,使开发者能够自动化管理 Neon 无服务器 PostgreSQL 数据库的关键操作。该技能支持列出项目与分支、检查数据库详情、获取连接 URI、管理角色以及将数据库操作集成到跨应用工作流中。它适用于任何支持 Composio MCP 的客户端(如 Claude Code、Cursor、Codex),通过 API 密钥进行身份验证。核心工作流包括使用 `NEON_RETRIEVE_PROJECTS_LIST` 发现项目、使用 `NEON_GET_BRANCHES_FOR_PROJECT` 枚举分支、使用 `NEON_GET_PROJECT_CONNECTION_URI` 获取连接字符串等。注意:使用个人 API 密钥时,必须在项目列表调用中提供 `org_id`,且连接 URI 包含凭据,需作为秘密处理。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/neon-automation

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Neon 自动化

自动化你的 Neon 无服务器 Postgres 工作流——列出项目和分支、检查数据库、检索连接 URI、管理角色,并将 Neon 数据库操作集成到跨应用管道中。

工具包文档: composio.dev/toolkits/neon


设置

  1. 将 Composio MCP 服务器添加到你的客户端:https://rube.app/mcp
  2. 出现提示时连接你的 Neon 账户(API 密钥认证)
  3. 开始使用下面的工作流

核心工作流

1. 列出项目

使用 NEON_RETRIEVE_PROJECTS_LIST 发现与已验证用户关联的所有项目。

工具:NEON_RETRIEVE_PROJECTS_LIST
输入:
  - org_id:字符串(使用个人 API 密钥时为必填)
  - limit:整数(1-400,默认 10)
  - cursor:字符串(来自先前响应的分页游标)
  - search:字符串(按项目名称或 ID 搜索,支持部分匹配)
  - timeout:整数(毫秒;超时时返回部分结果)

重要提示: 使用个人 API 密钥时,org_id 为必填项。请先通过 NEON_GET_USER_ORGANIZATIONS 获取它。

2. 获取项目详情

使用 NEON_ACCESS_PROJECT_DETAILS_BY_ID 检查项目配置、所有者信息和消耗指标。

工具:NEON_ACCESS_PROJECT_DETAILS_BY_ID
输入:
  - project_id:字符串(必需)——格式:“adjective-noun-number”,例如“dry-smoke-26258271”

3. 列出项目中的分支

使用 NEON_GET_BRANCHES_FOR_PROJECT 枚举项目中的分支(开发阶段)。

工具:NEON_GET_BRANCHES_FOR_PROJECT
输入:
  - project_id:字符串(必需)
  - search:字符串(可选,按分支名称或 ID 搜索)

4. 列出分支上的数据库

使用 NEON_FETCH_DATABASE_FOR_BRANCH 清查特定项目和分支中的数据库。

工具:NEON_FETCH_DATABASE_FOR_BRANCH
输入:
  - project_id:字符串(必需)
  - branch_id:字符串(必需)

5. 获取连接 URI

使用 NEON_GET_PROJECT_CONNECTION_URI 获取项目/分支/数据库的 Postgres 连接字符串。

工具:NEON_GET_PROJECT_CONNECTION_URI
输入:
  - project_id:字符串(必需)
  - database_name:字符串(必需)——例如“neondb”
  - role_name:字符串(必需)——例如“neondb_owner”
  - branch_id:字符串(可选,默认为项目默认分支)
  - endpoint_id:字符串(可选,默认为读写端点)
  - pooled:布尔值(可选,添加 -pooler 以启用连接池)

安全提示: 返回的 URI 包含凭据。请将其视为秘密——不要记录或共享它。

6. 检查数据库详情和角色

使用 NEON_RETRIEVE_BRANCH_DATABASE_DETAILS 在连接前验证数据库,使用 NEON_GET_BRANCH_ROLES_FOR_PROJECT 列出可用角色。

工具:NEON_RETRIEVE_BRANCH_DATABASE_DETAILS
输入:
  - project_id:字符串(必需)
  - branch_id:字符串(必需)
  - database_name:字符串(必需)

工具:NEON_GET_BRANCH_ROLES_FOR_PROJECT
输入:
  - project_id:字符串(必需)
  - branch_id:字符串(必需)

已知陷阱

陷阱详情
org_id 为必填项使用个人 API 密钥时,NEON_RETRIEVE_PROJECTS_LIST 返回 HTTP 400 “org_id is required”。请先调用 NEON_GET_USER_ORGANIZATIONS。
分页不完整无分页时项目列表可能不完整。使用 cursor 迭代直到其为空。
速率限制高频率列出时 NEON_RETRIEVE_PROJECTS_LIST 返回 HTTP 429。避免冗余调用并在重试前退避。
无效的角色/数据库配对当 database_name/role_name 配对无效时,NEON_GET_PROJECT_CONNECTION_URI 返回 401/403。使用 NEON_GET_BRANCH_ROLES_FOR_PROJECT 选择允许的角色。
连接 URI 是秘密返回的 URI 包含凭据。切勿以明文记录、显示或共享。

快速参考

工具标识符描述
NEON_RETRIEVE_PROJECTS_LIST列出所有 Neon 项目,支持分页和搜索
NEON_ACCESS_PROJECT_DETAILS_BY_ID获取项目配置和消耗指标
NEON_GET_BRANCHES_FOR_PROJECT列出项目中的分支
NEON_FETCH_DATABASE_FOR_BRANCH列出特定分支上的数据库
NEON_GET_PROJECT_CONNECTION_URI获取包含凭据的 Postgres 连接 URI
NEON_RETRIEVE_BRANCH_DATABASE_DETAILS检查数据库元数据和设置
NEON_GET_USER_ORGANIZATIONS列出已验证用户的组织
NEON_CREATE_API_KEY_FOR_ORGANIZATION为组织创建新的 API 密钥
NEON_GET_BRANCH_ROLES_FOR_PROJECT列出分支上的可用角色

由 Composio 提供支持

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相关技能