alibaba-cloud-ops-mcp-server 0.9.5__py3-none-any.whl → 0.9.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alibaba_cloud_ops_mcp_server/server.py +9 -1
- alibaba_cloud_ops_mcp_server/settings.py +1 -0
- alibaba_cloud_ops_mcp_server/tools/api_tools.py +4 -1
- {alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/METADATA +4 -3
- {alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/RECORD +8 -8
- {alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/WHEEL +0 -0
- {alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/entry_points.txt +0 -0
- {alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/licenses/LICENSE +0 -0
|
@@ -55,7 +55,13 @@ SUPPORTED_SERVICES_MAP = {
|
|
|
55
55
|
default=False,
|
|
56
56
|
help="Whether to use credentials only from headers",
|
|
57
57
|
)
|
|
58
|
-
|
|
58
|
+
@click.option(
|
|
59
|
+
"--env",
|
|
60
|
+
type=click.Choice(["domestic", "international"]),
|
|
61
|
+
default="domestic",
|
|
62
|
+
help="Environment type: 'domestic' for domestic, 'international' for overseas (default: domestic)",
|
|
63
|
+
)
|
|
64
|
+
def main(transport: str, port: int, host: str, services: str, headers_credential_only: bool, env: str):
|
|
59
65
|
# Create an MCP server
|
|
60
66
|
mcp = FastMCP(
|
|
61
67
|
name="alibaba-cloud-ops-mcp-server",
|
|
@@ -65,6 +71,8 @@ def main(transport: str, port: int, host: str, services: str, headers_credential
|
|
|
65
71
|
)
|
|
66
72
|
if headers_credential_only:
|
|
67
73
|
settings.headers_credential_only = headers_credential_only
|
|
74
|
+
if env:
|
|
75
|
+
settings.env = env
|
|
68
76
|
if services:
|
|
69
77
|
service_keys = [s.strip().lower() for s in services.split(",")]
|
|
70
78
|
service_list = [(key, SUPPORTED_SERVICES_MAP.get(key, key)) for key in service_keys]
|
|
@@ -13,6 +13,7 @@ from alibabacloud_tea_openapi.client import Client as OpenApiClient
|
|
|
13
13
|
from alibabacloud_openapi_util.client import Client as OpenApiUtilClient
|
|
14
14
|
from alibaba_cloud_ops_mcp_server.alibabacloud.api_meta_client import ApiMetaClient
|
|
15
15
|
from alibaba_cloud_ops_mcp_server.alibabacloud.utils import create_config
|
|
16
|
+
from alibaba_cloud_ops_mcp_server.settings import settings
|
|
16
17
|
|
|
17
18
|
logger = logging.getLogger(__name__)
|
|
18
19
|
|
|
@@ -52,7 +53,9 @@ def _get_service_endpoint(service: str, region_id: str):
|
|
|
52
53
|
# Prioritizing central service endpoints
|
|
53
54
|
central = CENTRAL_SERVICE_ENDPOINTS.get(service)
|
|
54
55
|
if central:
|
|
55
|
-
if
|
|
56
|
+
if settings.env == 'international':
|
|
57
|
+
return central['InternationalEndpoint']
|
|
58
|
+
elif region_id in central.get('DomesticRegion', []) or settings.env == 'domestic':
|
|
56
59
|
return central['DomesticEndpoint']
|
|
57
60
|
else:
|
|
58
61
|
return central['InternationalEndpoint']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: alibaba-cloud-ops-mcp-server
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.7
|
|
4
4
|
Summary: A MCP server for Alibaba Cloud
|
|
5
5
|
Author-email: Zheng Dayu <dayu.zdy@alibaba-inc.com>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -12,6 +12,7 @@ Requires-Dist: alibabacloud-oos20190601>=3.4.1
|
|
|
12
12
|
Requires-Dist: alibabacloud-oss-v2>=1.1.0
|
|
13
13
|
Requires-Dist: click>=8.1.8
|
|
14
14
|
Requires-Dist: fastmcp==2.8.0
|
|
15
|
+
Requires-Dist: pydantic==2.11.3
|
|
15
16
|
Description-Content-Type: text/markdown
|
|
16
17
|
|
|
17
18
|
# Alibaba Cloud Ops MCP Server
|
|
@@ -20,7 +21,7 @@ Description-Content-Type: text/markdown
|
|
|
20
21
|
|
|
21
22
|
[中文版本](./README_zh.md)
|
|
22
23
|
|
|
23
|
-
Alibaba Cloud Ops MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that provides seamless integration with Alibaba Cloud APIs, enabling AI assistants to operation resources on Alibaba Cloud, supporting ECS, Cloud Monitor, OOS
|
|
24
|
+
Alibaba Cloud Ops MCP Server is a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server that provides seamless integration with Alibaba Cloud APIs, enabling AI assistants to operation resources on Alibaba Cloud, supporting ECS, Cloud Monitor, OOS and other widely used cloud products.
|
|
24
25
|
|
|
25
26
|
## Prepare
|
|
26
27
|
|
|
@@ -60,7 +61,7 @@ To use `alibaba-cloud-ops-mcp-server` MCP Server with any other MCP Client, you
|
|
|
60
61
|
## MCP Maketplace Integration
|
|
61
62
|
|
|
62
63
|
* [Cline](https://cline.bot/mcp-marketplace)
|
|
63
|
-
* [Cursor](https://docs.cursor.com/tools) [](https://cursor.com/install-mcp?name=alibaba-cloud-ops-mcp-server&config=
|
|
64
|
+
* [Cursor](https://docs.cursor.com/tools) [](https://cursor.com/en/install-mcp?name=alibaba-cloud-ops-mcp-server&config=eyJ0aW1lb3V0Ijo2MDAsImNvbW1hbmQiOiJ1dnggYWxpYmFiYS1jbG91ZC1vcHMtbWNwLXNlcnZlckBsYXRlc3QiLCJlbnYiOnsiQUxJQkFCQV9DTE9VRF9BQ0NFU1NfS0VZX0lEIjoiWW91ciBBY2Nlc3MgS2V5IElkIiwiQUxJQkFCQV9DTE9VRF9BQ0NFU1NfS0VZX1NFQ1JFVCI6IllvdXIgQWNjZXNzIEtleSBTZWNyZXQifX0%3D)
|
|
64
65
|
* [ModelScope](https://www.modelscope.cn/mcp/servers/@aliyun/alibaba-cloud-ops-mcp-server?lang=en_US)
|
|
65
66
|
* [Lingma](https://lingma.aliyun.com/)
|
|
66
67
|
* [Smithery AI](https://smithery.ai/server/@aliyun/alibaba-cloud-ops-mcp-server)
|
{alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/RECORD
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
alibaba_cloud_ops_mcp_server/__init__.py,sha256=BaluUNyRz8Qw-X7Y0ywDezwbkqiSvWlSYn2452XeGcA,213
|
|
2
2
|
alibaba_cloud_ops_mcp_server/__main__.py,sha256=Q40p2HtWGvxj1JLvS7dn95NLzDhJNQ6JAgLLyCb4Y50,63
|
|
3
3
|
alibaba_cloud_ops_mcp_server/config.py,sha256=PizctjXsQUWoMWBY1dFjNffVlZr9K6hNvqA4DpayR_o,513
|
|
4
|
-
alibaba_cloud_ops_mcp_server/server.py,sha256=
|
|
5
|
-
alibaba_cloud_ops_mcp_server/settings.py,sha256=
|
|
4
|
+
alibaba_cloud_ops_mcp_server/server.py,sha256=dv8S8E5Cj1eEe_CXKfSzhtAfhpGBGKvGcsliOlpzS9o,2900
|
|
5
|
+
alibaba_cloud_ops_mcp_server/settings.py,sha256=R1jvMtgErWn_1MZ2Gq3xzBZeMtkGpSHvVutInh0Ix4s,167
|
|
6
6
|
alibaba_cloud_ops_mcp_server/alibabacloud/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
alibaba_cloud_ops_mcp_server/alibabacloud/api_meta_client.py,sha256=t2TSc0Gzcy_uEcaCgiHHuLoMiEGu3-NCtYmwYjyPWsY,7973
|
|
8
8
|
alibaba_cloud_ops_mcp_server/alibabacloud/exception.py,sha256=7PdhgqgXEGrTPL1cj98h9EH-RrM6-2TT89PDtcmlpmU,1230
|
|
@@ -10,13 +10,13 @@ alibaba_cloud_ops_mcp_server/alibabacloud/utils.py,sha256=tZQAEqGKS6Rx6Te9zNYfPB
|
|
|
10
10
|
alibaba_cloud_ops_mcp_server/alibabacloud/static/PROMPT_UNDERSTANDING.md,sha256=QPubudP1bwDbWu0Js6MYb4cJd1B2zM_JGp53twYv5yc,3611
|
|
11
11
|
alibaba_cloud_ops_mcp_server/alibabacloud/static/__init__.py,sha256=wJrYamaIb7e_kA4ILZpdP1f1TUUTXMGqEhA4IbSZ2Ts,230
|
|
12
12
|
alibaba_cloud_ops_mcp_server/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
alibaba_cloud_ops_mcp_server/tools/api_tools.py,sha256=
|
|
13
|
+
alibaba_cloud_ops_mcp_server/tools/api_tools.py,sha256=dqtbjonhuwpH6_gS_Yc3kYXaOzC0T-iJ2n9stzMbP1g,9568
|
|
14
14
|
alibaba_cloud_ops_mcp_server/tools/cms_tools.py,sha256=BmPTiP8wu9DsEHBQsvR7JH9nFkcKMTBuNuafFqSfVxU,4308
|
|
15
15
|
alibaba_cloud_ops_mcp_server/tools/common_api_tools.py,sha256=ccQAWqS1I9F-fdOdjLcXN-dIhNqSbZV8T5ODuGXlfXM,2711
|
|
16
16
|
alibaba_cloud_ops_mcp_server/tools/oos_tools.py,sha256=8CLidg8Vrzpxv4lEOokPdScv31xlg_gX7glifiSqa8g,10063
|
|
17
17
|
alibaba_cloud_ops_mcp_server/tools/oss_tools.py,sha256=MUAiYL4VlsYQPoR_JtHOLcF1i4VYK9KE6ff9BTqJr9E,5014
|
|
18
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
19
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
20
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
21
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
22
|
-
alibaba_cloud_ops_mcp_server-0.9.
|
|
18
|
+
alibaba_cloud_ops_mcp_server-0.9.7.dist-info/METADATA,sha256=uUWCPtGrfEy4oawWNfIF-wRFeiZcSdkqBgn7RztuHf8,6001
|
|
19
|
+
alibaba_cloud_ops_mcp_server-0.9.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
20
|
+
alibaba_cloud_ops_mcp_server-0.9.7.dist-info/entry_points.txt,sha256=ESGAWXKEp184forhs7VzTD4P1AUdZz6vCW6hRUKITGw,83
|
|
21
|
+
alibaba_cloud_ops_mcp_server-0.9.7.dist-info/licenses/LICENSE,sha256=gQgVkp2ttRCjodiPpXZZR-d7JnrYIYNiHk1YDUYgpa4,11331
|
|
22
|
+
alibaba_cloud_ops_mcp_server-0.9.7.dist-info/RECORD,,
|
{alibaba_cloud_ops_mcp_server-0.9.5.dist-info → alibaba_cloud_ops_mcp_server-0.9.7.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|