Skip to content

Commit c5cb3a5

Browse files
committed
update vscode and claude sections in readme
Signed-off-by: nick powell <[email protected]>
1 parent 50623ae commit c5cb3a5

File tree

1 file changed

+23
-36
lines changed

1 file changed

+23
-36
lines changed

README.md

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -86,50 +86,37 @@ The server provides the following ArgoCD management tools:
8686

8787
### Usage with VSCode
8888

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:
90-
```json
91-
{
92-
"servers": {
93-
"argocd-mcp-stdio": {
94-
"type": "stdio",
95-
"command": "npx",
96-
"args": [
97-
"argocd-mcp@latest",
98-
"stdio"
99-
],
100-
"env": {
101-
"ARGOCD_BASE_URL": "<argocd_url>",
102-
"ARGOCD_API_TOKEN": "<argocd_token>"
103-
}
104-
}
105-
}
106-
}
89+
1. Enable the ArgoCD MCP server in VS Code:
90+
```bash
91+
npx argocd-mcp@latest vscode enable --url <argocd_url> --token <argocd_token>
10792
```
10893

94+
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+
10998
2. Start a conversation with an AI assistant in VS Code that supports MCP.
11099

100+
To disable the server, run:
101+
```bash
102+
npx argocd-mcp@latest vscode disable
103+
```
104+
111105
### Usage with Claude Desktop
112106

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>
130110
```
131111

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.
115+
116+
To disable the server, run:
117+
```bash
118+
npx argocd-mcp@latest claude disable
119+
```
133120

134121
### Self-signed Certificates
135122

0 commit comments

Comments
 (0)