fix(crew): auto-trust project MCP so the seeded first message sends#7
Open
dropdevrahul wants to merge 2 commits into
Open
fix(crew): auto-trust project MCP so the seeded first message sends#7dropdevrahul wants to merge 2 commits into
dropdevrahul wants to merge 2 commits into
Conversation
Adding .mcp.json means every fresh Claude session in a new crew worktree hits
the one-time 'trust MCP servers?' prompt. The blind seed-typing in pty.rs then
types the task into that dialog instead of the input box, so the first message
is never sent.
Launch/resume claude with --settings '{"enableAllProjectMcpServers":true}' to
auto-enable the project's .mcp.json servers, so no prompt appears and the seed
reaches the REPL.
…ll the trust prompt The --settings enableAllProjectMcpServers approach did not reliably suppress the 'found new MCP in project nexum-delegate' trust prompt, which still swallowed the seeded first message. Instead pass the repo's .mcp.json to claude via --mcp-config <abs> --strict-mcp-config: a CLI-provided server is trusted (no discovery prompt) and strict mode ignores auto-discovered configs. When the repo has no .mcp.json, no MCP flags are added (nothing is discovered, so no prompt). Verified the flags load headlessly (exit 0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Starting a new chat from crew didn't send the first message. The repo's
.mcp.json(nexum-delegate) makes every fresh Claude session in a new worktree show the one-time "trust MCP servers?" prompt. crew's seed-typing (pty.rs) then types the task into that dialog instead of the prompt box → the message is lost.Fix
Launch and resume
claudewith--settings '{"enableAllProjectMcpServers":true}', which auto-enables project.mcp.jsonservers so the trust prompt never appears and the seed reaches the REPL. Verified the key name against the Claude Code CLI.Standalone/opencode/cursor paths unchanged. 45 Rust + 415 Python tests green.