Skip to content

feat(#161): add MCP server support to headless sequant run - #163

Merged
admarble merged 2 commits into
mainfrom
feature/161-feat-add-mcp-server-support-to-headless-sequan
Jan 21, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/161-feat-add-mcp-server-support-to-headless-sequan

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add getMcpServersConfig() to read full MCP config from Claude Desktop
  • Add run.mcp setting (default: true) to settings schema
  • Add --no-mcp CLI flag to disable MCPs for faster/cheaper runs
  • Pass mcpServers to SDK query() when enabled
  • Update sequant doctor to show MCP availability for headless mode
  • Add MCP documentation to run-command.md

Test plan

  • Build passes (npm run build)
  • All tests pass (npm test - 567 tests)
  • Manual: Run sequant doctor and verify "MCP Servers (headless)" check appears
  • Manual: Run sequant run 123 --no-mcp --dry-run and verify flag is respected

Implementation Details

The implementation reads MCP servers from the Claude Desktop config file at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json

When config.mcp is true (default), the full mcpServers object is passed to the SDK query() call, enabling Context7, Sequential Thinking, and Chrome DevTools in headless mode.

Closes #161

🤖 Generated with Claude Code

admarble and others added 2 commits January 21, 2026 11:14
- Add getMcpServersConfig() to read full MCP config from Claude Desktop
- Add run.mcp setting (default: true) to settings schema
- Add --no-mcp CLI flag to disable MCPs for faster/cheaper runs
- Pass mcpServers to SDK query() when enabled (AC-2)
- Update sequant doctor to show MCP availability for headless mode
- Add MCP documentation to run-command.md

The implementation reads MCP servers from the Claude Desktop config
and passes them to the Claude Agent SDK, enabling Context7, Sequential
Thinking, and Chrome DevTools in headless mode.

Closes #161

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble
admarble merged commit ea0977b into main Jan 21, 2026
@admarble
admarble deleted the feature/161-feat-add-mcp-server-support-to-headless-sequan branch January 21, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add MCP server support to headless sequant run

1 participant