mcp-server-esa
v1.1.0ESA MCP Server - Modular Alibaba Cloud ESA tools for Edge Routine, Pages, and Site management
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
html_deploy
Quickly deploy an HTML page to ESA Function & Pages and return a default access URL to the user.
| Parameter | Type | Description |
|---|---|---|
html * | string | An HTML string which user want to deploy. For example: <html><body>Hello World</body></html> |
name * | string | The name of the routine, supports lowercase English letters, numbers, and hyphens, must start with a lowercase letter, and must be at least 2 characters long. For example: hello-world |
folder_deploy
Deploy a local folder of static files (HTML/CSS/JS/images etc.) to ESA Function & Pages and return a default access URL. The folder will be packaged as assets and uploaded.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the routine, supports lowercase English letters, numbers, and hyphens, must start with a lowercase letter, and must be at least 2 characters long. |
path * | string | Absolute path to the local folder containing static files to deploy. |
description | string | Optional description for this deployment version. |
routine_create
Create a new Edge Routine (ER) in your Alibaba Cloud account.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the routine, support lowercase English, numbers, and hyphens, must start with lowercase English, length cannot be less than 2 characters |
description | string | Description of the routine, no spaces |
routine_delete
Delete an existing Edge Routine (ER) from your Alibaba Cloud account.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the routine to delete |
routine_list
List all Edge Routines (ERs) in your Alibaba Cloud account.
routine_get
Get a the details of a Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the routine to get details for |
routine_code_commit
Save a code version for future modifications or release within an Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
code * | string | Source Code of the routine, export default { async fetch(request) { return handleRequest(request); } } |
name * | string | The name of the routine, support lowercase English, numbers, and hyphens, must start with lowercase English, length cannot be less than 2 characters |
description | string | Description of the routine, no spaces |
routine_code_deploy
Deploy a selected code version to the staging or production environment. If version is not exist, should call routine_code_commit first
| Parameter | Type | Description |
|---|---|---|
codeVersion * | string | Version of the routine, must be a valid semantic version |
env * | string | Environment of the routine, must be "production" or "staging". If the user has no special requirements, it will be deployed to the production environment by default |
name * | string | The name of the routine, support lowercase English, numbers, and hyphens, must start with lowercase English, length cannot be less than 2 characters |
deployment_delete
Delete a specified code version associated with an Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
codeVersion * | string | The version of the code to delete |
name * | string | The name of the deployment to delete |
er_record_create
Create a new record associated with an Edge Routine (ER)
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the routine |
recordName * | string | The name of the record |
siteId * | number | The ID of the site |
er_record_delete
Delete a specified record associated with an Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the routine |
recordName * | string | The name of the record |
siteId * | number | The ID of the site |
recordId | number | The ID of the record |
er_record_list
List all records associated with a specific Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
Name * | string | The name of the routine |
PageNumber | number | The page number of the records |
PageSize | number | The page size of the records |
SearchKeyWord | string | The search key word of the records |
route_create
Create a new route associated with an Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
bypass * | enum | The bypass of the route, default is off |
mode * | enum | The mode of the route, default is simple |
routeEnable * | enum | The enable of the route, default is on |
routeName * | string | The name of the route, use to identify the route. For example: test-route |
routineName * | string | The name of the routine |
rule * | string | The rule of the route, if mode is custom, this field is required |
siteId * | number | The ID of the site |
route | string | The route of the route, if mode is simple, this field is required. For example: test.example.com/* |
sequence | number | The sequence of the route, if not passed, default is the current number of routes |
route_update
Modify the configuration of an existing Edge Routine route.
| Parameter | Type | Description |
|---|---|---|
bypass * | enum | The bypass of the route |
configId * | number | The ID of the config |
routeEnable * | enum | The enable of the route |
routeName * | string | The name of the route, use to identify the route. |
routineName * | string | The name of the routine |
rule * | string | The rule of the route |
siteId * | number | The ID of the site |
sequence | number | The sequence of the route, if not passed, default is the current number of routes |
route_delete
Delete a specified route associated with an Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
configId * | number | The ID of the config |
siteId * | number | The ID of the site |
route_get
Get details of a specific route associated with an Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
configId * | number | The ID of the config |
siteId * | number | The ID of the site |
routine_route_list
List all routes associated with a specific Edge Routine (ER).
| Parameter | Type | Description |
|---|---|---|
routineName * | string | The name of the routine |
pageNumber | number | The page number of the routes |
pageSize | number | The page size of the routes |
routeName | string | The name of the route, use to filter list results |
site_route_list
List all routes associated with a specific site.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The ID of the site |
pageNumber | number | The page number of the routes |
pageSize | number | The page size of the routes |
routeName | string | The name of the route, use to filter list results |
list_sites
用于查询当前用户下的站点列表 ,包括站点的名称、状态、配置等信息。
| Parameter | Type | Description |
|---|---|---|
accessType | string | 接入类型。取值:; - **NS**:通过NS托管接入。; - **CNAME**:通过CNAME接入。 |
coverage | string | 加速区域。取值:; - **domestic**:仅中国内地。; - **global**:全球。; - **overseas**:全球(不包含中国内地)。 |
onlyEnterprise | boolean | 仅企业版,传**true**时代表仅查询企业版的站点。 |
orderBy | string | 排序字段,默认按照创建时间排序,支持; - gmtCreate:站点创建时间; - visitTime:站点访问时间 |
pageNumber | number | 页码。默认值:**1**。 |
pageSize | number | 分页大小。默认值:**500**。 |
planSubscribeType | string | 套餐订阅类型。取值:; - **basicplan**: 基础版。; - **standardplan**:标准版。; - **advancedplan**:高级版。; - **enterpriseplan**:企业版。 |
resourceGroupId | string | 资源组ID。用于查询的过滤条件。 |
siteName | string | 站点名称。用于查询的过滤条件。 |
siteSearchType | string | 站点名称的搜索匹配模式。默认为精确匹配,取值:; - **prefix**:前缀匹配。; - **suffix**:后缀匹配。; - **exact**:精确匹配。; - **fuzzy**:模糊匹配。 |
status | string | 站点状态。用于查询的过滤条件。 |
tagFilter | array | 标签过滤规则。 |
site_active_list
List all active sites
site_match
Identify which site in the account matches the provided input criteria.
| Parameter | Type | Description |
|---|---|---|
recordName * | string | The name of the site to match |
create_site
Adds a website. Make sure that you have an available plan before you add a website. Make sure that your website domain name has an ICP filing if the location you want to specify covers the Chinese mainland.
| Parameter | Type | Description |
|---|---|---|
accessType * | string | The DNS setup. Valid values: - NS; - CNAME |
coverage * | string | The service location. Valid values: - domestic: the Chinese mainland - global: global - overseas: outside the Chinese mainland |
instanceId * | string | The instance ID, which can be obtained by calling the [ListUserRatePlanInstances] operation. Specify at least one of the instance ID and website ID. If you specify both of them, the instance ID is use… |
siteName * | string | The website name. |
resourceGroupId | string | The ID of the resource group. If you leave this parameter empty, the system uses the default resource group ID. |
update_site_pause
Modifies the ESA proxy configuration of a website.
| Parameter | Type | Description |
|---|---|---|
paused * | boolean | Specifies whether to temporarily pause ESA on the website. If you set this parameter to true, all requests to the domains in your DNS records go directly to your origin server. Valid values: true, fal… |
siteId * | number | The website ID, which can be obtained by calling the [ListSites] operation. |
get_site_pause
Queries the ESA proxy configuration of a website.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID, which can be obtained by calling the [ListSites] operation. |
set_certificate
Configures whether to enable certificates and update certificate information for a website.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID. Reference Value Source: list_sites |
type * | string | The type of certificate. Possible values: - cas (Cloud Certificate) - upload (Custom Upload Certificate) |
casId | number | The ID of the cloud certificate. |
certificate | string | The content of the certificate. |
id | string | The ID of the certificate. |
name | string | The name of the certificate. |
privateKey | string | The private key of the certificate. |
region | string | The region. |
apply_certificate
Applies for a free SSL certificate.
| Parameter | Type | Description |
|---|---|---|
domains * | string | The list of domain names, separated by commas. Example: "example.com,www.example.com" |
siteId * | number | Site ID. Example: 1234567890123. Reference Value Source: list_sites |
type * | string | The type of certificate. Possible values: - lets_encrypt (Let's Encrypt certificate) - digicert_single (Digicert single-domain certificate) - digicert_wildcard (Digicert wildcard certificate) |
get_certificate
Retrieve the certificate, private key, and certificate information
| Parameter | Type | Description |
|---|---|---|
id * | string | Certificate ID. Example: babaded901474b9693acf530e0fb1d95 |
siteId * | number | The website ID. Reference Value Source: list_sites |
delete_certificate
Deletes a certificate for a website.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the certificate. Example: 30001303 |
siteId * | number | The website ID, which can be obtained by calling the ListSites operation. Example: 1234567890123 |
list_certificates
Lists certificates of a website.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID. Reference Value Source: list_sites. Example: 1234567890123 |
keyword | string | The search keyword. |
pageNumber | number | The page number of the returned data. |
pageSize | number | The number of records per page. |
validOnly | boolean | Whether to return only valid certificates. |
get_certificate_quota
Query certificate quota and usage.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID. Reference Value Source: list_sites. Example: 1234567890123 |
type * | string | The type of certificate quota. Example: free |
update_ipv6
Modifies the IPv6 configuration of a website.
| Parameter | Type | Description |
|---|---|---|
enable * | string | Specifies whether to enable IPv6. |
siteId * | number | The website ID, which can be obtained by calling the ListSites operation. |
region | string | Enable IPV6 in the region. |
get_ipv6
Queries the IPv6 configuration of a website.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID, which can be obtained by calling the ListSites operation. |
update_managed_transform
Modifies the configuration of managed transforms for your website.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID, which can be obtained by calling the ListSites operation. |
addClientGeolocationHeader | string | Specifies whether to include the header that indicates the geographical location of a client in an origin request. |
addRealClientIpHeader | string | Specifies whether to include the 'ali-real-client-ip' header that indicates the 's real IP address in an origin request. |
realClientIpHeaderName | string | The actual client IP header name. |
siteVersion | number | The version number of the website. You can use this parameter to specify a version of your website to apply the feature settings. By default, version 0 is used. |
get_managed_transform
Query Managed Transform Configuration.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | Site ID, which can be obtained by calling ListSites. |
siteVersion | number | The version number of the site. For sites with version management enabled, you can use this parameter to specify the effective version of the configuration, defaulting to version 0. |
site_record_list
List DNS records associated with a specific site.
| Parameter | Type | Description |
|---|---|---|
SiteId | number | The ID of the site, obtained from the ListSites operation. Required. |
create_site_a_or_aaaa_record
Creates a DNS record for a specific website. Only A/AAAA records are supported.
| Parameter | Type | Description |
|---|---|---|
data * | object | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html |
recordName * | string | The record name. |
siteId * | number | The website ID, which can be obtained by calling the [ListSites] operation. |
bizName | string | The business scenario of the record for acceleration. The parameter cannot be empty if your record is proxied. Valid values: - image_video - api - web |
comment | string | The comment of the record. The maximum length is 100 characters. |
proxied | boolean | Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values: - true - false |
ttl | number | The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1. |
create_site_cname_record
Creates a DNS record for a specific website. Only supports records with type=CNAME and sourceType=Domain.
| Parameter | Type | Description |
|---|---|---|
data * | object | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html |
recordName * | string | The record name. |
siteId * | number | The website ID, which can be obtained by calling the [ListSites] operation. |
bizName | string | The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: - image_video - api - web |
comment | string | The comment of the record. The maximum length is 100 characters. |
hostPolicy | string | The origin host policy. This policy takes effect when the record type is CNAME. Required. You can set the policy in two modes: - follow_hostname - follow_origin_domain |
sourceType | string | The origin type for the CNAME record. This parameter is required when you add a CNAME record. Valid values: - Domain: domain name If you do not pass this parameter or if you leave its value empty, Do… |
ttl | number | The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1. |
create_site_txt_record
Creates a DNS record for a specific website. Only TXT records are supported.
| Parameter | Type | Description |
|---|---|---|
data * | object | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html |
recordName * | string | The record name. |
siteId * | number | The website ID, which can be obtained by calling the [ListSites] operation. |
comment | string | The comment of the record. The maximum length is 100 characters. |
ttl | number | The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1. |
create_site_ns_record
Creates a DNS record for a specific website. Only NS records are supported.
create_site_mx_record
Creates a DNS record for a specific website. Only MX records are supported.
| Parameter | Type | Description |
|---|---|---|
data * | object | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html |
recordName * | string | The record name. |
siteId * | number | The website ID, which can be obtained by calling the [ListSites] operation. |
bizName | string | The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: - image_video - api - web |
comment | string | The comment of the record. The maximum length is 100 characters. |
ttl | number | The TTL of the record. Unit: seconds. If the value is 1, the TTL of the record is determined by the system. Default: 1. |
update_record
This operation allows you to update multiple types of DNS records, including but not limited to A/AAAA, CNAME, NS, MX, TXT, CAA, SRV, and URI. You can modify the record content by providing the necessary fields such as Value, Priority, and Flag. For origins added in CNAME records such as OSS and S3, the API enables you to configure authentication details to ensure secure access. Usage notes: The record value (Value) must match the record type. For example, the CNAME record should correspond to the target domain name. You must specify a priority (Priority) for some record types, such as MX and…
| Parameter | Type | Description |
|---|---|---|
data * | object | The DNS record information. The format of this field varies based on the record type. For more information, see https://www.alibabacloud.com/help/doc-detail/2708761.html |
recordId * | number | The record ID, which can be obtained by calling ListRecords . |
authConf | object | The origin authentication information of the CNAME record. |
bizName | string | The business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: video_image: video and image. api: API. web: web page. |
comment | string | The comments of the record. |
hostPolicy | string | The origin host policy. This policy takes effect when the record type is CNAME. You can set the policy in two modes: follow_hostname: match the requested domain name. follow_origin_domain: match the o… |
proxied | boolean | Specifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values: true,false |
sourceType | string | The type of the origin for the CNAME record. This parameter is required when you add a CNAME record. Valid values: OSS : OSS origin. S3 : S3 origin. LB: Load Balancer origin. OP: origin in an origin p… |
ttl | number | The TTL of the record. Unit: seconds. The range is 30 to 86,400, or 1. If the value is 1, the TTL of the record is determined by the system. |
type | string | The type of the DNS record. For example, A/AAAA, TXT, MX, NS, SRV, CAA, CERT, SMIMEA, SSHFP, TLSA, URI or CNAME. |
delete_record
Deletes a DNS record of a website based on the specified RecordId.
| Parameter | Type | Description |
|---|---|---|
recordId * | number | The record ID, which can be obtained by calling ListRecords . |
list_records
Queries a list of Domain Name System (DNS) records of a website, including the record value, priority, and authentication configurations. Supports filtering by specifying parameters such as RecordName and RecordMatchType.
| Parameter | Type | Description |
|---|---|---|
siteId * | number | The website ID, which can be obtained by calling the ListSites operation. |
bizName | string | The business scenario of the record for acceleration. Valid values: image_video: video and image. api: API.web: web page. |
pageNumber | number | The page number. Default value: 1. |
pageSize | number | The number of entries per page. Default value: 500. |
proxied | boolean | Filters by whether the record is proxied. Valid values:true, false |
recordMatchType | string | The match mode to search for the record name. Default value: exact. Valid values: prefix: match by prefix.suffix: match by suffix. exact: exact match. fuzzy: fuzzy match. |
recordName | string | The record name. This parameter specifies a filter condition for the query. |
sourceType | string | The origin type of the record. Only CNAME records can be filtered by using this field. Valid values: OSS: OSS bucket. S3: S3 bucket. LB: load balancer. OP: origin pool. Domain: domain name. |
type | string | The DNS record type. |
get_record
Queries the configuration of a single DNS record, such as the record value, priority, and origin authentication setting (exclusive to CNAME records).
| Parameter | Type | Description |
|---|---|---|
recordId * | number | The record ID, which can be obtained by calling ListRecords. |