CC-46: Option-C tool-isolation knobs (strict MCP, mcp-config path, setting-sources, DontAsk) #48
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/claude-code-query!48
Loading…
Reference in a new issue
No description provided.
Delete branch "CC-46"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds four CLI isolation knobs to the SDK so consumers (notably PROC-401) can spawn Claude Code subprocesses with a hard, non-inheritable tool allow-list:
QueryOptions.strictMcpConfig/SessionOptions.strictMcpConfig→--strict-mcp-configQueryOptions.mcpConfigPath/SessionOptions.mcpConfigPath→--mcp-config <path> --QueryOptions.settingSources/SessionOptions.settingSources→--setting-sources <csv>PermissionMode.DontAsk→--permission-mode dontAskEach knob is purely additive: defaults preserve existing behaviour (no flag emitted).
directandeffectfulpick up the new fields automatically viatype/valre-exports — no source edits required there.Linked issue: #46
Changes
core/.../model/PermissionMode.scala— newDontAskenum case with Scaladoc.core/.../model/QueryOptions.scala/SessionOptions.scala— three new fields, Scaladoc, fluentwith*helpers.core/.../cli/CLIArgumentBuilder.scala— new branch + three translation blocks in bothbuildArgsandbuildSessionArgs; argv order locked (permissionMode → strictMcpConfig → mcpConfigPath → settingSources).core/test/.../cli/CLIArgumentBuilderTest.scala&SessionOptionsArgsTest.scala— 19 new unit tests (presence, absence,Some(false)non-emission, CSV join,--terminator, deterministic ordering).Testing
./mill __.test— all tests pass (19 new unit tests for this feature)./mill core.compile/./mill direct.compile/./mill effectful.compile— clean, no warningsReview Artifacts
project-management/issues/CC-46/review-packet.mdproject-management/issues/CC-46/implementation-log.mdproject-management/issues/CC-46/review-phase-01-20260421-221853.mdRelease Notes (CZ)
Viz
project-management/issues/CC-46/release-notes.md— rozšiřuje SDK o čtyři volby pro plně izolovaný běh Claude Code s pevným allow-listem nástrojů. Výchozí chování se nemění; stávající volající nemusí nic upravovat.🤖 Generated with Claude Code