[FEATURE]: add mcp servers non interactively #6703

Closed
opened 2026-02-16 18:05:00 -05:00 by yindo · 2 comments
Owner

Originally created by @Slach on GitHub (Jan 18, 2026).

Originally assigned to: @thdxr on GitHub.

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

thanks a lot for your efforts
it would be nice have somethin like

opencode mcp add --type=local --name=ncp --command=ncp --env=NAME=VALUE

Originally created by @Slach on GitHub (Jan 18, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request thanks a lot for your efforts it would be nice have somethin like `opencode mcp add --type=local --name=ncp --command=ncp --env=NAME=VALUE`
yindo added the discussion label 2026-02-16 18:05:00 -05:00
yindo closed this issue 2026-02-16 18:05:00 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6207: [FEATURE]: Easily import settings/agents/MCP servers from other tools

While #6207 is broader in scope (importing from other tools), it includes the concept of importing/adding MCP servers programmatically. This issue's focus on a non-interactive CLI command with flags (like --type, --name, --command, --env) is a more specific implementation approach.

Feel free to ignore if your specific use case requires the command-line flag approach rather than a batch import mechanism.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #6207: [FEATURE]: Easily import settings/agents/MCP servers from other tools While #6207 is broader in scope (importing from other tools), it includes the concept of importing/adding MCP servers programmatically. This issue's focus on a non-interactive CLI command with flags (like `--type`, `--name`, `--command`, `--env`) is a more specific implementation approach. Feel free to ignore if your specific use case requires the command-line flag approach rather than a batch import mechanism.
Author
Owner

@Slach commented on GitHub (Jan 18, 2026):

=( actually suggested issue is not more broader, your github just don't understand what i said

how to reopen issue?

@Slach commented on GitHub (Jan 18, 2026): =( actually suggested issue is not more broader, your github just don't understand what i said how to reopen issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6703