Skip to content
This repository was archived by the owner on Jul 5, 2026. It is now read-only.

Install project MCP configs and generated gitignore#32

Merged
alexstyl merged 2 commits into
mainfrom
mcp-project-root-installs
Jul 5, 2026
Merged

Install project MCP configs and generated gitignore#32
alexstyl merged 2 commits into
mainfrom
mcp-project-root-installs

Conversation

@alexstyl

@alexstyl alexstyl commented Jul 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Resolve the Gradle project root from the current directory before installing project-scoped MCP configs.
  • Allow installs from nested project folders while writing config files at the root.
  • Fail clearly outside a Gradle project for project-scoped clients.
  • Move Antigravity, Firebender, and Zed installs to their documented project/workspace config files.
  • Include a CMP-oriented .gitignore in generated projects and ensure it is packaged in the CLI.

Project-scoped installs

  • Antigravity: <root>/.agents/mcp_config.json
  • Claude Code: <root>/.mcp.json
  • Codex: <root>/.codex/config.toml
  • Cursor: <root>/.cursor/mcp.json
  • Firebender: <root>/firebender.json
  • OpenCode: <root>/opencode.json
  • Zed: <root>/.zed/settings.json

Android Studio stays IDE-profile scoped because I did not find a project-specific MCP config path for Android Studio.

Sources checked

  • shadcn MCP docs: project .mcp.json for Claude Code, project .cursor/mcp.json for Cursor, ~/.codex/config.toml and project .codex/config.toml support for Codex pattern.
  • OpenAI Codex docs: Codex supports user ~/.codex/config.toml and project .codex/config.toml for MCP.
  • Cursor docs/search result and shadcn docs: project .cursor/mcp.json; global also exists but project-level is supported.
  • Firebender docs: project firebender.json, global ~/.firebender/firebender.json.
  • Zed docs: MCP servers are configured in settings; Zed supports project .zed/settings.json.
  • OpenCode docs: project opencode.json in project root and MCP under mcp.
  • Antigravity docs: workspace-local .agents/mcp_config.json, global ~/.gemini/config/mcp_config.json.

Verification

  • ./gradlew spotlessCheck :cli:test :cli:integrationTest

@alexstyl alexstyl changed the title Install project MCP configs at the Gradle root Install project MCP configs and generated gitignore Jul 5, 2026
@alexstyl alexstyl merged commit 2ffe809 into main Jul 5, 2026
1 check passed
@alexstyl alexstyl deleted the mcp-project-root-installs branch July 5, 2026 06:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant