mcp-server-esa

v1.1.0
mcp-server-esa Checked 3 hours ago Published 9 months ago

ESA 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.

ParameterTypeDescription
html *stringAn HTML string which user want to deploy. For example: <html><body>Hello World</body></html>
name *stringThe 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.

ParameterTypeDescription
name *stringThe 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 *stringAbsolute path to the local folder containing static files to deploy.
descriptionstringOptional description for this deployment version.

routine_create

Create a new Edge Routine (ER) in your Alibaba Cloud account.

ParameterTypeDescription
name *stringThe name of the routine, support lowercase English, numbers, and hyphens, must start with lowercase English, length cannot be less than 2 characters
descriptionstringDescription of the routine, no spaces

routine_delete

Delete an existing Edge Routine (ER) from your Alibaba Cloud account.

ParameterTypeDescription
name *stringThe 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).

ParameterTypeDescription
name *stringThe 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).

ParameterTypeDescription
code *stringSource Code of the routine, export default { async fetch(request) { return handleRequest(request); } }
name *stringThe name of the routine, support lowercase English, numbers, and hyphens, must start with lowercase English, length cannot be less than 2 characters
descriptionstringDescription 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

ParameterTypeDescription
codeVersion *stringVersion of the routine, must be a valid semantic version
env *stringEnvironment 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 *stringThe 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).

ParameterTypeDescription
codeVersion *stringThe version of the code to delete
name *stringThe name of the deployment to delete

er_record_create

Create a new record associated with an Edge Routine (ER)

ParameterTypeDescription
name *stringThe name of the routine
recordName *stringThe name of the record
siteId *numberThe ID of the site

er_record_delete

Delete a specified record associated with an Edge Routine (ER).

ParameterTypeDescription
name *stringThe name of the routine
recordName *stringThe name of the record
siteId *numberThe ID of the site
recordIdnumberThe ID of the record

er_record_list

List all records associated with a specific Edge Routine (ER).

ParameterTypeDescription
Name *stringThe name of the routine
PageNumbernumberThe page number of the records
PageSizenumberThe page size of the records
SearchKeyWordstringThe search key word of the records

route_create

Create a new route associated with an Edge Routine (ER).

