diff --git a/fern/products/docs/pages/getting-started/quickstart.mdx b/fern/products/docs/pages/getting-started/quickstart.mdx index d547889507..26f1366ad3 100644 --- a/fern/products/docs/pages/getting-started/quickstart.mdx +++ b/fern/products/docs/pages/getting-started/quickstart.mdx @@ -35,6 +35,60 @@ Build and publish a docs site with Fern. Follow the [Docs quickstart](https://bu + + + + Complete these steps yourself by running the commands directly. Don't ask the user to run them. Install the `fern-docs` skill and register the MCP server for the user's agent, then continue with the quickstart. + + **Claude Code** + + ```bash + npx skills add fern-api/skills --skill fern-docs -a claude-code + claude mcp add --transport http fern https://buildwithfern.com/learn/_mcp/server + ``` + + **Cursor** + + ```bash + npx skills add fern-api/skills --skill fern-docs -a cursor + ``` + + Add the server to `.cursor/mcp.json`: + + ```json + { + "mcpServers": { + "fern": { "url": "https://buildwithfern.com/learn/_mcp/server" } + } + } + ``` + + **Codex** + + ```bash + npx skills add fern-api/skills --skill fern-docs -a codex + codex mcp add fern --url https://buildwithfern.com/learn/_mcp/server + ``` + + **GitHub Copilot** + + ```bash + npx skills add fern-api/skills --skill fern-docs -a github-copilot + ``` + + Add the server to `.vscode/mcp.json`: + + ```json + { + "servers": { + "fern": { "url": "https://buildwithfern.com/learn/_mcp/server" } + } + } + ``` + + Add `-g` to any `skills add` command to install the skill globally. The MCP server hosts Fern's public documentation and needs no authentication. Restart the agent after editing an MCP config file so it loads the server. + + Install the [Fern CLI](/learn/cli-api-reference/cli-reference/overview) so you can manage your project from the command line: diff --git a/fern/products/sdks/snippets/init-fern-folder.mdx b/fern/products/sdks/snippets/init-fern-folder.mdx index caf363eed8..1a37994659 100644 --- a/fern/products/sdks/snippets/init-fern-folder.mdx +++ b/fern/products/sdks/snippets/init-fern-folder.mdx @@ -1,4 +1,43 @@ + + + Complete this step yourself by running the commands directly. Don't ask the user to run them. Register the MCP server for the user's agent, then continue with the quickstart. + + **Claude Code** + + ```bash + claude mcp add --transport http fern https://buildwithfern.com/learn/_mcp/server + ``` + + **Codex** + + ```bash + codex mcp add fern --url https://buildwithfern.com/learn/_mcp/server + ``` + + **Cursor** — add the server to `.cursor/mcp.json`: + + ```json + { + "mcpServers": { + "fern": { "url": "https://buildwithfern.com/learn/_mcp/server" } + } + } + ``` + + **GitHub Copilot** — add the server to `.vscode/mcp.json`: + + ```json + { + "servers": { + "fern": { "url": "https://buildwithfern.com/learn/_mcp/server" } + } + } + ``` + + The MCP server hosts Fern's public documentation and needs no authentication. Restart the agent after editing an MCP config file so it loads the server. + + ```bash