Skip to content

W-23057147: Skills and MCP support for Gemini, Antigravity, and Copilot CLI#575

Open
amit-kumar8-sf wants to merge 2 commits into
mainfrom
feature-W-23057147
Open

W-23057147: Skills and MCP support for Gemini, Antigravity, and Copilot CLI#575
amit-kumar8-sf wants to merge 2 commits into
mainfrom
feature-W-23057147

Conversation

@amit-kumar8-sf

@amit-kumar8-sf amit-kumar8-sf commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Extend agent-skill installation and the b2c-dx-mcp MCP server to Gemini and Google Antigravity, and round out the VS Code onboarding walkthrough so it can set up skills + MCP for every supported AI tool (including GitHub Copilot CLI).

SDK / CLI

  • Add gemini-cli and antigravity to the IdeType registry (IDE_CONFIGS, ALL_IDE_TYPES) with their skill install paths:
    gemini-cli project .gemini/skills global ~/.gemini/skills
    antigravity project .agents/skills global ~/.gemini/config/skills
  • b2c setup skills now accepts --ide gemini-cli and --ide antigravity; the flag
    options derive from ALL_IDE_TYPES so the list stays in sync automatically.

Gemini CLI extension

  • gemini-extension.json + GEMINI.md bundle the b2c-dx-mcp MCP server and B2C project context for gemini extensions install <repo>.
  • scripts/sync-plugin-versions.mjs pins the extension to the current @salesforce/b2c-dx-mcp version.

VS Code walkthrough — "Set Up Agent Skills & MCP"

  • Add Gemini CLI and Antigravity targets/icons.
  • Add a dedicated GitHub Copilot CLI card that installs skills via the marketplace-plugin command (copilot plugin install), since copilot-cli is not a valid b2c setup skills --ide value. Its "Reinstall" uninstalls the plugins first, then reinstalls (uninstall -> install), and marketplace add is separated with ; (not &&) so an "already registered" marketplace does not abort the installs.
  • Detect Copilot CLI skills via ~/.copilot/installed-plugins// (skillsMarkerDir), where copilot plugin install actually drops plugins, so the card correctly flips to "Skills installed".
  • Detect the VS Code (Copilot Chat) card via the VS Code user-data dir instead of ~/.copilot, so it no longer collides with the Copilot CLI card.
  • Add per-tool MCP-server detection (detectMcpStatus): parse each IDE's documented MCP config and match a real b2c-dx-mcp entry inside an mcpServers/servers container (a stray mention is not a false positive). Tools with no documented MCP path show "MCP · manual" linking the setup guide. The MCP action reads "Re-configure MCP" once a server is registered.
  • Replace the single ambiguous "N skills installed" count with four labelled stats (tools supported · detected here · with skills · with MCP) and drop the redundant "Counts are per AI tool" legend; strengthen the ghost-button border.

VS Code walkthrough — "Install the B2C CLI"

  • Render "Update CLI" as a disabled "Up to date" button when the installed CLI is confirmed current (b2cCliOutdated === false); keep it enabled + primary when a newer version exists, and enabled when the latest version can't be resolved (offline) so an unverified update isn't blocked.
  • Surface the detected b2c-cli version in the green "Quick actions" chip (e.g. "b2c-cli v1.4.4") with a tooltip.
  • Extract the action logic into a pure, exported buildInstallCliActions().

Docs

  • Cover Gemini CLI, Gemini Code Assist, and Antigravity (IDE/CLI/SDK) in the agent-skills guide, CLI setup reference, and MCP installation guide, with explicit not-supported notes for the consumer Gemini and Microsoft Copilot desktop apps.

Chore

  • Bump tsx catalog floor to ^4.22.0 to fix the Node >= 22 DEP0205 warning at its source (tsx switched to module.registerHooks); dev-only, dedupes esbuild.

Tests

  • SDK registry/path coverage for the new IDEs; MCP schema-compat regression guard ensuring every array param emits an items definition (GitHub Copilot MCP requirement); VS-extension coverage for the Copilot CLI card invariant, the VS Code detection path change, the MCP detection matrix, the install-cli Update/version states, and the rendered summary counts + badges.

Summary

Brief description of what this PR does.

Testing

How was this tested?

Dependencies

  • No net-new third-party dependencies were added
  • If net-new third-party dependencies were added, rationale/discussion is included and 3pl-approved is set by a maintainer

  • Tests pass (pnpm test)
  • Code is formatted (pnpm run format)

