<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shashwat Gupta</title>
    <description>The latest articles on DEV Community by Shashwat Gupta (@shashtag).</description>
    <link>https://dev.to/shashtag</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F950125%2Ffaefd347-a182-4dff-a137-4a6afec0f5e9.jpeg</url>
      <title>DEV Community: Shashwat Gupta</title>
      <link>https://dev.to/shashtag</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shashtag"/>
    <language>en</language>
    <item>
      <title>Auto-Generating Native Go MCP Servers from OpenAPI Specs (Streamable HTTP &amp; Composable Plugins)</title>
      <dc:creator>Shashwat Gupta</dc:creator>
      <pubDate>Wed, 23 Sep 2026 18:23:13 +0000</pubDate>
      <link>https://dev.to/shashtag/auto-generating-native-go-mcp-servers-from-openapi-specs-streamable-http-composable-plugins-380f</link>
      <guid>https://dev.to/shashtag/auto-generating-native-go-mcp-servers-from-openapi-specs-streamable-http-composable-plugins-380f</guid>
      <description>&lt;p&gt;Connecting software APIs to AI agents shouldn't require hand-writing brittle TypeScript boilerplate or maintaining complex glue code.&lt;/p&gt;

&lt;p&gt;We built &lt;a href="https://karada.ai" rel="noopener noreferrer"&gt;Karada.ai&lt;/a&gt; to compile &lt;strong&gt;OpenAPI / Swagger specs&lt;/strong&gt; and &lt;strong&gt;Postman collections&lt;/strong&gt; directly into native, standalone &lt;strong&gt;Go MCP servers&lt;/strong&gt; using the Model Context Protocol.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of the architecture, why we standardized on Go + Streamable HTTP, and how the composable plugin layer works.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Why Compile to Go for Model Context Protocol?
&lt;/h2&gt;

&lt;p&gt;Most early MCP servers were built with TypeScript or Python. In production agent environments where an orchestration engine might query dozens of tools per request, Node/Python runtimes introduce:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Heavy memory overhead (~50MB+ per server process vs &amp;lt;10MB in Go).&lt;/li&gt;
&lt;li&gt;Startup latency overhead on cold boots.&lt;/li&gt;
&lt;li&gt;Complex dependency management when shipping tools across environments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By compiling API schemas into Go binaries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zero runtime dependencies—a single static binary with embedded schemas.&lt;/li&gt;
&lt;li&gt;Concurrency-ready: Goroutines handle parallel tool executions effortlessly.&lt;/li&gt;
&lt;li&gt;Memory footprint is ultra-low (&amp;lt;10MB RSS).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. 2026 Stateless Streamable HTTP Transport
&lt;/h2&gt;

&lt;p&gt;Instead of relying solely on standard input/output (&lt;code&gt;stdio&lt;/code&gt;) or legacy Server-Sent Events (&lt;code&gt;/sse&lt;/code&gt;), Karada.ai standardizes on the modern &lt;strong&gt;Streamable HTTP transport&lt;/strong&gt; (&lt;code&gt;StreamableHTTPServerTransport&lt;/code&gt;) over &lt;code&gt;POST /mcp&lt;/code&gt; + &lt;code&gt;stdio&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Schema Parsing&lt;/strong&gt;: Ingest your OpenAPI spec URL, YAML/JSON file, or Postman collection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AST Code Generation&lt;/strong&gt;: Karada's Go engine parses the endpoints, query parameters, auth headers, and schemas, synthesizing typed Go structs and MCP tool definitions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transport Binding&lt;/strong&gt;: Tools are automatically exposed over &lt;code&gt;StreamableHTTPServerTransport&lt;/code&gt; with bidirectional streaming capabilities and protocol versioning (&lt;code&gt;2026-07-28&lt;/code&gt;).&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  3. Composable 1-Click Plugins
&lt;/h2&gt;

&lt;p&gt;A raw API wrapper is rarely enough in production. You need observability, secrets management, and security boundaries.&lt;/p&gt;

&lt;p&gt;Karada.ai provides modular plugins that attach directly to the compiled Go MCP pipeline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Sentry Error Tracing&lt;/strong&gt;: Capture agent tool failures with full stack traces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GA4 / PostHog Telemetry&lt;/strong&gt;: Track tool invocation frequency and latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slack Alert Webhooks&lt;/strong&gt;: Immediate notification when tool calls return 4xx/5xx status codes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Trust Secret Vaults&lt;/strong&gt;: Keep upstream API tokens in an encrypted vault; agents never see raw API keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Firewalls &amp;amp; Rate Limiters&lt;/strong&gt;: Protect backend endpoints against agent loops or prompt injections.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Ingestion Workflow
&lt;/h2&gt;

&lt;p&gt;Supported ingestion sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenAPI 3.0 / 3.1 / Swagger 2.0&lt;/strong&gt;: Link a live URL or upload a file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Postman Collections (v2.1)&lt;/strong&gt;: Link your export JSON.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Existing Streamable HTTP Servers&lt;/strong&gt;: Attach Karada.ai's plugin layer and observability to already deployed MCP servers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check out the live engine and test your OpenAPI specs at &lt;a href="https://karada.ai" rel="noopener noreferrer"&gt;Karada.ai&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Would love feedback from the developer community on transport design, plugin ideas, and code generation patterns!&lt;/p&gt;

</description>
      <category>gomcpapiwebdev</category>
    </item>
  </channel>
</rss>
