Skip to content

feat(cli): rename fern mcp install to fern agent install - #17601

Open
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1788209320-fern-agent-install
Open

feat(cli): rename fern mcp install to fern agent install#17601
devin-ai-integration[bot] wants to merge 2 commits into
mainfrom
devin/1788209320-fern-agent-install

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Description

Frees the fern mcp * namespace for the customer's own generated MCP server (Mathieu's ask), by moving the Fern-agent MCP installer to fern agent install.

fern mcp install shipped in CLI 5.91.0, so it stays wired to the same handler, hidden from help (describe: false, same treatment as write-overrides), and logs The 'mcp install' command is deprecated. Use 'fern agent install' instead. before running.

Changes Made

  • addAgentCommand registers fern agent install; addMcpCommand keeps fern mcp install as a hidden deprecated alias. Options and handler are shared via addInstallAgentOptions / runInstallAgent, so the two paths cannot drift.
  • PostHog events distinguish the two: fern agent install vs the existing fern mcp install.
  • src/commands/mcp/src/commands/agent/ (pure move), and the two user-facing hints inside installMcpServer.ts now say fern agent install.
  • CLI changelog entry (feat).

Testing

  • Unit tests added/updated — existing mcpConfig tests moved with the directory; pnpm turbo run test --filter @fern-api/cli → 638 passed.
  • Manual testing completed — pnpm fern-dev:build, run from outside a Fern project:
$ fern-dev --help | grep agent
  fern-dev agent                        Manage the Fern agent

$ fern-dev agent install --help
Connect your coding agent to the Fern agent's MCP server using your Fern login
Options: --client [claude|cursor|codex]  --organization, --org

$ fern-dev mcp install --client claude --org fern
The 'mcp install' command is deprecated. Use 'fern agent install' instead.
The MCP server authenticates a user, so a FERN_TOKEN cannot be used. ...

fern mcp and fern mcp install no longer appear in --help.

Link to Devin session: https://app.devin.ai/sessions/50a5d4aae6764bf78406b2752ab933f3
Open in Devin Desktop: https://app.devin.ai/desktop/session/50a5d4aae6764bf78406b2752ab933f3?variant=devin


Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@nitpickybot nitpickybot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI Review Summary

Straightforward rename with a hidden deprecated alias; logic is shared so the two paths can't drift. Only minor nits: the deprecated fern mcp group's demandCommand message points at the new namespace (confusing if someone types bare fern mcp), and runInstallAgent's argv type is hand-rolled rather than inferred from addInstallAgentOptions.

  • 🔵 2 suggestion(s)

To request another review, comment /ai-review on this pull request.

Comment thread packages/cli/cli/src/cli.ts Outdated
Comment thread packages/cli/cli/src/cli.ts Outdated

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

…cast

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

1 participant