Skip to content

Commit a3fb325

Browse files
authored
chore: update example (#17)
* update example * fix url * add keywords
1 parent 12f26bd commit a3fb325

File tree

4 files changed

+38
-62
lines changed

4 files changed

+38
-62
lines changed

.cursor/mcp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"argocd-mcp": {
44
"command": "npx",
55
"args": [
6-
"argocd-mcp",
6+
"argocd-mcp@latest",
77
"stdio"
88
],
99
"env": {
1010
"NODE_TLS_REJECT_UNAUTHORIZED": "0",
11-
"ARGOCD_BASE_URL": "https://your-argocd-server.com",
12-
"ARGOCD_API_TOKEN": "your_argocd_token"
11+
"ARGOCD_BASE_URL": "<argocd_url>",
12+
"ARGOCD_API_TOKEN": "<argocd_token>"
1313
}
1414
}
1515
}

.vscode/mcp.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
{
2-
"inputs": [
3-
{
4-
"id": "argocd-base-url",
5-
"type": "promptString",
6-
"description": "Enter the ArgoCD base URL",
7-
"password": false
8-
},
9-
{
10-
"id": "argocd-api-token",
11-
"type": "promptString",
12-
"description": "Enter the ArgoCD API token",
13-
"password": true
14-
}
15-
],
162
"servers": {
173
"argocd-mcp-sse": {
184
"type": "sse",
195
"url": "http://localhost:3000/sse",
206
"headers": {
21-
"x-argocd-base-url": "${input:argocd-base-url}",
22-
"x-argocd-api-token": "${input:argocd-api-token}"
7+
"x-argocd-base-url": "<argocd_url>",
8+
"x-argocd-api-token": "<argocd_token>"
239
}
2410
}
2511
}

README.md

Lines changed: 12 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,17 @@ const config = JSON.stringify({
88
"name": "argocd-mcp",
99
"command": "npx",
1010
"args": ["argocd-mcp@latest", "stdio"],
11-
"inputs": [
12-
{
13-
"id": "argocd-base-url",
14-
"type": "promptString",
15-
"description": "Enter the ArgoCD base URL",
16-
"password": false
17-
},
18-
{
19-
"id": "argocd-api-token",
20-
"type": "promptString",
21-
"description": "Enter the ArgoCD API token",
22-
"password": true
23-
}
24-
],
2511
"env": {
26-
"ARGOCD_BASE_URL": "${input:argocd-base-url}",
27-
"ARGOCD_API_TOKEN": "${input:argocd-api-token}"
12+
"ARGOCD_BASE_URL": "<argocd_url>",
13+
"ARGOCD_API_TOKEN": "<argocd_token>"
2814
}
2915
});
3016
const urlForWebsites = `vscode:mcp/install?${encodeURIComponent(config)}`;
3117
// Github markdown does not allow linking to `vscode:` directly, so you can use our redirect:
3218
const urlForGithub = `https://insiders.vscode.dev/redirect?url=${encodeURIComponent(urlForWebsites)}`;
3319
-->
3420

35-
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522argocd-mcp%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522argocd-mcp%2540latest%2522%252C%2522stdio%2522%255D%252C%2522inputs%2522%253A%255B%257B%2522id%2522%253A%2522argocd-base-url%2522%252C%2522type%2522%253A%2522promptString%2522%252C%2522description%2522%253A%2522Enter%2520the%2520ArgoCD%2520base%2520URL%2522%252C%2522password%2522%253Afalse%257D%252C%257B%2522id%2522%253A%2522argocd-api-token%2522%252C%2522type%2522%253A%2522promptString%2522%252C%2522description%2522%253A%2522Enter%2520the%2520ArgoCD%2520API%2520token%2522%252C%2522password%2522%253Atrue%257D%255D%252C%2522env%2522%253A%257B%2522ARGOCD_BASE_URL%2522%253A%2522%2524%257Binput%253Aargocd-base-url%257D%2522%252C%2522ARGOCD_API_TOKEN%2522%253A%2522%2524%257Binput%253Aargocd-api-token%257D%2522%257D%257D) [<img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522argocd-mcp%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522argocd-mcp%2540latest%2522%252C%2522stdio%2522%255D%252C%2522inputs%2522%253A%255B%257B%2522id%2522%253A%2522argocd-base-url%2522%252C%2522type%2522%253A%2522promptString%2522%252C%2522description%2522%253A%2522Enter%2520the%2520ArgoCD%2520base%2520URL%2522%252C%2522password%2522%253Afalse%257D%252C%257B%2522id%2522%253A%2522argocd-api-token%2522%252C%2522type%2522%253A%2522promptString%2522%252C%2522description%2522%253A%2522Enter%2520the%2520ArgoCD%2520API%2520token%2522%252C%2522password%2522%253Atrue%257D%255D%252C%2522env%2522%253A%257B%2522ARGOCD_BASE_URL%2522%253A%2522%2524%257Binput%253Aargocd-base-url%257D%2522%252C%2522ARGOCD_API_TOKEN%2522%253A%2522%2524%257Binput%253Aargocd-api-token%257D%2522%257D%257D)
21+
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522argocd-mcp%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522argocd-mcp%2540latest%2522%252C%2522stdio%2522%255D%252C%2522env%2522%253A%257B%2522ARGOCD_BASE_URL%2522%253A%2522%253Cargocd_url%253E%2522%252C%2522ARGOCD_API_TOKEN%2522%253A%2522%253Cargocd_token%253E%2522%257D%257D) [<img alt="Install in VS Code Insiders" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5">](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522argocd-mcp%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522argocd-mcp%2540latest%2522%252C%2522stdio%2522%255D%252C%2522env%2522%253A%257B%2522ARGOCD_BASE_URL%2522%253A%2522%253Cargocd_url%253E%2522%252C%2522ARGOCD_API_TOKEN%2522%253A%2522%253Cargocd_token%253E%2522%257D%257D)
3622

3723

3824

@@ -58,12 +44,12 @@ const urlForGithub = `https://insiders.vscode.dev/redirect?url=${encodeURICompon
5844
"argocd-mcp": {
5945
"command": "npx",
6046
"args": [
61-
"argocd-mcp",
47+
"argocd-mcp@latest",
6248
"stdio"
6349
],
6450
"env": {
65-
"ARGOCD_BASE_URL": "https://your-argocd-server.com",
66-
"ARGOCD_API_TOKEN": "your_argocd_token"
51+
"ARGOCD_BASE_URL": "<argocd_url>",
52+
"ARGOCD_API_TOKEN": "<argocd_token>"
6753
}
6854
}
6955
}
@@ -77,31 +63,17 @@ const urlForGithub = `https://insiders.vscode.dev/redirect?url=${encodeURICompon
7763
1. Follow the [Use MCP servers in VS Code documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers), and create a `.vscode/mcp.json` file in your project:
7864
```json
7965
{
80-
"inputs": [
81-
{
82-
"id": "argocd-base-url",
83-
"type": "promptString",
84-
"description": "Enter the ArgoCD base URL",
85-
"password": false
86-
},
87-
{
88-
"id": "argocd-api-token",
89-
"type": "promptString",
90-
"description": "Enter the ArgoCD API token",
91-
"password": true
92-
}
93-
],
9466
"servers": {
9567
"argocd-mcp-stdio": {
9668
"type": "stdio",
9769
"command": "npx",
9870
"args": [
99-
"argocd-mcp",
71+
"argocd-mcp@latest",
10072
"stdio"
10173
],
10274
"env": {
103-
"ARGOCD_BASE_URL": "${input:argocd-base-url}",
104-
"ARGOCD_API_TOKEN": "${input:argocd-api-token}"
75+
"ARGOCD_BASE_URL": "<argocd_url>",
76+
"ARGOCD_API_TOKEN": "<argocd_token>"
10577
}
10678
}
10779
}
@@ -119,12 +91,12 @@ const urlForGithub = `https://insiders.vscode.dev/redirect?url=${encodeURICompon
11991
"argocd-mcp": {
12092
"command": "npx",
12193
"args": [
122-
"argocd-mcp",
94+
"argocd-mcp@latest",
12395
"stdio"
12496
],
12597
"env": {
126-
"ARGOCD_BASE_URL": "https://your-argocd-server.com",
127-
"ARGOCD_API_TOKEN": "your_argocd_token"
98+
"ARGOCD_BASE_URL": "<argocd_url>",
99+
"ARGOCD_API_TOKEN": "<argocd_token>"
128100
}
129101
}
130102
}

