<?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: kevin2003050666-coder</title>
    <description>The latest articles on DEV Community by kevin2003050666-coder (@kevin2003050666coder).</description>
    <link>https://dev.to/kevin2003050666coder</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%2F4104142%2Fed2ebdec-252a-4c1b-a38f-17b1b305e7bb.png</url>
      <title>DEV Community: kevin2003050666-coder</title>
      <link>https://dev.to/kevin2003050666coder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevin2003050666coder"/>
    <language>en</language>
    <item>
      <title>What a seller-side HTTP 402 + MCP paywall looks like</title>
      <dc:creator>kevin2003050666-coder</dc:creator>
      <pubDate>Tue, 01 Sep 2026 10:29:38 +0000</pubDate>
      <link>https://dev.to/kevin2003050666coder/what-a-seller-side-http-402-mcp-paywall-looks-like-36n</link>
      <guid>https://dev.to/kevin2003050666coder/what-a-seller-side-http-402-mcp-paywall-looks-like-36n</guid>
      <description>&lt;p&gt;I needed agents to pay per call against an existing HTTP API without handing out API keys. x402-micro-tollgate is a thin Express process that is both an HTTP 402 reverse proxy and an MCP server.&lt;/p&gt;

&lt;p&gt;Unpaid gated routes (default &lt;code&gt;/v1&lt;/code&gt;) return protocol 402. After settlement, the request is proxied to UPSTREAM_URL. &lt;code&gt;/health&lt;/code&gt; stays free. Same process exposes MCP tools: &lt;code&gt;server_info&lt;/code&gt; (free), &lt;code&gt;get_quote&lt;/code&gt; / &lt;code&gt;proxy_request&lt;/code&gt; (paid).&lt;/p&gt;

&lt;p&gt;Demo (no CDP keys):&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -i https://x402-micro-tollgate.onrender.com/v1/quote
# HTTP/1.1 402 Payment Required
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Self-host:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx x402-micro-tollgate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/kevin2003050666-coder/x402-micro-tollgate" rel="noopener noreferrer"&gt;https://github.com/kevin2003050666-coder/x402-micro-tollgate&lt;/a&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/x402-micro-tollgate" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/x402-micro-tollgate&lt;/a&gt;&lt;br&gt;
MCP Registry: &lt;code&gt;io.github.kevin2003050666-coder/x402-micro-tollgate&lt;/code&gt;&lt;/p&gt;

</description>
      <category>x402</category>
      <category>mcp</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
