diff options
| author | Matt Silverlock <[email protected]> | 2025-12-23 13:46:59 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-23 12:46:59 -0600 |
| commit | 4e1a9b62167f018108053e18122f12447d35139c (patch) | |
| tree | 1e51b3494275f7045170c37d4d6b788085690f0a /packages | |
| parent | 1995be359909a46ae941f890d59d7083d4c9c07a (diff) | |
| download | opencode-4e1a9b62167f018108053e18122f12447d35139c.tar.gz opencode-4e1a9b62167f018108053e18122f12447d35139c.zip | |
docs: add MCP OAuth debugging section (#6047)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/web/src/content/docs/mcp-servers.mdx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/packages/web/src/content/docs/mcp-servers.mdx b/packages/web/src/content/docs/mcp-servers.mdx index 48b38442c..58b14d12d 100644 --- a/packages/web/src/content/docs/mcp-servers.mdx +++ b/packages/web/src/content/docs/mcp-servers.mdx @@ -171,7 +171,7 @@ For most OAuth-enabled MCP servers, no special configuration is needed. Just con } ``` -If the server requires authentication, OpenCode will prompt you to authenticate when you first try to use it. +If the server requires authentication, OpenCode will prompt you to authenticate when you first try to use it. If not, you can [manually trigger the flow](#authenticating) with `opencode mcp auth <server-name>`. #### Pre-registered Client @@ -240,6 +240,20 @@ opencode mcp logout my-oauth-server The `mcp auth` command will open your browser for authorization. After you authorize, OpenCode will store the tokens securely in `~/.local/share/opencode/mcp-auth.json`. +#### Debugging + +If a remote MCP server is failing to authenticate, you can diagnose issues with: + +```bash +# View auth status for all OAuth-capable servers +opencode mcp auth list + +# Debug connection and OAuth flow for a specific server +opencode mcp debug my-oauth-server +``` + +The `mcp debug` command shows the current auth status, tests HTTP connectivity, and attempts the OAuth discovery flow. + --- ## Manage |
