Skip to content

[FEATURE]: The opencode mcp add command should support directly entering the information required for MCP within the command line #29827

Description

@linghengqian

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

  • The opencode mcp add command should support directly entering the information required for MCP within the command line. I noticed at docs: add installation guides for Zed and OpenCode github/github-mcp-server#2535 that if I want to add an MCP via the opencode CLI, I need to select a lot of options after entering the opencode mcp add command.
  • I think we should support commands like claude mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}', similar to Claude Code, so that you don't need to manually select a lot of options with opencode mcp add. Perhaps something like,
opencode mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'

opencode mcp rm github

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions