Skip to content

feat(cli): support inline mcp add args#30175

Open
opencode-agent[bot] wants to merge 6 commits into
devfrom
feat/mcp-add-inline-args
Open

feat(cli): support inline mcp add args#30175
opencode-agent[bot] wants to merge 6 commits into
devfrom
feat/mcp-add-inline-args

Conversation

@opencode-agent
Copy link
Copy Markdown
Contributor

@opencode-agent opencode-agent Bot commented Jun 1, 2026

Summary

  • add inline argument support for opencode mcp add [name] [args...]
  • support the core inline options: --type, --env, --header, and --global
  • parse remote servers from a single URL positional and local servers from -- <command> [args...]
  • document Amp-style local command usage and add CLI coverage for local/remote inline adds plus the required command separator

Fixes #29827

Tests

  • bun typecheck
  • bun test test/cli/mcp.test.ts test/cli/help/help-snapshots.test.ts --timeout 180000
  • pre-push bun turbo typecheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

0 participants