ParameterTypeDescription
bypass *enumThe bypass of the route, default is off
mode *enumThe mode of the route, default is simple
routeEnable *enumThe enable of the route, default is on
routeName *stringThe name of the route, use to identify the route. For example: test-route
routineName *stringThe name of the routine
rule *stringThe rule of the route, if mode is custom, this field is required
siteId *numberThe ID of the site
routestringThe route of the route, if mode is simple, this field is required. For example: test.example.com/*
sequencenumberThe 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.

ParameterTypeDescription
bypass *enumThe bypass of the route
configId *numberThe ID of the config
routeEnable *enumThe enable of the route
routeName *stringThe name of the route, use to identify the route.
routineName *stringThe name of the routine
rule *stringThe rule of the route
siteId *numberThe ID of the site
sequencenumberThe 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).

ParameterTypeDescription
configId *numberThe ID of the config
siteId *numberThe ID of the site

route_get

Get details of a specific route associated with an Edge Routine (ER).

ParameterTypeDescription
configId *numberThe ID of the config
siteId *numberThe ID of the site

routine_route_list

List all routes associated with a specific Edge Routine (ER).

ParameterTypeDescription
routineName *stringThe name of the routine
pageNumbernumberThe page number of the routes
pageSizenumberThe page size of the routes
routeNamestringThe name of the route, use to filter list results

site_route_list

List all routes associated with a specific site.

ParameterTypeDescription
siteId *numberThe ID of the site
pageNumbernumberThe page number of the routes
pageSizenumberThe page size of the routes
routeNamestringThe name of the route, use to filter list results

list_sites

用于查询当前用户下的站点列表 ,包括站点的名称、状态、配置等信息。

ParameterTypeDescription
accessTypestring接入类型。取值:; - **NS**:通过NS托管接入。; - **CNAME**:通过CNAME接入。
coveragestring加速区域。取值:; - **domestic**:仅中国内地。; - **global**:全球。; - **overseas**:全球(不包含中国内地)。
onlyEnterpriseboolean仅企业版,传**true**时代表仅查询企业版的站点。
orderBystring排序字段,默认按照创建时间排序,支持; - gmtCreate:站点创建时间; - visitTime:站点访问时间
pageNumbernumber页码。默认值:**1**。
pageSizenumber分页大小。默认值:**500**。
planSubscribeTypestring套餐订阅类型。取值:; - **basicplan**: 基础版。; - **standardplan**:标准版。; - **advancedplan**:高级版。; - **enterpriseplan**:企业版。
resourceGroupIdstring资源组ID。用于查询的过滤条件。
siteNamestring站点名称。用于查询的过滤条件。
siteSearchTypestring站点名称的搜索匹配模式。默认为精确匹配,取值:; - **prefix**:前缀匹配。; - **suffix**:后缀匹配。; - **exact**:精确匹配。; - **fuzzy**:模糊匹配。
statusstring站点状态。用于查询的过滤条件。
tagFilterarray标签过滤规则。

site_active_list

List all active sites

site_match

Identify which site in the account matches the provided input criteria.

ParameterTypeDescription
recordName *stringThe 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.

ParameterTypeDescription
accessType *stringThe DNS setup. Valid values: - NS; - CNAME
coverage *stringThe service location. Valid values: - domestic: the Chinese mainland - global: global - overseas: outside the Chinese mainland
instanceId *stringThe 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 *stringThe website name.
resourceGroupIdstringThe 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.

ParameterTypeDescription
paused *booleanSpecifies 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 *numberThe website ID, which can be obtained by calling the [ListSites] operation.

get_site_pause

Queries the ESA proxy configuration of a website.

ParameterTypeDescription
siteId *numberThe 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.

ParameterTypeDescription
siteId *numberThe website ID. Reference Value Source: list_sites
type *stringThe type of certificate. Possible values: - cas (Cloud Certificate) - upload (Custom Upload Certificate)
casIdnumberThe ID of the cloud certificate.
certificatestringThe content of the certificate.
idstringThe ID of the certificate.
namestringThe name of the certificate.
privateKeystringThe private key of the certificate.
regionstringThe region.

apply_certificate

Applies for a free SSL certificate.

ParameterTypeDescription
domains *stringThe list of domain names, separated by commas. Example: "example.com,www.example.com"
siteId *numberSite ID. Example: 1234567890123. Reference Value Source: list_sites
type *stringThe 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

ParameterTypeDescription
id *stringCertificate ID. Example: babaded901474b9693acf530e0fb1d95
siteId *numberThe website ID. Reference Value Source: list_sites

delete_certificate

Deletes a certificate for a website.

ParameterTypeDescription
id *stringThe ID of the certificate. Example: 30001303
siteId *numberThe website ID, which can be obtained by calling the ListSites operation. Example: 1234567890123

list_certificates

Lists certificates of a website.

ParameterTypeDescription
siteId *numberThe website ID. Reference Value Source: list_sites. Example: 1234567890123
keywordstringThe search keyword.
pageNumbernumberThe page number of the returned data.
pageSizenumberThe number of records per page.
validOnlybooleanWhether to return only valid certificates.

get_certificate_quota

Query certificate quota and usage.

ParameterTypeDescription
siteId *numberThe website ID. Reference Value Source: list_sites. Example: 1234567890123
type *stringThe type of certificate quota. Example: free

update_ipv6

Modifies the IPv6 configuration of a website.

ParameterTypeDescription
enable *stringSpecifies whether to enable IPv6.
siteId *numberThe website ID, which can be obtained by calling the ListSites operation.
regionstringEnable IPV6 in the region.

get_ipv6

Queries the IPv6 configuration of a website.

ParameterTypeDescription
siteId *numberThe website ID, which can be obtained by calling the ListSites operation.

update_managed_transform

Modifies the configuration of managed transforms for your website.

ParameterTypeDescription
siteId *numberThe website ID, which can be obtained by calling the ListSites operation.
addClientGeolocationHeaderstringSpecifies whether to include the header that indicates the geographical location of a client in an origin request.
addRealClientIpHeaderstringSpecifies whether to include the 'ali-real-client-ip' header that indicates the 's real IP address in an origin request.
realClientIpHeaderNamestringThe actual client IP header name.
siteVersionnumberThe 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.

ParameterTypeDescription
siteId *numberSite ID, which can be obtained by calling ListSites.
siteVersionnumberThe 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.

ParameterTypeDescription
SiteIdnumberThe 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.

ParameterTypeDescription
data *objectThe 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 *stringThe record name.
siteId *numberThe website ID, which can be obtained by calling the [ListSites] operation.
bizNamestringThe business scenario of the record for acceleration. The parameter cannot be empty if your record is proxied. Valid values: - image_video - api - web
commentstringThe comment of the record. The maximum length is 100 characters.
proxiedbooleanSpecifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values: - true - false
ttlnumberThe 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.

ParameterTypeDescription
data *objectThe 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 *stringThe record name.
siteId *numberThe website ID, which can be obtained by calling the [ListSites] operation.
bizNamestringThe business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: - image_video - api - web
commentstringThe comment of the record. The maximum length is 100 characters.
hostPolicystringThe 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
sourceTypestringThe 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…
ttlnumberThe 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.

ParameterTypeDescription
data *objectThe 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 *stringThe record name.
siteId *numberThe website ID, which can be obtained by calling the [ListSites] operation.
commentstringThe comment of the record. The maximum length is 100 characters.
ttlnumberThe 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.

ParameterTypeDescription
data *objectThe 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 *stringThe record name.
siteId *numberThe website ID, which can be obtained by calling the [ListSites] operation.
bizNamestringThe business scenario of the record for acceleration. Leave the parameter empty if your record is not proxied. Valid values: - image_video - api - web
commentstringThe comment of the record. The maximum length is 100 characters.
ttlnumberThe 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…

ParameterTypeDescription
data *objectThe 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 *numberThe record ID, which can be obtained by calling ListRecords .
authConfobjectThe origin authentication information of the CNAME record.
bizNamestringThe 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.
commentstringThe comments of the record.
hostPolicystringThe 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…
proxiedbooleanSpecifies whether to proxy the record. Only CNAME and A/AAAA records can be proxied. Valid values: true,false
sourceTypestringThe 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…
ttlnumberThe 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.
typestringThe 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.

ParameterTypeDescription
recordId *numberThe 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.

ParameterTypeDescription
siteId *numberThe website ID, which can be obtained by calling the ListSites operation.
bizNamestringThe business scenario of the record for acceleration. Valid values: image_video: video and image. api: API.web: web page.
pageNumbernumberThe page number. Default value: 1.
pageSizenumberThe number of entries per page. Default value: 500.
proxiedbooleanFilters by whether the record is proxied. Valid values:true, false
recordMatchTypestringThe 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.
recordNamestringThe record name. This parameter specifies a filter condition for the query.
sourceTypestringThe 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.
typestringThe 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).

ParameterTypeDescription
recordId *numberThe record ID, which can be obtained by calling ListRecords.