…ot CLI

Extend agent-skill installation and the b2c-dx-mcp MCP server to Gemini and
Google Antigravity, and round out the VS Code onboarding walkthrough so it can
set up skills + MCP for every supported AI tool (including GitHub Copilot CLI).

SDK / CLI
- Add gemini-cli and antigravity to the IdeType registry (IDE_CONFIGS,
  ALL_IDE_TYPES) with their skill install paths:
    gemini-cli   project .gemini/skills   global ~/.gemini/skills
    antigravity  project .agents/skills   global ~/.gemini/config/skills
- b2c setup skills now accepts --ide gemini-cli and --ide antigravity; the flag
  options derive from ALL_IDE_TYPES so the list stays in sync automatically.

Gemini CLI extension
- gemini-extension.json + GEMINI.md bundle the b2c-dx-mcp MCP server and B2C
  project context for `gemini extensions install <repo>`.
- scripts/sync-plugin-versions.mjs pins the extension to the current
  @salesforce/b2c-dx-mcp version.

VS Code walkthrough — "Set Up Agent Skills & MCP"
- Add Gemini CLI and Antigravity targets/icons.
- Add a dedicated GitHub Copilot CLI card that installs skills via the
  marketplace-plugin command (`copilot plugin install`), since copilot-cli is
  not a valid `b2c setup skills --ide` value. Its "Reinstall" uninstalls the
  plugins first, then reinstalls (uninstall -> install), and `marketplace add`
  is separated with `;` (not `&&`) so an "already registered" marketplace does
  not abort the installs.
- Detect Copilot CLI skills via ~/.copilot/installed-plugins/<marketplace>/
  (skillsMarkerDir), where `copilot plugin install` actually drops plugins, so
  the card correctly flips to "Skills installed".
- Detect the VS Code (Copilot Chat) card via the VS Code user-data dir instead
  of ~/.copilot, so it no longer collides with the Copilot CLI card.
- Add per-tool MCP-server detection (detectMcpStatus): parse each IDE's
  documented MCP config and match a real b2c-dx-mcp entry inside an
  mcpServers/servers container (a stray mention is not a false positive).
  Tools with no documented MCP path show "MCP · manual" linking the setup
  guide. The MCP action reads "Re-configure MCP" once a server is registered.
- Replace the single ambiguous "N skills installed" count with four labelled
  stats (tools supported · detected here · with skills · with MCP) and drop the
  redundant "Counts are per AI tool" legend; strengthen the ghost-button border.

VS Code walkthrough — "Install the B2C CLI"
- Render "Update CLI" as a disabled "Up to date" button when the installed CLI
  is confirmed current (b2cCliOutdated === false); keep it enabled + primary
  when a newer version exists, and enabled when the latest version can't be
  resolved (offline) so an unverified update isn't blocked.
- Surface the detected b2c-cli version in the green "Quick actions" chip
  (e.g. "b2c-cli v1.4.4") with a tooltip.
- Extract the action logic into a pure, exported buildInstallCliActions().

Docs
- Cover Gemini CLI, Gemini Code Assist, and Antigravity (IDE/CLI/SDK) in the
  agent-skills guide, CLI setup reference, and MCP installation guide, with
  explicit not-supported notes for the consumer Gemini and Microsoft Copilot
  desktop apps.

Chore
- Bump tsx catalog floor to ^4.22.0 to fix the Node >= 22 DEP0205 warning at
  its source (tsx switched to module.registerHooks); dev-only, dedupes esbuild.

Tests
- SDK registry/path coverage for the new IDEs; MCP schema-compat regression
  guard ensuring every array param emits an items definition (GitHub Copilot
  MCP requirement); VS-extension coverage for the Copilot CLI card invariant,
  the VS Code detection path change, the MCP detection matrix, the install-cli
  Update/version states, and the rendered summary counts + badges.

Scope note: Antigravity support was folded into this story alongside Gemini and
GitHub Copilot.
@amit-kumar8-sf amit-kumar8-sf marked this pull request as ready for review July 15, 2026 18:53
@amit-kumar8-sf amit-kumar8-sf deployed to b2c-docs-preview July 15, 2026 18:53 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

📘 Docs preview

Your documentation changes are published at:

https://d3uhw92m2zac57.cloudfront.net/pr-575/

Commit 67fb858 · ✅ Published

This preview updates on every push and is removed when the PR is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant