snippetbashTip
opencode mcp — Manage MCP (Model Context Protocol) servers. More information: <https://opencode.ai/docs/cli#mcp>.
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 listAdd an MCP server interactively:
opencode mcp addAuthenticate 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 listAdd an MCP server interactively
opencode mcp addAuthenticate 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.