HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

opencode mcp — Manage MCP (Model Context Protocol) servers. More information: <https://opencode.ai/docs/cli#mcp>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
mcpcommandclimanageprotocolmodelopencode mcpcontext

Problem

How to use the opencode mcp command: Manage MCP (Model Context Protocol) servers. More information: <https://opencode.ai/docs/cli#mcp>.

Solution

opencode mcp — Manage MCP (Model Context Protocol) servers. More information: <https://opencode.ai/docs/cli#mcp>.

List MCP servers and their status:
opencode mcp list


Add an MCP server interactively:
opencode mcp add


Authenticate with an OAuth-enabled MCP server:
opencode mcp auth {{server_name}}


Remove OAuth credentials for an MCP server:
opencode mcp logout {{server_name}}


Debug OAuth connection for an MCP server:
opencode mcp debug {{server_name}}


Display help:
opencode mcp {{[-h|--help]}}

Code Snippets

List MCP servers and their status

opencode mcp list

Add an MCP server interactively

opencode mcp add

Authenticate with an OAuth-enabled MCP server

opencode mcp auth {{server_name}}

Remove OAuth credentials for an MCP server

opencode mcp logout {{server_name}}

Debug OAuth connection for an MCP server

opencode mcp debug {{server_name}}

Context

tldr-pages: common/opencode mcp

Revisions (0)

No revisions yet.