Skip to content

Commit c42fb65

Browse files
author
wenfeng.wf
committed
Add sts token support.
1 parent ba48a88 commit c42fb65

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ Add the following configuration to the MCP client configuration file:
2121
],
2222
"env": {
2323
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
24-
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key"
24+
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
25+
// optional, required when using STS Token
26+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
2527
}
2628
}
2729
}
@@ -34,6 +36,8 @@ Set you env and run mcp server.
3436
export SERVER_TRANSPORT=sse;
3537
export ALIBABA_CLOUD_ACCESS_KEY_ID=$you_access_id;
3638
export ALIBABA_CLOUD_ACCESS_KEY_SECRET=$you_access_key;
39+
# optional, required when using STS Token
40+
export ALIBABA_CLOUD_SECURITY_TOKEN=$you_sts_security_token
3741

3842
# run mcp server
3943
uvx alibabacloud-rds-openapi-mcp-server@latest
@@ -69,7 +73,9 @@ Add the following configuration to the MCP client configuration file:
6973
],
7074
"env": {
7175
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
72-
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key"
76+
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
77+
// optional, required when using STS Token
78+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
7379
}
7480
}
7581
}

README_CN.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ RDS OpenAPI MCP服务。
1919
],
2020
"env": {
2121
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
22-
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key"
22+
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
23+
// 可选项,使用sts token鉴权时填写
24+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
2325
}
2426
}
2527
}
@@ -32,6 +34,7 @@ RDS OpenAPI MCP服务。
3234
export SERVER_TRANSPORT=sse;
3335
export ALIBABA_CLOUD_ACCESS_KEY_ID=$your_access_id; # 替换为你的access_id
3436
export ALIBABA_CLOUD_ACCESS_KEY_SECRET=$your_access_key; # 替换为你的access_key
37+
export ALIBABA_CLOUD_SECURITY_TOKEN=$your_sts_security_token; # 可选项,使用sts token鉴权时填写
3538

3639
# 启动MCP服务
3740
uvx alibabacloud-rds-openapi-mcp-server@latest
@@ -66,8 +69,10 @@ git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
6669
],
6770
"env": {
6871
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
69-
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key"
70-
}
72+
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
73+
// 可选项,使用sts token鉴权时填写
74+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
75+
}
7176
}
7277
}
7378
```

0 commit comments

Comments
 (0)