claude-code - 💡(How to fix) Fix claude agents: --mcp-config, --settings, --plugin-dir, --add-dir flags rejected despite changelog entry in 2.1.142

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The 2.1.142 changelog states:

Added new claude agents flags: --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions to configure dispatched background sessions

However, all four profile-configuration flags (--mcp-config, --settings, --plugin-dir, --add-dir) are rejected with error: unknown option at launch.

Error Message

$ claude --version 2.1.142 (Claude Code)

$ claude agents --mcp-config /dev/null error: unknown option '--mcp-config'

$ claude agents --settings /dev/null error: unknown option '--settings'

$ claude agents --plugin-dir /tmp error: unknown option '--plugin-dir'

$ claude agents --add-dir /tmp error: unknown option '--add-dir'

Root Cause

The 2.1.142 changelog states:

Added new claude agents flags: --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions to configure dispatched background sessions

However, all four profile-configuration flags (--mcp-config, --settings, --plugin-dir, --add-dir) are rejected with error: unknown option at launch.

Fix Action

Fix / Workaround

Added new claude agents flags: --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions to configure dispatched background sessions

All eight flags listed in the changelog should be accepted by claude agents and forwarded to sessions dispatched from the agent view.

Code Example

$ claude --version
2.1.142 (Claude Code)

$ claude agents --mcp-config /dev/null
error: unknown option '--mcp-config'

$ claude agents --settings /dev/null
error: unknown option '--settings'

$ claude agents --plugin-dir /tmp
error: unknown option '--plugin-dir'

$ claude agents --add-dir /tmp
error: unknown option '--add-dir'
RAW_BUFFERClick to expand / collapse

Description

The 2.1.142 changelog states:

Added new claude agents flags: --add-dir, --settings, --mcp-config, --plugin-dir, --permission-mode, --model, --effort, and --dangerously-skip-permissions to configure dispatched background sessions

However, all four profile-configuration flags (--mcp-config, --settings, --plugin-dir, --add-dir) are rejected with error: unknown option at launch.

Steps to reproduce

$ claude --version
2.1.142 (Claude Code)

$ claude agents --mcp-config /dev/null
error: unknown option '--mcp-config'

$ claude agents --settings /dev/null
error: unknown option '--settings'

$ claude agents --plugin-dir /tmp
error: unknown option '--plugin-dir'

$ claude agents --add-dir /tmp
error: unknown option '--add-dir'

The flags that do work (--model, --permission-mode, --effort, --dangerously-skip-permissions) are accepted normally.

Expected behavior

All eight flags listed in the changelog should be accepted by claude agents and forwarded to sessions dispatched from the agent view.

Actual behavior

The four flags above exit immediately with error: unknown option <flag>.

Platform

  • macOS (Darwin 25.5.0)
  • Claude Code 2.1.142

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

All eight flags listed in the changelog should be accepted by claude agents and forwarded to sessions dispatched from the agent view.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix claude agents: --mcp-config, --settings, --plugin-dir, --add-dir flags rejected despite changelog entry in 2.1.142