Community研究與資料分析github.com

ComposioHQ/Neon-Automation

自動化 Neon 無伺服器 Postgres 操作——透過 Composio MCP 整合管理專案、分支、資料庫、角色及連線 URI。

Neon-Automation 是什麼?

這項技能讓 AI 代理(如 Claude Code、Cursor、Codex)能夠透過 Composio MCP 整合直接管理 Neon 無伺服器 Postgres 資料庫。它支援專案列舉、分支檢查、資料庫庫存、角色管理以及安全地擷取連線 URI。技能透過 MCP 伺服器(rube.app/mcp)進行 API 金鑰驗證,並提供一系列工具來處理常見的 Neon 管理任務。主要優勢在於簡化 Neon 操作工作流程、處理分頁與限流等邊緣情況,並將資料庫管理整合到更廣泛的自動化管道中。

相容平台~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:字串(必填)——格式:「形容詞-名詞-數字」,例如「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」。請先呼叫 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.

相關技能