MCP service overview

Updated at:

This topic describes the positioning of the MCP service of Realtime Compute for Apache Flink, the supported API domains, how to choose between the Core edition and the Custom edition, the prerequisites, the limits, and the FAQ.

Overview

Flink provides two sets of OpenAPI operations. Both can be exposed as MCP tools.

  • Sales-side operations: product code foasconsole, API version 2021-10-28. Covers workspace purchase, specification change, renewal, and billing queries.

  • Management-side operations: product code ververica, API version 2022-07-18. Covers job development, operations, diagnosis, cluster management, and metadata and data queries.

You can connect AI clients such as Qoder, Qoder CN, Cursor, Claude Code, and Codex, and self-managed agent platforms such as Dify and AgentScope.

Architecture

image

Editions

OpenAPI MCP Server provides two editions. The client configuration is the same for both. They differ only in how you obtain the endpoint.

Item

Core edition (recommended)

Custom edition (advanced)

Setup speed

Fast: the endpoint is assigned automatically after you log on to the console

Medium: create a server and select API operations

API coverage

All Alibaba Cloud OpenAPI operations, including the sales-side and management-side operations of Realtime Compute for Apache Flink

Only the selected API operations

API matching

The model matches operations by semantic search. Operations with similar functions require more explicit prompts

Selected operations are exposed directly as tools, with no search required

Tuning

Not supported

Supports editing API descriptions and parameters, and configuring MCP instructions

Number of servers

One per account

Multiple, divided by scenario

Use cases

Quick setup, exploratory O&M, cross-product operations

Fixed business processes, a defined set of operations, disambiguation between similar operations

Start with the Core edition. Use the Custom edition when you need a fixed set of operations, a shorter call path, or disambiguation between operations with similar functions.

Supported API domains

The two sets of OpenAPI operations of Realtime Compute for Apache Flink cover the following capability domains. The Core edition can call all of them. The Custom edition exposes only the selected API operations as MCP tools.

Capability domain

Description

Representative operations

Sales and cost management

Workspace purchase, specification change, renewal, billing mode conversion, and price queries (sales-side foasconsole)

CreateInstance, DescribeInstances, ModifyInstanceSpec, RenewInstance, QueryModifyInstancePrice, ConvertHybridInstance

Job lookup

Browse and search deployments, and check instance status

ListDeployments, GetDeploymentsByName, ListJobs, GetJob

Job development and deployment

Create and edit deployment drafts, validate SQL, and deploy jobs

CreateDeploymentDraft, ValidateDeploymentDraftAsync, DeployDeploymentDraftAsync

Job operations

Start and stop instances, and update parameters and resources at runtime

StartJobWithParams, StopJob, HotUpdateJob

Intelligent diagnosis

Return diagnosis items such as back pressure, insufficient resources, and code exceptions

GetJobDiagnosis, GetLatestJobStartLog, GetEvents

Savepoints and checkpoints

Create, query, and delete savepoints for failure recovery

CreateSavepoint, ListSavepoints, GetSavepoint

Session cluster management

Manage the session cluster lifecycle

CreateSessionCluster, StartSessionCluster, StopSessionCluster, ListSessionClusters

Metadata and data queries

Browse catalogs, databases, and tables, and run and retrieve query results

GetCatalogs, GetDatabases, GetTables, StartSqlExecution, FetchSqlExecutionResult

Data lineage

Query job and data lineage

GetLineageInfo

UDFs and connectors

Register UDFs and custom connectors

CreateUdfArtifact, RegisterUdfFunction, ListCustomConnectors

Scheduling and Autopilot

Manage scheduled plans and Autopilot policies

CreateScheduledPlan, GetAutopilotPolicy, ListAutopilotTuningHistories

  • The job diagnosis package recommended by Alibaba Cloud is used throughout this topic. It combines the diagnosis-related operations listed above. See Recommended APIs below. For other packages such as job operations and data queries, select the corresponding operations in the same way. See API selection.

  • Operations for AI Intelligent Assistant conversations (ChatAiAgent), intelligent inspection (ListPatrolReports, TriggerPatrol, and four more), and AI service management (GetFlinkAiService and others, sales-side foasconsole) are also available. See Typical MCP scenarios.

Prerequisites

  • You have an Alibaba Cloud account and a Flink workspace.

  • You have the workspace ID and namespace name of the target workspace, which are required in most calls.

  • The RAM user that performs the authorization has permissions on the selected API operations. Read-only permissions are recommended.

  • For the Custom edition, the list of API operations to select is determined. See MCP scenarios and API selection.

  • For static credential access, Python 3.13 or later and uv are installed, and the system policy AliyunOpenAPIMCPServerStaticCredentialAccess is attached to the RAM user.

  • Do not use the AccessKey pair of your Alibaba Cloud account.

Limits

  • For the Custom edition, select no more than 30 API operations for a single MCP server. The Core edition requires no API selection.

  • The Core edition relies on semantic search to match API operations. Operations with similar functions may be mismatched. Use the Custom edition to call a fixed set of operations reliably.

  • Whether a call succeeds depends on the permissions of the RAM user that performs the authorization.

  • The full set of operations includes write operations such as start, stop, deploy, and delete. The job diagnosis package recommended in this topic is read-only and performs no changes.

  • Diagnosis results are generated by AI from diagnosis items, logs, and event timelines. Confirm critical changes manually.

What to do next

  • Configure the MCP client: obtain the MCP endpoint, then configure and verify the connection in clients such as Qoder, Qoder CN, Cursor, Claude Code, and Codex.

  • MCP scenarios and API selection: view the scenario packages and API selection guidance, the job diagnosis package APIs, MCP instruction templates, and the call chains for job diagnosis and AI intelligent O&M.

Related information