Repository navigation
docs(mcp): use the Petstore 3.1 spec URL in the MCP quickstart - #7972
Merged
Merged
Conversation
…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>
2 tasks done
Contributor
|
🌿 Preview your docs: https://fern-preview-davidrojas-fern-104-relative-servers-url.docs.buildwithfern.com/learn Here are the markdown pages you've updated: |
davidrojas-pm
marked this pull request as ready for review
November 24, 2026 21:03
davidrojas-pm
requested review from
jkonrath-postman and
nerminamiller-postman
as code owners
November 24, 2026 21:03
tdclarin854
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Jira ticket: FERN-104
Draft. Merge only after fern-api/fern#18907 ships in a CLI release. Before merging, replace the
5.x.0placeholder (3 places) with that release's version.The MCP quickstart now runs
fern init --openapi https://petstore31.swagger.io/api/v31/openapi.jsondirectly. It no longer downloads the Petstore v3 spec and overridesapi.baseUrl, because the CLI now resolves the spec's relativeserversentry (/api/v31) against the spec URL.Changes Made
sdk-config.ymlexample uses theurl:source thatfern initwrites and dropsapi.baseUrl.api.baseUrl.has a relative servers URL) and CLIs older than the fix.zipbuild accepts a relative path. The CLI now rejects a relative path in a local file.Testing
GET /api/v31/pet/10returnsRabbit 1).getPetByIdtakes the sameapi_keyand OAuth options as v3.Generated with Claude Code