package.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,34 @@
11
{
22
"name": "argocd-mcp",
33
"version": "0.0.0",
4-
"description": "ArgoCD MCP Server",
4+
"description": "Argo CD MCP Server",
5+
"keywords": [
6+
"mcp",
7+
"argocd",
8+
"argocd-mcp",
9+
"argocd-mcp-server",
10+
"argo-cd",
11+
"argo-cd-mcp",
12+
"argo-cd-mcp-server",
13+
"cicd",
14+
"cicd-mcp",
15+
"cicd-mcp-server",
16+
"gitops",
17+
"gitops-mcp",
18+
"gitops-mcp-server",
19+
"kubernetes",
20+
"kubernetes-mcp",
21+
"kubernetes-mcp-server"
22+
],
523
"main": "dist/index.js",
624
"type": "module",
725
"bin": {
826
"argocd-mcp": "dist/index.js"
927
},
1028
"files": [
1129
"dist",
12-
"README.md"
30+
"README.md",
31+
"LICENSE"
1332
],
1433
"scripts": {
1534
"dev": "tsx watch src/index.ts sse",
@@ -19,7 +38,6 @@
1938
"build:watch": "tsup --watch",
2039
"prepare": "npm run build"
2140
},
22-
"keywords": [],
2341
"author": "Akuity, Inc.",
2442
"license": "Apache-2.0",
2543
"dependencies": {

0 commit comments

Comments
 (0)