Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/web/src/content/docs/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,20 @@ opencode mcp add

This command will guide you through adding either a local or remote MCP server.

You can also add a server non-interactively by passing a name and either `--url` for a remote server or a local command after `--`.

```bash
opencode mcp add github --url https://api.githubcopilot.com/mcp --header "Authorization=Bearer {env:GITHUB_TOKEN}"
```

##### Flags

| Flag | Description |
| ------------------------------------- | -------------------------------------------- |
| <nobr><code>{"--url"}</code></nobr> | URL for a remote MCP server |
| <nobr><code>{"--header"}</code></nobr> | HTTP header for a remote MCP server |
| <nobr><code>{"--env"}</code></nobr> | Environment variable for a local MCP server |

---

#### list
Expand Down
Loading