FAQ
This topic lists the frequently asked questions about the MCP service of Realtime Compute for Apache Flink, covering connection and authentication, tools and calls, and tuning and security.
Connection and authentication
The connection fails with 401 Authorization header is missing.
The remote endpoint requires authentication. This is expected protection. For OAuth, start the connection again and complete the browser authorization. For static credentials, make sure that the AccessKey pair is injected into the environment variables of mcp-proxy and that the pre-check command has been run.
The browser authorization is complete, but the client lists no tools.
The system verifies that the user who performs the authorization and the MCP server belong to the same Alibaba Cloud account. The client can list and call tools only after this check passes. On a shared device, make sure that you log on as the intended RAM user instead of a personal account. If the authorization page does not open, restart the client.
The authorization succeeds, but jobs in the target workspace are not returned.
Check three items in order: whether the RAM user that performed the authorization has permissions on the API operations of that workspace; whether the workspace and namespace in your prompt are correct; and whether the region is the default China (Hangzhou). For another region, set x_mcp_region_id.
A model call returns a permission error.
Whether a call succeeds depends on the permissions of the RAM user that performed the authorization. Grant the corresponding policies on Flink API operations to that RAM user. Read-only permissions are recommended. Static credential access also requires the system policy AliyunOpenAPIMCPServerStaticCredentialAccess, and an account-level AccessKey pair is not allowed.
My agent platform does not support browser OAuth pop-ups.
Use one of the following methods: select Custom OAuth when you create the MCP server and register credentials for your platform, or connect through the local proxy alibabacloud.mcp-proxy with a static AccessKey pair.
The uvx or npx command fails to start.
The static credential path requires Python 3.13 or later and uv, which provides uvx. The STDIO bridge path requires Node.js and npm, which provide npx. After installation, run uvx alibabacloud.mcp-proxy@latest --server-url to verify that the proxy and the permissions are ready.
The MCP endpoint is unreachable from inside a VPC or from an ECS instance.
In a VPC, use the VPC endpoint shown on the console page. Its domain name is in the format openapi-mcp-cn.vpc-proxy.aliyuncs.com and its path follows the same rules as the public endpoint. If public access is disabled, the endpoint is reachable only from allowlisted VPCs. Add your VPC to the custom VPC allowlist.
Tools and calls
The expected API name is not in the tool list of the client.
Operations selected in the Custom edition are named in the format <product code>-<API version without hyphens>-<operation name>, for example ververica-20220718-ListDeployments. The tool list shows this name instead of ListDeployments. The Core edition exposes 15 built-in tools such as SearchApis, CallCLI, and ListProducts, and does not list product operations one by one. The model matches and calls them by semantic search.
The model reports that the workspace or namespace parameter is missing.
Every tool requires the workspace ID and the namespace. Provide them in your prompt. The job diagnosis package does not include an operation that discovers workspaces. To let the agent locate them, also select DescribeInstances and DescribeNamespaces from the sales-side operations.
The query results do not match the expected region.
The MCP endpoint is located in cn-hangzhou. If no region is specified, the resources in China (Hangzhou) are accessed. To query jobs in another region, instruct the model to set x_mcp_region_id in your prompt, for example "List the jobs whose regionId is cn-shenzhen and set x_mcp_region_id".
The Core edition matched the wrong API operation.
The Core edition matches operations by semantic search and may pick the wrong one when several operations have similar functions. Specify the product code and the operation name explicitly in your prompt, for example "Use GetJobDiagnosis of ververica to query the diagnosis details of a job." Use the Custom edition to call a fixed set of operations reliably.
Many operations are selected, but the model picks the wrong tool.
Select no more than 30 operations for a single MCP server, and create one server per scenario to keep the tool list focused. To disambiguate operations with similar functions, edit the API descriptions and remove confusing optional parameters in the Custom edition.
Realtime Compute for Apache Flink is not in the product list.
Make sure that you select Realtime Compute for Apache Flink. The management-side product code is ververica with API version 2022-07-18. The sales-side product code is foasconsole with API version 2021-10-28.
The operations for AI service management or intelligent inspection are missing.
AI Intelligent Assistant conversations (ChatAiAgent) and intelligent inspection (ListPatrolReports, TriggerPatrol, and four more) belong to the management-side product ververica. AI service management (GetFlinkAiService and others) belongs to the sales-side product foasconsole. Select each product separately when you create a Custom edition server. The Core edition covers both sets and can be called in natural language.
Tuning and security
The model does not follow the configured MCP instructions.
MCP instructions require the client to support the Instructions field of the MCP standard protocol. The operations referenced in the instructions must be in the selected list, and must use the tool names with the product code and version prefix.
Can I edit tool descriptions or remove parameters in the Core edition?
No. The Core edition does not support tuning, and each account has only one Core server. To edit API descriptions and parameters, configure MCP instructions, or fix the set of operations, use the Custom edition. You can create multiple Custom servers, divided by scenario.
How do I restrict the agent to read-only queries?
Use the Custom edition and select only a read-only package, such as the nine read-only operations of the job diagnosis package. Grant only read-only policies to a dedicated RAM user. For packages that contain write operations such as start, stop, deploy, and delete, create a separate MCP server and approve its permissions separately in RAM. The Core edition covers all Alibaba Cloud OpenAPI operations, including write operations, so access can be restricted only through RAM permissions.
The diagnosis conclusion lacks evidence.
Ask the model to call ListSavepoints to check the recovery point and the health of checkpoints, or ListAutopilotTuningHistories to determine whether the instance change was caused by automatic scaling. A diagnosis conclusion must contain the root cause, the evidence, and the recommended action. Do not act on a conclusion without evidence.