

Streamlined SDK Testing & AI-Ready APIs with MCP Server Generation
New features to the Speakeasy Platform - March 6, 2025
Weβve made SDK Testing more powerful with real server validation, GitHub integration, and multi-operation workflows. Plus, every TypeScript SDK now includes an MCP server, making your API instantly accessible to AI-powered tools like Claude, Cursor, Zed and many other AI applications*.
Letβs dive into whatβs new!
π§ͺ More Powerful SDK Testing
Weβve enhanced our SDK Testing capabilities to help API providers maintain reliable client libraries with less effort. Our revamped SDK Testing now provides comprehensive validation for SDKs in Go, TypeScript, and Python.
β¨ Key Highlights
- Auto-generated tests from OpenAPI specs with rich field coverage based on your schema definitions
- Zero-config mock servers that simulate your API behavior without connecting to backend systems
- Real server testing for validating against actual API endpoints
- Multi-operation test workflows using the Arazzo specification for complex scenarios
- GitHub Actions integration for continuous validation on every PR
π Read the Full SDK Testing Release Post (opens in a new tab) for in-depth details on implementation, examples, and advanced usage.
β‘ Getting Started in Three Simple Steps
1οΈβ£ Generate tests with speakeasy configure tests
2οΈβ£ Run tests locally or in CI/CD with speakeasy test
3οΈβ£ View reports in the Speakeasy dashboard for insights.
π Read the full SDK Testing release post (opens in a new tab) for in-depth details on implementation, examples, and advanced usage.
π€ MCP Server Generation: AI-Ready APIs, No Extra Work
Two weeks ago, we launched MCP Server Generation, and the response has been incredible! Weβve seen strong adoption across the community, with great feedback from developers who have integrated MCP servers into their APIs.
What is MCP?
Model Context Protocol (MCP) is an open standard from Anthropic that enables secure, two-way connections between APIs and AI-powered tools like Claude, Cursor, and Zed.
Think of MCP as a Rosetta Stone for your APIsβallowing AI agents to instantly understand and interact with your services without custom integrations or deciphering complex documentation.
π Whatβs New?
Every TypeScript SDK generated by Speakeasy now includes an MCP server that:
- Acts as a thin wrapper around your existing TypeScript SDK
- Generates a tool for each SDK method so AI agents can discover and use them
- Uses your SDKβs Zod schemas to give agents an accurate picture of request formats
- Supports customization via OpenAPI extensions to control tool names and descriptions
- Includes scoping capabilities to tag and control which operations are available to AI agents
The generated MCP server structure looks like this:
βββ toolsβ βββ accountDelete.tsβ βββ accountExportData.tsβ βββ accountsGetInviteCodes.tsβ βββ actorGetSuggestions.tsβ βββ ...βββ build.mtsβββ mcp-server.tsβββ resources.tsβββ server.tsβββ shared.tsβββ tools.ts
Watch Claude using Dubβs MCP server to create a shortlink in real-time:
β‘ Getting Started
With MCP servers now included in every TypeScript SDK:
-
AI agents can instantly interact with your API
-
No extra setup is needed-just merge the PR and run the server
-
Launch with scopes to control which operations are available:
npx your-sdk mcp start --scope read
π’ Customers Already Using MCP Servers
Shoutout to Dub (opens in a new tab), Polar (opens in a new tab), Hathora (opens in a new tab), Novu (opens in a new tab), Acuvity (opens in a new tab) for being among the first to generate their MCP servers! π
π Learn More About MCP Server Generation (opens in a new tab)
π Read the Full Release Post (opens in a new tab)
π οΈ New Features and Bug Fixes π
NOTE
Β Based on the most recent CLI version: Speakeasy v1.510.0 (opens in a new tab)
Platform
π Fix: Prevented compilation errors with naming in various targets due to special characters in operationId.
π Feat: Improved inline schema naming to refine name resolution and reduce ambiguities.
π Feat: Added βenv CLI flag for passing environment variables to MCP servers.
π Feat: Improved security and global authentication handling in MCP servers.
Python
π Feat: Implemented TYPE_CHECKING safeguards to properly handle circular dependencies in Pydantic models.
Ruby
π Fix: Removed extraneous config_server and config_server_url methods in SDK class.
π Feat: Added global security flattening to streamline authentication via constructor parameters.
π Feat: Refactored Ruby serializer into a standalone module for better maintainability.
TypeScript
π Feat: Switched to jsonpath-rfc9535 for RFC9535-compliant JSONPath handling, improving compatibility with Next.js and SWC.
π Feat: Introduced Model Context Protocol (MCP) servers for hosting SDK functions as callable tools.
Terraform
π Feat: Added support for map of array types (e.g., map of list of strings).
π Feat: Enabled proper rendering of array of array types (e.g., list of list of floats).
π Feat: Added support for array of empty objects to improve Terraform schema handling.
π Feat: Enabled support for maps of double, float, int32, and number types.
π Fix: Properly rendered union type examples with stable single selection.
π Fix: Prevented OAuth authentication errors when other API security options are available.
π Fix: Prevented package name shadowing for required dependencies.
π Fix: Correctly rendered examples for maps of booleans and integers.
π Fix: Added support for nullable maps in Terraform SDKs.