Skip to content

docs(mcp): use the Petstore 3.1 spec URL in the MCP quickstart - #7972

Merged
davidrojas-pm merged 1 commit into
mainfrom
davidrojas/FERN-104-relative-servers-url
Nov 24, 2026
Merged

davidrojas-pm merged 1 commit into
mainfrom
davidrojas/FERN-104-relative-servers-url

Conversation

@davidrojas-pm

Copy link
Copy Markdown
Contributor

Description

Jira ticket: FERN-104

Draft. Merge only after fern-api/fern#18907 ships in a CLI release. Before merging, replace the 5.x.0 placeholder (3 places) with that release's version.

The MCP quickstart now runs fern init --openapi https://petstore31.swagger.io/api/v31/openapi.json directly. It no longer downloads the Petstore v3 spec and overrides api.baseUrl, because the CLI now resolves the spec's relative servers entry (/api/v31) against the spec URL.

Changes Made

  • The "Create a project" step uses the spec URL. The sdk-config.yml example uses the url: source that fern init writes and drops api.baseUrl.
  • The paragraph that explained the relative path now says the CLI resolves it for URL sources, and that a local file still needs api.baseUrl.
  • The troubleshooting row now covers the new CLI message (has a relative servers URL) and CLIs older than the fix.
  • The "Run locally" section drops the sentence saying that a zip build accepts a relative path. The CLI now rejects a relative path in a local file.

Testing

Generated with Claude Code

…104)

The CLI now resolves a relative servers entry against the spec URL
(fern-api/fern#18907), so the quickstart can run fern init on the
original spec URL with no api.baseUrl override.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

@davidrojas-pm
davidrojas-pm marked this pull request as ready for review November 24, 2026 21:03
@davidrojas-pm
davidrojas-pm merged commit 2e49489 into main Nov 24, 2026
6 checks passed
@davidrojas-pm
davidrojas-pm deleted the davidrojas/FERN-104-relative-servers-url branch November 24, 2026 21:19
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.

2 participants