Googleapis

com.googleapis.composer由 composer.googleapis.com 發布官方發布者v1.0.0更新於 Nov 7, 2026

Interact with your Google Cloud Composer resources using natural language commands.

已驗證Streamable HTTP可網頁執行雲端與基礎設施資料與分析

概覽

AI 產生的概覽

讓助理以自然語言管理 Google Cloud Composer(代管 Airflow)環境,並檢視其 DAG、執行紀錄與工作執行個體。

可以做什麼
  • 建立、列出、檢視與刪除代管 Airflow 環境,並查詢長時間執行操作的狀態
  • 在環境中安裝、升級或移除 PyPI 套件
  • 列出並讀取 DAG 及其原始碼,檢查匯入或解析錯誤
  • 列出 DAG 執行與工作執行個體,找出最近的失敗執行或失敗工作
  • 手動觸發 DAG 執行並輪詢其狀態
適用情境
適合在使用 Google Cloud Composer 時,讓助理檢查環境狀態、排查失敗的 DAG 執行或工作執行個體、檢視 DAG 原始碼,或進行更新套件之類的小幅調整,而不必開控制台。
執行需求
遠端端點 composer.googleapis.com,不需在本機安裝套件。需要含 Composer 環境的 Google Cloud 專案,多數呼叫需指定專案與位置,且連線用戶端需具備 Google Cloud 身分驗證與授權。
安裝前請注意
刪除環境是破壞性且無法復原的操作,工具本身會先要求使用者確認。建立環境、變更 PyPI 套件與觸發 DAG 執行都會改變雲端狀態,可能產生 Google Cloud 費用。建立環境僅支援使用預設設定的小型私有 IP 環境。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Googleapis,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.googleapis.composer%2Fmcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "googleapis": {
      "type": "http",
      "url": "https://composer.googleapis.com/mcp"
    }
  }
}

工具

16

create_environment

Initiates the creation of a new Managed Airflow environment with default settings. This tool creates a small private IP environment with a default configuration, including default networking settings. Creating public IP environments, or customizing most settings (such as network, subnetwork, network attachment, environment size, CMEK or custom environment bucket) is not supported. If the user requests settings that aren't supported by the tool parameters, inform them that this tool can't create an environment in the requested configuration, and that they should use gcloud CLI or Cloud Console instead. Some environment configuration parameters are mandatory. Always ask about them: - Always ask the user to provide a service account that they want to use for their environment. Users are strongly recommended to use a dedicated user-managed service account and are discouraged from using the default Cloud Compute service account for security reasons. - Always ask the user to specify the IP ranges that they want to use to access the Airflow UI and web server. If the user doesn't specify IP ranges, clarify that the default is not allowing access from any IPs. We also recommend to not allow access from all IP addresses to avoid potential security risks. This tool creates an environment without pre-installed PyPI packages. Use the `manage_pypi_packages` tool to install PyPI packages after the environment is created. This tool triggers the environment creation process, which is a long-running operation. The tool returns an operation object. Use the `get_operation` tool with the operation name returned by this tool to poll for creation status. Environment creation typically takes 25-30 minutes. A completed operation will include the details of the created environment.

輸入參數parent必填imageVersionenvironmentId必填serviceAccount必填allowedWebServerIpRanges必填

get_environment

Retrieves details about a specific Managed Airflow environment, including its configuration and status. Use this tool to check the current state of an environment, its Airflow version, Airflow UI URL, environment's bucket, or other configuration details.

輸入參數name

list_environments

Lists all Managed Airflow environments in a given project and location. Use this tool to when you need to know which environments exist in a specific project and location. Results are paginated; use `page_size` to control the number of results per page and `page_token` from a previous response to get the next page. If `page_token` is not present in the response, there are no more results.

輸入參數parentpageSizepageToken

delete_environment

Initiates the deletion of a Managed Airflow environment. Warning: This is a destructive action permanently deletes an environment and can't be undone. Always ask the user to confirm the deletion before proceeding. This tool triggers the environment deletion process, which is a long-running operation that typically takes 10-20 minutes. The tool returns an operation object. Use the `get_operation` tool with the operation name returned by this tool to poll for deletion status.

輸入參數name

manage_pypi_packages

Manages PyPI packages in a Managed Airflow environment. Use this tool to install and uninstall PyPI packages in the Managed Airflow environment, or change PyPI package versions or extras. To install packages or change versions or extras, use the `update_packages` field. To remove packages, use the `remove_packages` field. At least one package must be specified in one of these fields. The same package can't be specified in both fields. This tool triggers an environment update, which is a long-running operation that can take several minutes. The tool returns an operation object. Use the `get_operation` tool to poll its status. A completed operation will include the details of the updated environment.

輸入參數environment必填removePackagesupdatePackages

get_operation

Gets the latest status of a long-running operation. Several tools like `create_environment`, `delete_environments`, and `manage_pypi_packages` return an operation object, because they initiate processes that take time to complete. Use this tool to check if such an operation has finished and whether it was successful. Provide the `name` of the operation as returned by the tool that initiated it. A completed operation may include the details specific to the operation, described in the description of the tool that initiates the operation.

