refactor(cli): align mcp add args help
This commit is contained in:
parent
2ca7478b8a
commit
ebb101bd54
4 changed files with 81 additions and 55 deletions
|
|
@ -50,7 +50,7 @@ You can add MCP servers from the command line with `opencode mcp add`.
|
|||
|
||||
```bash
|
||||
# Local server
|
||||
opencode mcp add mcp_everything npx -y @modelcontextprotocol/server-everything
|
||||
opencode mcp add mcp_everything -- npx -y @modelcontextprotocol/server-everything
|
||||
|
||||
# Remote server
|
||||
opencode mcp add github https://api.githubcopilot.com/mcp \
|
||||
|
|
@ -58,7 +58,7 @@ opencode mcp add github https://api.githubcopilot.com/mcp \
|
|||
--header "Authorization: Bearer YOUR_GITHUB_PAT"
|
||||
```
|
||||
|
||||
Use `--env KEY=VALUE` for local server environment variables and repeat it for multiple values. Use `--global` to save to global config; otherwise the command saves to the current project when run inside a git repository.
|
||||
Use `--env KEY=VALUE` for local server environment variables and repeat it for multiple values. Use `--scope project` or `--global` to choose where the server is saved.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue