Home / Companies / Fern / Blog / June 2026

June 2026 Summaries

7 posts from Fern

Filter
Month: Year:
Post Summaries Back to Blog
Adopting an API-first approach involves designing an API specification, typically using OpenAPI or AsyncAPI, before writing any implementation code, thus treating the API as a standalone product with its own roadmap and versioning strategies. This approach contrasts with the traditional code-first method, where backend logic is developed first and the API spec is generated afterward, often leading to brittle integrations when external developers rely on a stable contract. By defining the API contract upfront, teams can work in parallel, using the contract as the single source of truth to drive server stubs, client SDKs, tests, and documentation, ultimately reducing integration failures and technical debt. While API-first development offers benefits like faster iteration cycles and better developer experience, it requires upfront investment in design expertise and tooling, which can be challenging for smaller teams. Tools like Fern facilitate this methodology by automating the generation of SDKs and documentation from the API spec, ensuring consistency and alignment throughout the development process.
Jun 19, 2026 1,944 words in the original blog post.
In the exploration of AI agents accessing APIs, the choice between process-based command-line interfaces (CLI) and protocol-based Model Context Protocol (MCP) is crucial, as each serves distinct operational needs. CLIs, which are process-based, execute tasks by spawning subprocesses without maintaining persistent connections or schemas, making them suitable for isolated, single-step tasks. On the other hand, MCP, introduced by Anthropic in 2024, uses a JSON-RPC protocol to maintain stateful sessions with schema validation, making it ideal for complex, multi-step workflows requiring shared context and rigorous security measures. While CLIs offer immediate usability due to AI models' pre-existing familiarity with them and incur fewer token costs for single calls, they lack the session persistence and detailed audit trails that MCP provides, which are crucial for tasks involving many sequential calls. The decision between CLI and MCP should consider factors like task complexity, the need for session persistence, authentication requirements, and the AI model's familiarity with the interface, as well as the organization's infrastructure and compliance needs. Fern enables teams to generate both CLIs and MCP servers from API specifications, allowing flexibility in serving AI agents without rebuilding interfaces.
Jun 19, 2026 2,449 words in the original blog post.
The Model Context Protocol (MCP) is an open standard introduced by Anthropic to streamline API integration by allowing AI agents to dynamically interact with various data sources and tools without predefined instructions, contrasting with Command Line Interface (CLI) systems that rely on developer-scripted, deterministic operations. MCP enables stateful, context-rich sessions where AI agents decide at runtime which actions to execute, making it suitable for workflows that require flexibility and multi-step reasoning across databases, file systems, and external APIs. It addresses the complexities of tool invocation by exposing resources, tools, and prompts through a unified interface, thus minimizing the need for explicit integration logic. Conversely, CLIs are ideal for stable, audit-friendly, and latency-sensitive operations, where human developers define and execute fixed logic. MCP's conversational interface, however, introduces potential security risks such as prompt injection and over-permissioning, which necessitate robust authentication and monitoring strategies. Fern supports both integration methods by generating SDKs and hosting MCP servers from a single API definition, enabling seamless transitions between human-led and AI-led interactions.
Jun 15, 2026 2,077 words in the original blog post.
A developer considering which interface to implement for an API—SDK, CLI, or MCP server—must evaluate the needs of the user and the operational context, as these interfaces serve different purposes despite using the same backend. SDKs cater to application developers by providing typed methods for integration into production code, CLIs target operators and developers for scripting and automation tasks, and MCP servers are designed for AI agents that require tool invocation at runtime without human intervention. Each interface imposes different costs and maintenance overheads, with MCPs being notably more expensive in token consumption compared to CLIs. The choice between these interfaces often depends on the security model, the stability of the API surface, and the specific requirements of the consumer, such as authentication and compliance needs. Fern offers a solution by generating SDKs, CLIs, and MCP servers from a single API specification, ensuring synchronization across these interfaces as the API definition evolves.
Jun 15, 2026 2,277 words in the original blog post.
Generating command-line interfaces (CLIs) from OpenAPI specifications offers a streamlined approach to maintaining up-to-date tools that align with evolving APIs, avoiding the manual labor and technical debt associated with hand-written CLIs. By using the API spec as a single source of truth, tools like Fern automatically produce typed, idiomatic CLIs that include built-in argument parsing, authentication handling, and error formatting, without the need for post-generation cleanup. These generated CLIs map directly to API operations, facilitating seamless integration into CI/CD pipelines and AI-driven workflows by providing a structured, predictable interface. Automation tools like Fern regenerate the CLI following any API spec updates, ensuring synchronization and reducing deployment time, while also providing features such as dry-run modes, runtime introspection, and automatic distribution across platforms. This approach not only enhances developer efficiency but also ensures that the CLI reflects the latest API changes, thereby minimizing error risks and enhancing usability in both human and machine-driven interactions.
Jun 06, 2026 1,752 words in the original blog post.
The text discusses the challenges of maintaining separate workflows for API clients and documentation, leading to issues like specification drift and increased maintenance overhead. It introduces Fern, a tool that unifies SDK and documentation generation from a single API specification, ensuring that code samples and client libraries remain synchronized. Fern integrates with CI/CD pipelines, allowing automated updates to SDKs and documentation whenever the API spec changes, thereby eliminating manual reconciliation tasks. It supports multiple API specifications, including OpenAPI, AsyncAPI, OpenRPC, and gRPC/protobuf, and produces type-safe SDKs in various programming languages as well as accurate, interactive documentation. Fern also facilitates the generation of a functional CLI directly from the API spec, which serves both human developers and AI agents while maintaining synchronization with the API's evolution. By treating documentation as code and leveraging open-source transparency, Fern offers a reliable solution to prevent spec drift, streamline API delivery workflows, and enhance trust and flexibility for teams using it.
Jun 06, 2026 2,144 words in the original blog post.
Over a five-week period, Mathieu Legault and Kapil Gowru, two product designers, developed and launched a new site for Fern with a focus on integrating AI into the design process. They utilized AI tools for the middle stages of design, while human input was essential at the beginning and end for taste and polish. The project incurred a Claude Code spend of approximately $4,225 between the two designers. A significant shift in their approach was moving from using Webflow to a code-native stack with Next.js, Tailwind, and MDX, allowing for more bespoke, interactive demos. This transition not only reduced hosting costs but also streamlined the workflow, enabling all team members to contribute to the marketing site. The project was driven by key customer needs, including unified documentation and SDK generation, smooth migration from existing platforms, and enterprise-grade security and compliance. The newly designed site emphasizes a connected developer experience, showcasing Fern's capabilities through interactive product demos and a unique brand picker feature. AI played a crucial role in design iteration and marketing, with specific skills and guidelines set up in repos to ensure consistency and scalability in content creation.
Jun 02, 2026 2,949 words in the original blog post.