cos-mcp 1.0.3 → 1.0.4
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.
- package/README.md +13 -2
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
// 安装
|
|
68
68
|
npm install -g cos-mcp
|
|
69
69
|
|
|
70
|
-
//
|
|
71
|
-
|
|
70
|
+
// 运行开启sse模式
|
|
71
|
+
cos-mcp --cos-config='{"Region":"yourRegion","Bucket":"BucketName-APPID","SecretId":"yourSecretId","SecretKey":"yourSecretKey","DatasetName":"datasetName"}' --port=3001 --connectType=sse
|
|
72
72
|
|
|
73
73
|
// 参数说明:
|
|
74
74
|
// connectType 代表连接方式,可以是stdio (本地) 或 sse (远程)
|
|
@@ -78,4 +78,15 @@ npx cos-mcp --cos-config='{"Region":"yourRegion","Bucket":"BucketName-APPID","Se
|
|
|
78
78
|
// region 是存储桶所在的区域
|
|
79
79
|
|
|
80
80
|
```
|
|
81
|
+
在大模型内使用sse模式时(例如: cursor), 需要在mcp.json 中配置
|
|
82
|
+
```
|
|
83
|
+
{
|
|
84
|
+
"mcpServers": {
|
|
85
|
+
"cos-mcp": {
|
|
86
|
+
"url": "http://localhost:3001/sse",
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
81
90
|
|
|
91
|
+
```
|
|
92
|
+
添加以上配置即可快速使大模型拥有COS/CI能力!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cos-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
|
-
"README.md"
|
|
23
|
-
"img"
|
|
22
|
+
"README.md"
|
|
24
23
|
],
|
|
25
24
|
"keywords": [
|
|
26
25
|
"mcp",
|