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。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。