You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-36Lines changed: 23 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,50 +86,37 @@ The server provides the following ArgoCD management tools:
86
86
87
87
### Usage with VSCode
88
88
89
-
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:
Optionally, use the `--workspace` flag to install in the current workspace directory instead of the user configuration directory.
95
+
96
+
You can also set the `ARGOCD_BASE_URL` and `ARGOCD_API_TOKEN` environment variables instead of using the `--url` and `--token` flags.
97
+
109
98
2. Start a conversation with an AI assistant in VS Code that supports MCP.
110
99
100
+
To disable the server, run:
101
+
```bash
102
+
npx argocd-mcp@latest vscode disable
103
+
```
104
+
111
105
### Usage with Claude Desktop
112
106
113
-
1. Follow the [MCP in Claude Desktop documentation](https://modelcontextprotocol.io/quickstart/user), and create a `claude_desktop_config.json` configuration file:
114
-
```json
115
-
{
116
-
"mcpServers": {
117
-
"argocd-mcp": {
118
-
"command": "npx",
119
-
"args": [
120
-
"argocd-mcp@latest",
121
-
"stdio"
122
-
],
123
-
"env": {
124
-
"ARGOCD_BASE_URL": "<argocd_url>",
125
-
"ARGOCD_API_TOKEN": "<argocd_token>"
126
-
}
127
-
}
128
-
}
129
-
}
107
+
1. Enable the ArgoCD MCP server in Claude Desktop:
108
+
```bash
109
+
npx argocd-mcp@latest claude enable --url <argocd_url> --token <argocd_token>
130
110
```
131
111
132
-
2. Configure Claude Desktop to use this configuration file in settings.
112
+
You can also set the `ARGOCD_BASE_URL` and `ARGOCD_API_TOKEN` environment variables instead of using the `--url` and `--token` flags.
113
+
114
+
2. Restart Claude Desktop to load the configuration.
0 commit comments