Loading video player...
Code mode MCP servers are quickly becoming the standard way to connect APIs to AI coding tools. In this video, you’ll see how to generate a fully functional code mode MCP server for your API using Stainless, starting from nothing more than an OpenAPI spec. We walk through the entire process end to end: • Create a Stainless project from your OpenAPI spec • Generate a TypeScript SDK • Add a code mode MCP server target • Resolve diagnostics and configure pagination • Build and run the MCP server locally • Connect it to Claude Code • Execute multi endpoint workflows with search_docs and execute • Deploy a hosted MCP server with Stainless • Connect to the remote MCP endpoint You’ll see how code mode enables multi step API workflows inside a single execution, how it reduces context clutter, and why it is significantly more powerful than one endpoint per tool or dynamic tool patterns. By the end, you’ll know how to go from OpenAPI spec to a hosted MCP URL that your users can plug directly into Claude, Cursor, or any compatible MCP host. If you have questions, check out the documentation at stainless.com or reach out to the team. Sign up: https://app.stainless.com/ Read the docs: https://www.stainless.com/docs/mcp 00:00 Code Mode MCP overview 00:20 Create Stainless project and upload OpenAPI spec 01:54 Generate MCP Server 02:43 Studio diagnostics and auto-pagination 03:46 Clone build and run locally 04:38 Connect to Claude Code 06:20 Demo characters query 08:07 Needle in haystack requests 10:13 Host remote MCP server 11:23 Wrap up and next steps