Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fern/products/mcp-generator/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Generate a hosted MCP server from an OpenAPI specification with Fern. Follow the

## Prerequisites

- The [Fern CLI](https://www.npmjs.com/package/fern-api), version 5.x.0 or later.
- The [Fern CLI](https://www.npmjs.com/package/fern-api), version 5.230.1 or later.
- A Fern account, and access to the [Fern dashboard](https://dashboard.buildwithfern.com/). Deploying requires `fern login` on your machine, or a `FERN_TOKEN` environment variable in CI.
- An OpenAPI spec. This guide uses the Swagger Petstore sample.
- A network that allows `*.fernmcp.dev`. If your company blocks it, ask your IT team to add `*.fernmcp.dev` to the allowlist. Agents on that network can't reach the server until they do.

```bash
npm install -g fern-api
fern --version # 5.x.0 or later
fern --version # 5.230.1 or later
fern login
```

Expand Down Expand Up @@ -137,7 +137,7 @@ The zip also holds the generated TypeScript project in `project/`. Its `README.m

| You see | Cause and fix |
|---------|---------------|
| `has a relative servers URL`, `[metadata.baseUrl] Invalid url`, or `Invalid URL` from every tool on a local server | The `servers` entry in a local spec file is a relative path such as `/api/v1`, or the CLI is older than 5.x.0. Set `api.baseUrl` in `sdk-config.yml` to the full address, for example `https://api.example.com/v1`, or use the full address in `servers`. |
| `has a relative servers URL`, `[metadata.baseUrl] Invalid url`, or `Invalid URL` from every tool on a local server | The `servers` entry in a local spec file is a relative path such as `/api/v1`, or the CLI is older than 5.230.1. Set `api.baseUrl` in `sdk-config.yml` to the full address, for example `https://api.example.com/v1`, or use the full address in `servers`. |
| `Deploying to Fern's hosted MCP platform requires authentication` | The CLI has no Fern credentials. Run `fern login`, or set `FERN_TOKEN` in CI. |
| `Tool name "..." is ... characters` or `contains unsupported characters` | MCP tool names take 1 to 64 letters, digits, `_`, or `-`. [Set `x-fern-mcp-name`](/learn/mcp-generator/get-started/configure#name-and-describe-tools) on the operation, in your spec or an [overlay](/learn/api-definitions/openapi/overlays). The error message includes an overlay entry to copy. |
| `MCP tool filter entries matched no tools` | An entry in `tools` or `toolsets` names no operation. The message lists the available tool names. |
Expand Down
Loading