輸入參數name

get_dag

Retrieves metadata and status of a specific DAG in a Managed Airflow environment. Use this tool when you need to check if a DAG exists, inspect its metadata (such as schedule or current state), or verify whether a newly uploaded/updated DAG file has been imported by Airflow (see `list_import_errors` tool description for more details). In particular, if a DAG was recently uploaded but `get_dag` returns NOT_FOUND, use `list_import_errors` to check if any errors occurred during the import.

輸入參數dagId必填environment必填

list_dags

Lists all DAGs in a Managed Airflow environment. Use this tool to get a list of all DAGs in the environment, for example to discover the DAGs present in the environment or get the state or properties of each DAG. Results are paginated; use `page_size` to control the number of results per page and `page_token` from a previous response to get the next page. If `page_token` is not present in the response, there are no more results.

輸入參數pageSizepageTokenenvironment必填

get_dag_source_code

Retrieves the DAG source code from a Managed Airflow environment. Use this tool when you want to understand DAG implementation details, for example to understand why a DAG run has failed, or to debug DAG's behavior. The tool returns the latest version of the source code.

輸入參數dagId必填environment必填

get_dag_run

Retrieves details of a specific DAG run from a Managed Airflow environment. Use this tool when you need to retrieve details of a specific DAG run, for example its state, start time or end time. This tool does not return DAG run logs directly. Instead, use the `cloud_logging_filter` field from the response to query Cloud Logging for the logs for this DAG run.

輸入參數dagId必填dagRunId必填environment必填

list_dag_runs

Lists DAG runs in a Managed Airflow environment. Use this tool to get a list of DAG runs in the environment, or runs for a specific DAG, for example to determine the overall healthiness of the environment or DAG. The tool returns DAG runs in the order of creation date, most recent first. Results are paginated; use `page_size` to control the number of results per page and `page_token` from a previous response to get the next page. If `page_token` is not present in the response, there are no more results.

輸入參數dagIdpageSizepageTokenenvironment必填

get_task_instance

Retrieves details of a specific task instance from a Managed Airflow environment. Use this tool to retrieve details of a specific task instance, such as its state, start time, end time, or parameters, to understand its status or to debug a failure. This tool does not return task instance logs directly. Instead, use the `cloud_logging_filter` field from the response to query Cloud Logging for the logs for this task instance.

輸入參數dagId必填taskId必填dagRunId必填mapIndexenvironment必填

find_last_failed_dag_runs

Finds failed DAG runs in a Managed Airflow environment. Use this tool to find recent DAG run failures, for example to begin troubleshooting. If the user wants to troubleshoot a specific DAG, provide the DAG ID to get the details of its last failed run. If the user doesn't know which DAG is failing, or wants to see recent failures across all DAGs, leave the DAG ID empty; in this case, the tool will return the last failed DAG run for every DAG in the environment that has at least one failure. If the response returns more than one DAG run and the user asked for troubleshooting or explaining the failure, ask the user which DAG run to troubleshoot. Results are paginated; use `page_size` to control the number of results per page and `page_token` from a previous response to get the next page. If `page_token` is not present in the response, there are no more results.

輸入參數dagIdpageSizepageTokenenvironment必填

list_failed_task_instances

Lists failed task instances of a specific DAG run in a Managed Airflow environment. If a DAG run has failed, use this tool to get the list of task instances of this DAG run that are in the FAILED state and may have caused the DAG run failure. This tool does not return task instance logs directly. Instead, for each task instance, use the `cloud_logging_filter` field from the response to query Cloud Logging for the logs for that task instance.

輸入參數dagId必填dagRunId必填environment必填

trigger_dag

Triggers a DAG run for a specified DAG in a Managed Airflow environment. Use this tool when you need to manually start a new run of a DAG. The tool returns a DAG run object containing the details and state of the newly triggered run. You can use the `get_dag_run` tool to poll for state changes.

輸入參數dagId必填environment必填

list_import_errors

Lists Python import errors and parsing failures in a Managed Airflow environment. Use this tool to check if all DAGs are being parsed correctly in the environment. After uploading a DAG, use this tool alongside `get_dag` to check its parsing status: - **Success**: `get_dag` returns DAG details. - **Import failed**: `get_dag` returns `NOT_FOUND` and `list_import_errors` returns error details and stack traces referencing the DAG file created after the upload. - **Pending parsing**: `get_dag` returns `NOT_FOUND` and `list_import_errors` has no errors referencing the DAG file, created after upload. Always check the import error creation time to make sure the error is relevant to the latest upload. Results are paginated; use `page_size` to control the number of results per page and `page_token` from a previous response to get the next page. If `page_token` is not present in the response, there are no more results.

輸入參數pageSizepageTokenenvironment必填

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 72%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分

    請在註冊中心條目中發布圖示。

  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。