Skip to content

Commit 596d695

Browse files
author
wenfeng.wf
committed
Add sts token support.
1 parent f1a15e5 commit 596d695

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MCP server for RDS Services via OPENAPI
1212
### Using [cherry-studio](https://github.com/CherryHQ/cherry-studio) (Recommended)
1313
Install the MCP environment according to [Cherry-Studio's documentation](https://docs.cherry-ai.com/advanced-basic/mcp/install), then configure and use RDS MCP.
1414
Add the following configuration to the MCP client configuration file:
15-
```json
15+
```json5
1616
"mcpServers": {
1717
"rds-openapi-mcp-server": {
1818
"command": "uvx",
@@ -22,8 +22,7 @@ Add the following configuration to the MCP client configuration file:
2222
"env": {
2323
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
2424
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
25-
// optional, required when using STS Token
26-
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
25+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token" // optional, required when using STS Token
2726
}
2827
}
2928
}
@@ -36,8 +35,7 @@ Set you env and run mcp server.
3635
export SERVER_TRANSPORT=sse;
3736
export ALIBABA_CLOUD_ACCESS_KEY_ID=$you_access_id;
3837
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
38+
export ALIBABA_CLOUD_SECURITY_TOKEN=$you_sts_security_token; # optional, required when using STS Token
4139

4240
# run mcp server
4341
uvx alibabacloud-rds-openapi-mcp-server@latest
@@ -61,7 +59,7 @@ Download from Github
6159
git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
6260
```
6361
Add the following configuration to the MCP client configuration file:
64-
```json
62+
```json5
6563
"mcpServers": {
6664
"rds-openapi-mcp-server": {
6765
"command": "uv",
@@ -74,8 +72,7 @@ Add the following configuration to the MCP client configuration file:
7472
"env": {
7573
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
7674
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
77-
// optional, required when using STS Token
78-
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
75+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token" // optional, required when using STS Token
7976
}
8077
}
8178
}

README_CN.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RDS OpenAPI MCP服务。
1010
## 快速开始
1111
### 使用[cherry-studio](https://github.com/CherryHQ/cherry-studio)(推荐)
1212
根据[Cherry-Studio文档](https://docs.cherry-ai.com/advanced-basic/mcp/install)安装MCP环境后配置使用RDS MCP。 MCP配置文件格式如下:
13-
```json
13+
```json5
1414
"mcpServers": {
1515
"rds-openapi-mcp-server": {
1616
"command": "uvx",
@@ -20,8 +20,7 @@ RDS OpenAPI MCP服务。
2020
"env": {
2121
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
2222
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
23-
// 可选项,使用sts token鉴权时填写
24-
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
23+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token" // 可选项,使用sts token鉴权时填写
2524
}
2625
}
2726
}
@@ -57,7 +56,7 @@ remote_server = "http://127.0.0.1:8000/sse";
5756
git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
5857
```
5958
在MCP客户端配置文件中添加:
60-
```json
59+
```json5
6160
"mcpServers": {
6261
"rds-openapi-mcp-server": {
6362
"command": "uv",
@@ -70,8 +69,7 @@ git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
7069
"env": {
7170
"ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
7271
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
73-
// 可选项,使用sts token鉴权时填写
74-
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token"
72+
"ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token" // 可选项,使用sts token鉴权时填写
7573
}
7674
}
7775
}

0 commit comments

Comments
 (0)