Repository navigation
Conversation
sequant init now always creates .mcp.json in the project root with the sequant MCP server config for Claude Code. This is the primary integration point since Claude Code reads MCP configs from .mcp.json at project root. - Add createProjectMcpJson() to mcp-config.ts with create/merge/skip logic - Integrate into init.ts before global client detection (always runs) - Show .mcp.json in "Will create:" preview section - No cwd/env in .mcp.json (Claude Code runs from project root) - --mcp flag retains existing behavior for global client configs Closes #418 Entire-Checkpoint: 547a1b233a7e
7 tasks
Gate env inclusion in getSequantMcpConfig() on clientType being present. Without a clientType (i.e., project-level .mcp.json which is committed to git), env is never included — preventing secrets from being checked in. Also fixes import ordering and adds a security-focused test. Entire-Checkpoint: 66f4e1170119
- Guard against mcpServers being an array (typeof [] === "object") in both addSequantToMcpConfig and createProjectMcpJson - Only show .mcp.json in "Will create:" preview when sequant is not already configured there - Add test for array edge case Entire-Checkpoint: 547a1b233a7e
Replace inline JSON parsing in init preview with a shared predicate in mcp-config.ts. Check logic now lives in one place instead of being duplicated between preview and createProjectMcpJson. Entire-Checkpoint: 547a1b233a7e
Always show .mcp.json in the "Will create:" preview unconditionally, matching the pattern used by every other preview item. The write phase already handles created/merged/skipped cases with accurate messaging.
Add Claude Code as the primary client in the setup section, document automatic .mcp.json creation during sequant init, and update the automatic setup section to reflect the new default behavior.
admarble
deleted the
feature/418-sequant-init-create-mcp-json-by-default-for-claude
branch
March 25, 2026 06:22
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.
Summary
sequant initnow always creates.mcp.jsonin the project root with the sequant MCP server config for Claude Code.mcp.jsonexists with asequantentry, it's skipped; if it exists without one, sequant is merged in.mcp.jsonappears in the "Will create:" preview during init--mcpflag retains its existing behavior of writing to global client configs (Claude Desktop, Cursor, VS Code)--yescreates.mcp.json(always) but skips global client config changesPre-PR AC Verification
sequant initcreates.mcp.jsonby defaultinit.ts:540callscreateProjectMcpJson()unconditionally.mcp.jsonin "Will create:" previewinit.ts:389preview line added.mcp.jsonalready has sequantmcp-config.ts:191returnsskipped: true.mcp.jsonmcp-config.ts:195preserves existing servers--mcpretains global client behaviorinit.ts:552+--yescreates.mcp.json, skips global.mcp.jsonhandledmcp-config.test.tscorrupt file test.mcp.jsonmcp-config.test.tsverifies undefinedTest plan
npm run buildpassesnpm run lintpasses (0 errors, 0 warnings)npm test— 1909/1911 pass (2 pre-existing timeouts unrelated to this PR)createProjectMcpJson(create/merge/skip/corrupt/no-cwd-env)init.test.ts(default creation, --yes, --mcp, preview)Closes #418
🤖 Generated with Claude Code