<?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: Gautam Sharma</title>
    <description>The latest articles on DEV Community by Gautam Sharma (@gautam7).</description>
    <link>https://dev.to/gautam7</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%2F4262283%2F6df2bf9f-a279-46ae-9c91-05ea89ba8d3d.png</url>
      <title>DEV Community: Gautam Sharma</title>
      <link>https://dev.to/gautam7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gautam7"/>
    <language>en</language>
    <item>
      <title>How to see ChatGPT, Perplexity and Claude traffic in GA4 and your server logs</title>
      <dc:creator>Gautam Sharma</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:12:47 +0000</pubDate>
      <link>https://dev.to/transica/how-to-see-chatgpt-perplexity-and-claude-traffic-in-ga4-and-your-server-logs-34d1</link>
      <guid>https://dev.to/transica/how-to-see-chatgpt-perplexity-and-claude-traffic-in-ga4-and-your-server-logs-34d1</guid>
      <description>&lt;p&gt;At Transica I built a report that shows which AI assistants reach a website, and the information it needs is spread across several places. This guide collects them: GA4's AI Assistant channel and a regex for your own channel group, the &lt;code&gt;utm_source=chatgpt.com&lt;/code&gt; tag ChatGPT adds to links it cites, why many AI visits still show as direct, and the ChatGPT-User, Perplexity-User and Claude-User requests in your access log, with a one-line grep and the IP lists that confirm a bot is real.&lt;/p&gt;

&lt;p&gt;To see visits from ChatGPT, Perplexity, Claude or Gemini, open &lt;strong&gt;Acquisition &amp;gt; Traffic acquisition&lt;/strong&gt; in Google Analytics 4, find the &lt;strong&gt;AI Assistant&lt;/strong&gt; channel, and switch the table to &lt;strong&gt;Session source&lt;/strong&gt; to see each assistant by name. ChatGPT also adds &lt;code&gt;utm_source=chatgpt.com&lt;/code&gt; to the links it cites, so those visits keep their source. Many visits that start in an assistant still show up as direct, because app taps, copied links and later searches for your name carry no source. Your server logs fill part of the gap: ChatGPT-User, Perplexity-User and Claude-User requests show when an assistant opened your page to answer someone's question.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I know if a visitor came from ChatGPT or Perplexity?
&lt;/h2&gt;

&lt;p&gt;Your analytics tool learns where a visit came from in two ways. The first is the referrer: the address of the page the visitor was on before, which the browser passes along. The second is a tag added to the link, such as &lt;code&gt;utm_source&lt;/code&gt;. Either one can name the assistant's website as the source.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Assistant&lt;/th&gt;
&lt;th&gt;Source in your analytics&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT&lt;/td&gt;
&lt;td&gt;chatgpt.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;perplexity.ai or &lt;a href="http://www.perplexity.ai" rel="noopener noreferrer"&gt;www.perplexity.ai&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;claude.ai&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;gemini.google.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Microsoft Copilot&lt;/td&gt;
&lt;td&gt;copilot.microsoft.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek&lt;/td&gt;
&lt;td&gt;chat.deepseek.com&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;grok.com&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Google's AI Overviews and AI Mode aren't on this list. Google Analytics counts visits from them as Organic Search (&lt;a href="https://support.google.com/analytics/answer/9756891" rel="noopener noreferrer"&gt;Google&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I track ChatGPT traffic in GA4?
&lt;/h2&gt;

&lt;p&gt;GA4 has a built-in channel called &lt;strong&gt;AI Assistant&lt;/strong&gt;. Google's &lt;a href="https://support.google.com/analytics/answer/9756891" rel="noopener noreferrer"&gt;channel definitions&lt;/a&gt; say it covers sources like ChatGPT, Gemini, DeepSeek, Copilot and Grok. To see it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;In &lt;strong&gt;Reports&lt;/strong&gt;, open &lt;strong&gt;Acquisition &amp;gt; Traffic acquisition&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Find the &lt;strong&gt;AI Assistant&lt;/strong&gt; row.&lt;/li&gt;
&lt;li&gt;Change the table's dimension to &lt;strong&gt;Session source&lt;/strong&gt; to see each assistant.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Google doesn't publish the full list of assistants in that channel. &lt;a href="https://www.searchenginejournal.com/ga4s-ai-assistant-channel-undercounts-your-ai-traffic-how-to-build-one-that-doesnt/580133/" rel="noopener noreferrer"&gt;Search Engine Journal&lt;/a&gt; found Perplexity visits landing in Referral, and chatgpt.com visits split across AI Assistant, Referral and Unassigned. Unassigned is where GA4 puts a visit that matches no channel rule.&lt;/p&gt;

&lt;p&gt;To count these assistants in one place, build your own channel group with this pattern. It matches the domains in the table above.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;^(.*\.)?(chatgpt\.com|chat\.openai\.com|perplexity\.ai|claude\.ai|gemini\.google\.com|copilot\.microsoft\.com|chat\.deepseek\.com|grok\.com)$
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You need the Editor role or above.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Admin &amp;gt; Data display &amp;gt; Channel groups&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Create new channel group&lt;/strong&gt;. It starts as a copy of the default group. Give it a name.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Add new channel&lt;/strong&gt; and name it "AI assistants".&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Add condition group&lt;/strong&gt;. Choose &lt;strong&gt;Source&lt;/strong&gt;, then &lt;strong&gt;matches regex&lt;/strong&gt;, and paste the pattern.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Save channel&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Reorder&lt;/strong&gt;, drag "AI assistants" to the top, and select &lt;strong&gt;Apply&lt;/strong&gt;. GA4 gives each visit to the first channel it matches.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Save group&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Back in &lt;strong&gt;Traffic acquisition&lt;/strong&gt;, pick your new group as the table's dimension. Google says custom channel groups also apply to past data (&lt;a href="https://support.google.com/analytics/answer/13051316" rel="noopener noreferrer"&gt;Google&lt;/a&gt;). When a new assistant starts sending you visits, add its domain to the pattern.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is utm_source=chatgpt.com?
&lt;/h2&gt;

&lt;p&gt;It's a tag ChatGPT adds to the links in its answers. OpenAI's &lt;a href="https://help.openai.com/en/articles/12627856-publishers-and-developers-faq" rel="noopener noreferrer"&gt;publisher FAQ&lt;/a&gt; says ChatGPT includes &lt;code&gt;utm_source=chatgpt.com&lt;/code&gt; in referral URLs, so you can track visits from ChatGPT search. A link to your pricing page looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://example.com/pricing?utm_source=chatgpt.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because the tag is part of the address, it still names ChatGPT when the browser sends no referrer.&lt;/p&gt;

&lt;p&gt;These links come from ChatGPT search. OpenAI says sites that block OAI-SearchBot aren't shown in ChatGPT search answers (&lt;a href="https://developers.openai.com/api/docs/bots" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). If your &lt;code&gt;robots.txt&lt;/code&gt; blocks it, see &lt;a href="https://transica.dev/guides/answer-engine-optimization#how-do-i-appear-in-chatgpt-search-and-get-my-website-indexed" rel="noopener noreferrer"&gt;which crawlers to allow&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does ChatGPT traffic show as direct?
&lt;/h2&gt;

&lt;p&gt;GA4 calls a visit direct when it arrives with no referrer and no tag. Google's &lt;a href="https://support.google.com/analytics/answer/15258820" rel="noopener noreferrer"&gt;help page&lt;/a&gt; lists typed addresses, links in PDFs and Word files, redirects and URL shorteners that strip tags, and ad blockers. Visits that start in an assistant fall into the same gaps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;App taps.&lt;/strong&gt; A link opened from the ChatGPT or Claude app on a phone or computer has no web page behind it, so there's often no referrer. It works like a link in a PDF. If the link carries ChatGPT's tag, the tag still names ChatGPT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copied links.&lt;/strong&gt; Someone copies your address out of the answer and pastes it into a new tab. A pasted address has no referrer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your name, searched later.&lt;/strong&gt; The assistant names you, sometimes from memory with no link at all. The person then searches for you on Google or types your address. That visit counts as search or direct, not as ChatGPT.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redirects.&lt;/strong&gt; A redirect that drops the part of the address after the &lt;code&gt;?&lt;/code&gt; removes the &lt;code&gt;utm_source&lt;/code&gt; tag before your analytics sees it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Founders on Reddit describe the same blind spot. In one &lt;a href="https://www.reddit.com/r/microsaas/comments/1xrm7yu/someone_bought_the_monthly_plan_then_upgraded_to/" rel="noopener noreferrer"&gt;r/microsaas thread&lt;/a&gt;, a developer described a new customer who bought a monthly plan and switched to yearly 13 minutes later. PostHog couldn't tie the signup to any channel, and the buyer used Apple's Hide My Email. ChatGPT stayed a best guess. In an &lt;a href="https://www.reddit.com/r/mcp/comments/1xspdur/created_a_mcpplugin_increase_in_trafficlead_gen/" rel="noopener noreferrer"&gt;r/mcp thread&lt;/a&gt;, another developer said that without tagged links, all you see is "a pile of direct visits".&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I find AI assistants in my server logs?
&lt;/h2&gt;

&lt;p&gt;Your web server keeps an access log: one line for each request, with the time, the page, the result and the user agent. A user agent is the name the visiting software sends with every request. AI companies publish the names their bots use.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;User agent&lt;/th&gt;
&lt;th&gt;Company&lt;/th&gt;
&lt;th&gt;What a request means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT-User&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;A ChatGPT user did something, such as ask a question, and ChatGPT opened your page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity-User&lt;/td&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;A Perplexity user asked a question, and Perplexity visited your page to help answer it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude-User&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;Someone asked Claude a question, and Claude fetched your page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAI-SearchBot&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;Crawls pages for ChatGPT search results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PerplexityBot&lt;/td&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;Crawls pages to show and link in Perplexity search&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude-SearchBot&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;Crawls pages to improve Claude's search results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPTBot&lt;/td&gt;
&lt;td&gt;OpenAI&lt;/td&gt;
&lt;td&gt;Collects content that may train OpenAI's models&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ClaudeBot&lt;/td&gt;
&lt;td&gt;Anthropic&lt;/td&gt;
&lt;td&gt;Collects content that may train Anthropic's models&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: &lt;a href="https://developers.openai.com/api/docs/bots" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;, &lt;a href="https://docs.perplexity.ai/docs/resources/perplexity-crawlers" rel="noopener noreferrer"&gt;Perplexity&lt;/a&gt;, &lt;a href="https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler" rel="noopener noreferrer"&gt;Anthropic&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The first three matter most here. Each request means a real person's request led an assistant to your page at that moment. That person may read the answer inside the chat and never visit your site. The crawlers further down collect pages ahead of time, with no one waiting.&lt;/p&gt;

&lt;p&gt;You won't find these requests in Google Analytics. GA4 counts a visit when its script runs in a browser. &lt;a href="https://vercel.com/blog/the-rise-of-the-ai-crawler" rel="noopener noreferrer"&gt;Vercel and MERJ&lt;/a&gt; found in December 2024 that ChatGPT-User, OAI-SearchBot, GPTBot, ClaudeBot and PerplexityBot didn't run JavaScript.&lt;/p&gt;

&lt;p&gt;To count each one in a standard nginx or Apache access log:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -oE &lt;span class="s2"&gt;"ChatGPT-User|Perplexity-User|Claude-User|OAI-SearchBot|PerplexityBot|Claude-SearchBot|GPTBot|ClaudeBot"&lt;/span&gt; access.log &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;|&lt;/span&gt; uniq -c
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anyone can send a fake user agent. To check that a request is real, compare its IP address with the list the company publishes. OpenAI has one for &lt;a href="https://openai.com/chatgpt-user.json" rel="noopener noreferrer"&gt;ChatGPT-User&lt;/a&gt;, &lt;a href="https://openai.com/searchbot.json" rel="noopener noreferrer"&gt;OAI-SearchBot&lt;/a&gt; and &lt;a href="https://openai.com/gptbot.json" rel="noopener noreferrer"&gt;GPTBot&lt;/a&gt;. Perplexity has one for &lt;a href="https://www.perplexity.ai/perplexitybot.json" rel="noopener noreferrer"&gt;PerplexityBot&lt;/a&gt; and &lt;a href="https://www.perplexity.ai/perplexity-user.json" rel="noopener noreferrer"&gt;Perplexity-User&lt;/a&gt;. Anthropic keeps &lt;a href="https://claude.com/crawling/bots.json" rel="noopener noreferrer"&gt;one list&lt;/a&gt; for its bots.&lt;/p&gt;

&lt;p&gt;An assistant can also answer from its search index, or from what it already knows, without opening your page. So these counts show part of the interest, not all of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does Bing or Google show AI citations?
&lt;/h2&gt;

&lt;p&gt;Both show how often your pages appear in AI answers. Neither shows visits.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bing Webmaster Tools&lt;/strong&gt; has an &lt;a href="https://blogs.bing.com/webmaster/February-2026/Introducing-AI-Performance-in-Bing-Webmaster-Tools-Public-Preview" rel="noopener noreferrer"&gt;AI Performance report&lt;/a&gt;, in public preview since 10 February 2026. It counts how often Microsoft Copilot, Bing's AI summaries and some partner services cite your pages. You see total citations, the average number of your pages cited each day, citations for each page, and a sample of grounding queries: the phrases the AI used to look up content.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Google Search Console&lt;/strong&gt; has a &lt;a href="https://developers.google.com/search/blog/2026/06/gen-ai-performance-reports" rel="noopener noreferrer"&gt;generative AI performance report&lt;/a&gt;. It shows impressions: how often your pages appeared in AI Overviews, AI Mode and Discover's AI features, by page, country, device and date.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What do ChatGPT Business Hub insights show?
&lt;/h2&gt;

&lt;p&gt;If you &lt;a href="https://transica.dev/guides/claim-your-business-in-chatgpt" rel="noopener noreferrer"&gt;claim your business in ChatGPT&lt;/a&gt; and pass the Persona ID check, Business Hub shows three things for the past 28 days (&lt;a href="https://help.openai.com/en/articles/20001635-setting-up-your-business-on-chatgpt" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Insight&lt;/th&gt;
&lt;th&gt;What it counts&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mentions&lt;/td&gt;
&lt;td&gt;For an online business, answers where ChatGPT references your website. Your name alone doesn't count&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Website clicks&lt;/td&gt;
&lt;td&gt;How often people click through to your site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discovery topics&lt;/td&gt;
&lt;td&gt;Common themes in answers that mentioned or cited you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The numbers are totals. You don't see the prompts people typed, and a blank number can mean activity is below OpenAI's reporting threshold, not zero. Early users on Reddit noted that the numbers show a change but not which questions caused it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which AI assistant recommended my business?
&lt;/h2&gt;

&lt;p&gt;You can often learn which assistant sent a visit, read your page or called your app. You can't see what someone asked it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you want to know&lt;/th&gt;
&lt;th&gt;Where to look&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Which assistant sent a visit&lt;/td&gt;
&lt;td&gt;GA4 session source, or &lt;code&gt;utm_source=chatgpt.com&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which assistant read a page for someone&lt;/td&gt;
&lt;td&gt;ChatGPT-User, Perplexity-User or Claude-User in your server logs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Which assistant called your app's tools&lt;/td&gt;
&lt;td&gt;Your MCP server's logs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How often ChatGPT cited you&lt;/td&gt;
&lt;td&gt;Business Hub insights&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How often Copilot cited you&lt;/td&gt;
&lt;td&gt;Bing's AI Performance report&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How often Google's AI features showed you&lt;/td&gt;
&lt;td&gt;Search Console's generative AI report&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What the person asked&lt;/td&gt;
&lt;td&gt;Only the person can tell you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Should I ask "How did you hear about us?"
&lt;/h2&gt;

&lt;p&gt;Yes. It's the only way to learn about visits that left no trace. Add an optional question to your signup or checkout form, with choices such as ChatGPT, Perplexity, Claude, Gemini, Google search, a friend and Other. In the r/microsaas thread above, another founder said an optional dropdown like this cleared up most of their unexplained signups.&lt;/p&gt;

&lt;p&gt;Sign in with Apple can hide a customer's email. With Hide My Email, you only get a random relay address, so you can't match that customer to anything else you know. The relay still forwards your messages to their own inbox (&lt;a href="https://support.apple.com/en-us/HT210425" rel="noopener noreferrer"&gt;Apple&lt;/a&gt;). A short thank-you email that asks how they found you still reaches them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I track which assistant uses my ChatGPT app or Claude connector?
&lt;/h2&gt;

&lt;p&gt;An app in ChatGPT or a connector in Claude runs on an &lt;a href="https://transica.dev/guides/what-is-an-mcp-server" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt;. When an AI app connects, its first message includes its own name and version, in a field called &lt;code&gt;clientInfo&lt;/code&gt; (&lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/lifecycle" rel="noopener noreferrer"&gt;MCP specification&lt;/a&gt;). Log that field with each tool call, and you know which assistant called which tool, and when.&lt;/p&gt;

&lt;p&gt;This is a different kind of visit. The assistant does the job inside the chat, and the customer may never open your website. Developers in the r/mcp thread above made the same point: logs of tool calls told them more about real use than page views did. One suggested counting connections, first successful use and repeat use separately from website visits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Read on 20 November 2026, and on 11 November 2026 for the Business Hub help page.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google Analytics Help: &lt;a href="https://support.google.com/analytics/answer/9756891" rel="noopener noreferrer"&gt;Default channel group&lt;/a&gt;, &lt;a href="https://support.google.com/analytics/answer/13051316" rel="noopener noreferrer"&gt;Custom channel groups&lt;/a&gt;, &lt;a href="https://support.google.com/analytics/answer/15258820" rel="noopener noreferrer"&gt;Understand (direct) / (none) traffic&lt;/a&gt;, &lt;a href="https://support.google.com/analytics/answer/10917952" rel="noopener noreferrer"&gt;Traffic acquisition&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Google Search Central: &lt;a href="https://developers.google.com/search/blog/2026/06/gen-ai-performance-reports" rel="noopener noreferrer"&gt;Generative AI performance reports&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenAI: &lt;a href="https://developers.openai.com/api/docs/bots" rel="noopener noreferrer"&gt;Overview of OpenAI crawlers&lt;/a&gt;, &lt;a href="https://help.openai.com/en/articles/12627856-publishers-and-developers-faq" rel="noopener noreferrer"&gt;Publishers and developers FAQ&lt;/a&gt;, &lt;a href="https://help.openai.com/en/articles/20001635-setting-up-your-business-on-chatgpt" rel="noopener noreferrer"&gt;Setting up your business on ChatGPT&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Perplexity: &lt;a href="https://docs.perplexity.ai/docs/resources/perplexity-crawlers" rel="noopener noreferrer"&gt;Perplexity crawlers&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic: &lt;a href="https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler" rel="noopener noreferrer"&gt;Does Anthropic crawl data from the web?&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Microsoft: &lt;a href="https://blogs.bing.com/webmaster/February-2026/Introducing-AI-Performance-in-Bing-Webmaster-Tools-Public-Preview" rel="noopener noreferrer"&gt;AI Performance in Bing Webmaster Tools&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Apple: &lt;a href="https://support.apple.com/en-us/HT210425" rel="noopener noreferrer"&gt;How to use Hide My Email with Sign in with Apple&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Model Context Protocol: &lt;a href="https://modelcontextprotocol.io/specification/2025-11-25/basic/lifecycle" rel="noopener noreferrer"&gt;Lifecycle&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Studies and reporting: &lt;a href="https://vercel.com/blog/the-rise-of-the-ai-crawler" rel="noopener noreferrer"&gt;Vercel and MERJ, The rise of the AI crawler&lt;/a&gt;, &lt;a href="https://www.searchenginejournal.com/ga4s-ai-assistant-channel-undercounts-your-ai-traffic-how-to-build-one-that-doesnt/580133/" rel="noopener noreferrer"&gt;Search Engine Journal, GA4's AI Assistant channel undercounts your AI traffic&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://transica.dev" rel="noopener noreferrer"&gt;transica.dev&lt;/a&gt;. I wrote it with help from an AI model and checked each claim against the linked sources.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>analytics</category>
      <category>chatgpt</category>
      <category>seo</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to make a ChatGPT plugin in 2026: Apps SDK, testing and review</title>
      <dc:creator>Gautam Sharma</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:12:21 +0000</pubDate>
      <link>https://dev.to/transica/how-to-make-a-chatgpt-plugin-in-2026-apps-sdk-testing-and-review-iln</link>
      <guid>https://dev.to/transica/how-to-make-a-chatgpt-plugin-in-2026-apps-sdk-testing-and-review-iln</guid>
      <description>&lt;p&gt;I took WarrantyWarden, our warranty-tracking app, through OpenAI's plugin review this autumn, and it was approved on 29 October. Along the way I found that "ChatGPT plugin" now means something quite different from the 2023 plugins, which were shut down in April 2024. This is the current process: what a plugin is today, which SDK packages OpenAI's docs use, how to test it on the web without developer mode, what review checks and how long ours took.&lt;/p&gt;

&lt;p&gt;To make a ChatGPT app or plugin in 2026 with OpenAI's Apps SDK, you build an MCP server, connect it to ChatGPT to test it, and submit it to OpenAI for review. MCP (Model Context Protocol) is the open standard ChatGPT uses to call outside tools. An &lt;a href="https://transica.dev/guides/what-is-an-mcp-server" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt; is a web service that lists those tools, such as "find an order" or "book a slot". You can add screens that show inside the chat, and OAuth sign-in for customer accounts. The plugins of 2023, built from an &lt;code&gt;ai-plugin.json&lt;/code&gt; file and an OpenAPI spec, were shut down in 2024. Guides that still describe that file are out of date.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a ChatGPT plugin now?
&lt;/h2&gt;

&lt;p&gt;A plugin is what you submit to the ChatGPT Directory, the store inside ChatGPT. OpenAI's &lt;a href="https://developers.openai.com/plugins/plugin-guidelines" rel="noopener noreferrer"&gt;plugin guidelines&lt;/a&gt; say a plugin can hold MCP tools, skills, or both, with optional UI, and that the directory is shared by ChatGPT and Codex. A skill is a set of written instructions for a repeatable task. To connect ChatGPT to your own product, you need the MCP server.&lt;/p&gt;

&lt;p&gt;OpenAI's help center separates two words. An &lt;strong&gt;app&lt;/strong&gt; connects ChatGPT to a service. A &lt;strong&gt;plugin&lt;/strong&gt; packages apps and skills for a task (&lt;a href="https://help.openai.com/en/articles/20001256-plugins-in-chatgpt" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). Older articles call directory submissions "ChatGPT apps", and OpenAI's &lt;a href="https://developers.openai.com/apps-sdk" rel="noopener noreferrer"&gt;Apps SDK docs&lt;/a&gt; now redirect to its plugins docs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened to the 2023 ChatGPT plugins?
&lt;/h2&gt;

&lt;p&gt;In 2023 a plugin was your API, described by an OpenAPI spec and a manifest file (&lt;a href="https://openai.com/index/chatgpt-plugins/" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). OpenAI's &lt;a href="https://github.com/openai/plugins-quickstart" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; kept the manifest at &lt;code&gt;.well-known/ai-plugin.json&lt;/code&gt;. OpenAI &lt;a href="https://web.archive.org/web/20240325012016/https://help.openai.com/en/articles/8988022-winding-down-the-chatgpt-plugins-beta" rel="noopener noreferrer"&gt;wound down that beta&lt;/a&gt; in favour of GPTs. New plugin conversations stopped on 19 March 2024, and existing ones ended on 9 April 2024. The name came back for a different system.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;2023 plugins&lt;/th&gt;
&lt;th&gt;Plugins today&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What you build&lt;/td&gt;
&lt;td&gt;An API, its OpenAPI spec and &lt;code&gt;ai-plugin.json&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;An MCP server, skills, or both&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How ChatGPT uses it&lt;/td&gt;
&lt;td&gt;Reads the spec and calls your API&lt;/td&gt;
&lt;td&gt;Calls the tools your server lists&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sign-in&lt;/td&gt;
&lt;td&gt;Set in the manifest's &lt;code&gt;auth&lt;/code&gt; field&lt;/td&gt;
&lt;td&gt;OAuth 2.1, following the MCP spec&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Interface&lt;/td&gt;
&lt;td&gt;Text answers&lt;/td&gt;
&lt;td&gt;Text, plus optional UI in the chat&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it works&lt;/td&gt;
&lt;td&gt;ChatGPT, in a beta&lt;/td&gt;
&lt;td&gt;ChatGPT and Codex&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Status&lt;/td&gt;
&lt;td&gt;Shut down in April 2024&lt;/td&gt;
&lt;td&gt;Open for submissions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How do I make a ChatGPT plugin?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick the tasks.&lt;/strong&gt; List what customers ask about or do with your product: check an order, find a product, book a slot. Each task becomes one tool. OpenAI doesn't accept a generic tool that runs any operation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build the MCP server.&lt;/strong&gt; OpenAI's &lt;a href="https://developers.openai.com/plugins/build/mcp-server" rel="noopener noreferrer"&gt;build guide&lt;/a&gt; uses the official MCP SDKs and a streamable HTTP endpoint, usually at &lt;code&gt;/mcp&lt;/code&gt;. Give each tool a verb name, a description that says when to use it, an input schema and annotations. Starting from an API: &lt;a href="https://transica.dev/guides/turn-your-api-into-an-mcp-server" rel="noopener noreferrer"&gt;turn your API into an MCP server&lt;/a&gt;. Naming and descriptions: &lt;a href="https://transica.dev/blog/mcp-tool-design-best-practices" rel="noopener noreferrer"&gt;tool design best practices&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add UI only where it helps.&lt;/strong&gt; OpenAI calls custom UI optional. ChatGPT supports the open MCP Apps standard: a tool points to an HTML resource at a &lt;code&gt;ui://&lt;/code&gt; address, and ChatGPT shows it as an inline card, a carousel, full screen or picture-in-picture (&lt;a href="https://developers.openai.com/plugins/build/chatgpt-ui" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). List every domain the UI loads from in its content security policy. Review compares that list with what the UI does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add sign-in with OAuth.&lt;/strong&gt; Public data needs none. Customer data needs OAuth 2.1: your server publishes &lt;code&gt;/.well-known/oauth-protected-resource&lt;/code&gt;, your login service supports PKCE with S256, and each tool declares &lt;code&gt;noauth&lt;/code&gt;, &lt;code&gt;oauth2&lt;/code&gt; or both (&lt;a href="https://developers.openai.com/plugins/build/auth" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). Using the login you already have: &lt;a href="https://transica.dev/guides/mcp-server-authentication" rel="noopener noreferrer"&gt;MCP server authentication&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test it in ChatGPT.&lt;/strong&gt; Host the server at a public HTTPS address, add it as a custom MCP server and try real prompts. The steps are below.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run a directory check.&lt;/strong&gt; &lt;code&gt;npx mcp-directory-check &amp;lt;your server URL&amp;gt;&lt;/code&gt; checks the server against ChatGPT's and Claude's published rules. It reads the tool list and metadata without calling a tool or signing in (&lt;a href="https://github.com/transica-dev/mcp-directory-check" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Package and submit.&lt;/strong&gt; Verify your OpenAI organization, prove you own the domain, upload the ZIP in the Plugins dashboard, fix what the automated checks find, fill in the review details and submit (&lt;a href="https://developers.openai.com/plugins/deploy/submission" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). The full checklist: &lt;a href="https://transica.dev/guides/chatgpt-app-directory" rel="noopener noreferrer"&gt;ChatGPT app directory&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Publish after approval.&lt;/strong&gt; Approval doesn't list you. You choose when to select &lt;strong&gt;Publish plugin&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Which SDK do I use for a ChatGPT plugin?
&lt;/h2&gt;

&lt;p&gt;OpenAI's help center describes the Apps SDK as built on MCP and open source (&lt;a href="https://help.openai.com/en/articles/12515353-building-with-the-apps-sdk" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). In OpenAI's build docs, the code uses these packages:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Package&lt;/th&gt;
&lt;th&gt;What it's for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;@modelcontextprotocol/sdk&lt;/code&gt; (TypeScript) or &lt;code&gt;mcp&lt;/code&gt; (Python)&lt;/td&gt;
&lt;td&gt;The MCP server and its tools&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;@modelcontextprotocol/ext-apps&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;UI that follows the MCP Apps standard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;@openai/apps-sdk-ui&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Optional buttons, cards and layouts that match ChatGPT&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;ChatGPT-only features, such as file uploads and checkout, sit on &lt;code&gt;window.openai&lt;/code&gt;. OpenAI says to check each one exists and have a fallback.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I test a ChatGPT plugin?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it shows&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MCP Inspector&lt;/td&gt;
&lt;td&gt;Your tools, called directly, before ChatGPT is involved&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT Plugins, &lt;strong&gt;Add custom MCP server&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Which tool ChatGPT picks, sign-in, and write actions as users see them&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API Playground, &lt;strong&gt;Tools ‚Üí Add ‚Üí MCP Server&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;The raw requests and responses&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Step by step, with plans and fixes: &lt;a href="https://transica.dev/guides/add-mcp-server-to-chatgpt" rel="noopener noreferrer"&gt;how to add an MCP server to ChatGPT&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Start the Inspector with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @modelcontextprotocol/inspector@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In ChatGPT, open &lt;a href="https://chatgpt.com/plugins" rel="noopener noreferrer"&gt;Plugins&lt;/a&gt;, select the plus button, then &lt;strong&gt;Add custom MCP server&lt;/strong&gt;. Enter the URL, set the sign-in type, accept the risk warning and select &lt;strong&gt;Create as a plugin&lt;/strong&gt;. Install it, type &lt;code&gt;@&lt;/code&gt; in a new chat and pick it (&lt;a href="https://developers.openai.com/plugins/deploy/connect-chatgpt" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). Try direct, indirect, follow-up, write and unsupported requests, and note which tool ran with which inputs. After a change, select &lt;strong&gt;Refresh&lt;/strong&gt; and start a new chat.&lt;/p&gt;

&lt;p&gt;You don't turn on developer mode any more. OpenAI's help center says the risk warning for each server replaces that step (&lt;a href="https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). The same page lists full MCP support for Business and Enterprise/Edu on the web. On Business, only admins and owners can add a server. Pro users can connect custom servers with read and fetch permissions only, and none can be added on mobile.&lt;/p&gt;

&lt;p&gt;A server on your own computer needs a tunnel to be reachable for testing. The submission needs a public HTTPS address.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does OpenAI check in plugin review?
&lt;/h2&gt;

&lt;p&gt;From OpenAI's &lt;a href="https://developers.openai.com/plugins/deploy/submission" rel="noopener noreferrer"&gt;submission guide&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/plugin-guidelines" rel="noopener noreferrer"&gt;plugin guidelines&lt;/a&gt; and &lt;a href="https://developers.openai.com/plugins/deploy/app-review" rel="noopener noreferrer"&gt;app review page&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;What OpenAI asks for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Developer&lt;/td&gt;
&lt;td&gt;A verified individual or business. An unverified name gets rejected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Server&lt;/td&gt;
&lt;td&gt;One remote MCP server per plugin, at a stable public HTTPS address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Domain&lt;/td&gt;
&lt;td&gt;A challenge token served at &lt;code&gt;/.well-known/openai-apps-challenge&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tools&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;readOnlyHint&lt;/code&gt;, &lt;code&gt;destructiveHint&lt;/code&gt; and &lt;code&gt;openWorldHint&lt;/code&gt; set on every tool, matching what it does&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Listing&lt;/td&gt;
&lt;td&gt;No pricing or promotions, and no "Plugin" or "MCP" added to your name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test cases&lt;/td&gt;
&lt;td&gt;Exactly five that should work and three that shouldn't&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demo&lt;/td&gt;
&lt;td&gt;A video of the test cases, and a reviewer account with sample data and no two-factor codes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Selling&lt;/td&gt;
&lt;td&gt;Physical goods only. No subscriptions or digital goods&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The app review page lists the common reasons for rejection:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connection failures.&lt;/strong&gt; The reviewer couldn't reach the server or sign in with the test account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failed test cases.&lt;/strong&gt; Results didn't match what you said they would, or the UI didn't load properly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Undisclosed data.&lt;/strong&gt; A tool returned user data that your privacy policy doesn't cover.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wrong annotations.&lt;/strong&gt; A hint doesn't match what the tool does, such as a tool marked read-only that writes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A tool that only reads your own catalog would set:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"annotations"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"readOnlyHint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"destructiveHint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"openWorldHint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Field limits, icons and the package layout: &lt;a href="https://transica.dev/guides/chatgpt-app-directory#what-do-i-need-to-submit-an-app-to-chatgpt" rel="noopener noreferrer"&gt;what you need to submit&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How long does ChatGPT plugin review take?
&lt;/h2&gt;

&lt;p&gt;OpenAI doesn't publish a review time. Its app review page says timelines vary, asks developers not to contact support to speed one up, and gives no estimates for update reviews. Only one review per plugin can run at a time, and feedback comes by email.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://transica.dev/blog/warrantywarden-chatgpt-plugin-directory" rel="noopener noreferrer"&gt;WarrantyWarden's plugin&lt;/a&gt;, where people sign in with their existing WarrantyWarden account, was submitted by 13 October 2026 and approved on 29 October 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Read on 8 November 2026.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI developer docs: &lt;a href="https://developers.openai.com/plugins/plugin-guidelines" rel="noopener noreferrer"&gt;Plugin guidelines&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/deploy/submission" rel="noopener noreferrer"&gt;Upload and submit your plugin&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/deploy/app-review" rel="noopener noreferrer"&gt;App review&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/build/mcp-server" rel="noopener noreferrer"&gt;Build an MCP server&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/build/chatgpt-ui" rel="noopener noreferrer"&gt;Add UI&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/build/auth" rel="noopener noreferrer"&gt;Authentication&lt;/a&gt;, &lt;a href="https://developers.openai.com/plugins/deploy/connect-chatgpt" rel="noopener noreferrer"&gt;Connect and test your plugin&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;OpenAI Help Center: &lt;a href="https://help.openai.com/en/articles/20001256-plugins-in-chatgpt" rel="noopener noreferrer"&gt;Plugins in ChatGPT&lt;/a&gt;, &lt;a href="https://help.openai.com/en/articles/12584461-connecting-custom-mcp-servers-in-chatgpt" rel="noopener noreferrer"&gt;Connecting custom MCP servers in ChatGPT&lt;/a&gt;, &lt;a href="https://help.openai.com/en/articles/12515353-building-with-the-apps-sdk" rel="noopener noreferrer"&gt;Building with the Apps SDK&lt;/a&gt;, &lt;a href="https://web.archive.org/web/20240325012016/https://help.openai.com/en/articles/8988022-winding-down-the-chatgpt-plugins-beta" rel="noopener noreferrer"&gt;Winding down the ChatGPT plugins beta&lt;/a&gt; (archived 25 March 2024)&lt;/li&gt;
&lt;li&gt;OpenAI, 2023: &lt;a href="https://openai.com/index/chatgpt-plugins/" rel="noopener noreferrer"&gt;ChatGPT plugins&lt;/a&gt;, &lt;a href="https://github.com/openai/plugins-quickstart" rel="noopener noreferrer"&gt;openai/plugins-quickstart&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/transica-dev/mcp-directory-check" rel="noopener noreferrer"&gt;transica-dev/mcp-directory-check&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://transica.dev" rel="noopener noreferrer"&gt;transica.dev&lt;/a&gt;. I wrote it with help from an AI model and checked each claim against the linked sources.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>chatgpt</category>
      <category>openai</category>
      <category>mcp</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>MCP server OAuth for ChatGPT and Claude with the login you already have</title>
      <dc:creator>Gautam Sharma</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:11:52 +0000</pubDate>
      <link>https://dev.to/transica/mcp-server-oauth-for-chatgpt-and-claude-with-the-login-you-already-have-25e1</link>
      <guid>https://dev.to/transica/mcp-server-oauth-for-chatgpt-and-claude-with-the-login-you-already-have-25e1</guid>
      <description>&lt;p&gt;I'm building Transica, where I put OAuth in front of a company's existing login so its customers can sign in to MCP servers from ChatGPT and Claude. These are my notes on what that takes: which identity providers let ChatGPT and Claude register on their own, which redirect addresses to allow, and six steps from the first &lt;code&gt;401&lt;/code&gt; to refresh tokens that keep people signed in. They follow the 2026-07-28 MCP specification.&lt;/p&gt;

&lt;p&gt;To let ChatGPT and Claude users sign in with the login they already have, your MCP server answers a request without a valid token with HTTP &lt;code&gt;401&lt;/code&gt; pointing to its protected resource metadata, and an OAuth 2.1 authorization server with PKCE &lt;code&gt;S256&lt;/code&gt; signs them in. That server is your identity provider itself when it lets ChatGPT and Claude register on their own and puts the &lt;code&gt;resource&lt;/code&gt; value in the token's audience. Otherwise it's an authorization server in front of your provider that sends people to your usual login page. Public tools need no sign-in at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I let ChatGPT users sign in with my existing login?
&lt;/h2&gt;

&lt;p&gt;It depends on what your provider supports. Provider docs read on 4 November 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider&lt;/th&gt;
&lt;th&gt;Client ID metadata documents&lt;/th&gt;
&lt;th&gt;Dynamic client registration&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;resource&lt;/code&gt; becomes the audience&lt;/th&gt;
&lt;th&gt;ChatGPT and Claude register on their own&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Auth0&lt;/td&gt;
&lt;td&gt;Yes, a tenant setting&lt;/td&gt;
&lt;td&gt;Yes, a tenant setting&lt;/td&gt;
&lt;td&gt;Yes, with a compatibility profile&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Okta&lt;/td&gt;
&lt;td&gt;Configured by an admin per app&lt;/td&gt;
&lt;td&gt;An API exists; open registration not documented&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Not documented&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clerk&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Not documented&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Supabase&lt;/td&gt;
&lt;td&gt;Not documented&lt;/td&gt;
&lt;td&gt;Yes, in public beta&lt;/td&gt;
&lt;td&gt;Not documented&lt;/td&gt;
&lt;td&gt;Through dynamic registration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  How do I let ChatGPT users sign in with my existing Auth0 login?
&lt;/h3&gt;

&lt;p&gt;Auth0 supports both ways the AI apps register. Under &lt;strong&gt;Dashboard &amp;gt; Settings &amp;gt; Advanced&lt;/strong&gt;, turn on &lt;strong&gt;Client ID Metadata Document Registration&lt;/strong&gt; with &lt;strong&gt;Dynamic CIMD Registration&lt;/strong&gt;, or &lt;strong&gt;Dynamic Client Registration (DCR)&lt;/strong&gt;. Open DCR lets anyone create applications in your tenant without a token, at up to 5 requests a second, and those clients can use only domain-level connections (&lt;a href="https://auth0.com/docs/get-started/applications/dynamic-client-registration" rel="noopener noreferrer"&gt;Auth0&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;In the same place, turn on the &lt;strong&gt;Resource Parameter Compatibility Profile&lt;/strong&gt;, so the &lt;code&gt;resource&lt;/code&gt; value ChatGPT and Claude send becomes the token's audience. When a request carries both &lt;code&gt;resource&lt;/code&gt; and &lt;code&gt;audience&lt;/code&gt;, Auth0 uses &lt;code&gt;audience&lt;/code&gt; (&lt;a href="https://auth0.com/ai/docs/mcp/guides/resource-param-compatibility-profile" rel="noopener noreferrer"&gt;Auth0&lt;/a&gt;). Turn on &lt;strong&gt;Include Issuer in Authorization Responses&lt;/strong&gt; too, which ChatGPT needs for its stable redirect address.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I let ChatGPT users sign in with my existing Okta login?
&lt;/h3&gt;

&lt;p&gt;Okta supports the &lt;code&gt;resource&lt;/code&gt; parameter and audience switching (&lt;a href="https://support.okta.com/help/s/article/oidc-does-okta-support-the-resource-parameter-and-audience-switching" rel="noopener noreferrer"&gt;Okta&lt;/a&gt;). Its client ID metadata documents are set up by an admin for each app (&lt;a href="https://help.okta.com/oie/en-us/content/topics/apps/apps-cimd-about.htm" rel="noopener noreferrer"&gt;Okta&lt;/a&gt;), and its docs don't describe an unknown client registering itself. Plan on an authorization server in front of Okta, with Okta as its upstream provider (below).&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I let ChatGPT users sign in with my existing Clerk login?
&lt;/h3&gt;

&lt;p&gt;Clerk supports both. Under &lt;strong&gt;OAuth applications &amp;gt; Settings &amp;gt; Client onboarding&lt;/strong&gt;, turn on &lt;strong&gt;Publish CIMD support&lt;/strong&gt;, and &lt;strong&gt;Publish DCR support&lt;/strong&gt; only for clients that need it. Clerk's &lt;code&gt;@clerk/mcp-tools&lt;/code&gt; package serves the protected resource metadata at &lt;code&gt;/.well-known/oauth-protected-resource/mcp&lt;/code&gt; and verifies Clerk's tokens (&lt;a href="https://clerk.com/docs/nextjs/guides/ai/mcp/build-mcp-server" rel="noopener noreferrer"&gt;Clerk&lt;/a&gt;). Clerk's guide doesn't mention the &lt;code&gt;resource&lt;/code&gt; parameter, so check each token's audience yourself.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I let ChatGPT users sign in with my existing Supabase login?
&lt;/h3&gt;

&lt;p&gt;Supabase Auth's OAuth 2.1 server, in public beta, signs users in with the authorization code flow and PKCE and lets MCP clients register dynamically. Turn it on under &lt;strong&gt;Authentication &amp;gt; OAuth Server&lt;/strong&gt; (&lt;a href="https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication" rel="noopener noreferrer"&gt;Supabase&lt;/a&gt;). Its docs don't mention client ID metadata documents or the &lt;code&gt;resource&lt;/code&gt; parameter, so ChatGPT and Claude both use dynamic registration. WarrantyWarden's ChatGPT plugin signs people in with its existing Supabase login through an authorization server in front of it (&lt;a href="https://transica.dev/blog/warrantywarden-chatgpt-plugin-directory" rel="noopener noreferrer"&gt;case study&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Does ChatGPT support dynamic client registration or client ID metadata documents?
&lt;/h3&gt;

&lt;p&gt;Both. ChatGPT prefers a client ID metadata document when your authorization server advertises &lt;code&gt;client_id_metadata_document_supported: true&lt;/code&gt;; the plugin builder can pick dynamic registration instead, and a predefined client also works. With dynamic registration, ChatGPT registers once per MCP server connection and reuses that client; if its credentials expire, people get &lt;code&gt;invalid_client&lt;/code&gt; (&lt;a href="https://developers.openai.com/plugins/build/auth" rel="noopener noreferrer"&gt;OpenAI&lt;/a&gt;). The 2026-07-28 MCP spec says clients and servers should support metadata documents and marks dynamic registration as deprecated.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which redirect URI does ChatGPT use?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;https://chatgpt.com/connector_platform_oauth_redirect&lt;/code&gt; when your authorization server sends the issuer in its responses (&lt;a href="https://datatracker.ietf.org/doc/html/rfc9207" rel="noopener noreferrer"&gt;RFC 9207&lt;/a&gt;). Otherwise &lt;code&gt;https://chatgpt.com/connector/oauth/{callback_id}&lt;/code&gt;. Copy the exact address from your MCP server's management page into your provider's allowed list. ChatGPT's client ID metadata document is at &lt;code&gt;https://chatgpt.com/oauth/client.json&lt;/code&gt;, or a per-callback address without RFC 9207.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the same sign-in work in Claude?
&lt;/h3&gt;

&lt;p&gt;Yes. Claude connects to the same server and uses &lt;code&gt;https://claude.ai/api/mcp/auth_callback&lt;/code&gt; on the web, desktop and mobile. Claude Code signs in on a local port: allow &lt;code&gt;http://localhost/callback&lt;/code&gt; and &lt;code&gt;http://127.0.0.1/callback&lt;/code&gt; with any port. Claude uses a metadata document only when your provider advertises both &lt;code&gt;client_id_metadata_document_supported: true&lt;/code&gt; and &lt;code&gt;"none"&lt;/code&gt; as a token endpoint auth method; otherwise it registers dynamically, a new client on every fresh connection (&lt;a href="https://claude.com/docs/connectors/building/authentication" rel="noopener noreferrer"&gt;Anthropic&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The steps below follow the &lt;a href="https://modelcontextprotocol.io/specification/latest/basic/authorization" rel="noopener noreferrer"&gt;MCP specification (2026-07-28)&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does MCP server authentication work?
&lt;/h2&gt;

&lt;p&gt;There are three parties. Your MCP server holds the data and checks the token on every request. Your authorization server signs people in and hands out tokens. That's usually the identity provider you already use, such as Auth0, Clerk, WorkOS, Okta, Microsoft Entra ID or Keycloak, not something new. And ChatGPT or Claude is the client: it works out where to send people, gets a token on their behalf and sends it with each request. When your identity provider can't serve the AI apps directly, the MCP server runs its own authorization server in front of it (below).&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the MCP OAuth flow?
&lt;/h2&gt;

&lt;p&gt;A request without a token gets a &lt;code&gt;401&lt;/code&gt;. The app finds your authorization server from your metadata, registers, signs the person in with PKCE and sends the token with each request. Steps 1 to 6 set this up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: say "sign in first" the right way
&lt;/h2&gt;

&lt;p&gt;When a request needs sign-in and arrives without a valid token, answer with HTTP &lt;code&gt;401&lt;/code&gt; and a &lt;code&gt;WWW-Authenticate&lt;/code&gt; header that tells the app where your metadata lives. For example: &lt;code&gt;WWW-Authenticate: Bearer resource_metadata="https://mcp.example.com/.well-known/oauth-protected-resource", scope="orders:read"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Two details catch people out. Claude only starts sign-in on a real &lt;code&gt;401&lt;/code&gt;. If you return a normal &lt;code&gt;200&lt;/code&gt; with a "please sign in" message, that text just shows up in the chat and nothing happens. And the &lt;code&gt;scope&lt;/code&gt; part is optional but worth sending, because it tells the app exactly which permissions to ask for, so the consent screen isn't broader than it needs to be.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: publish where your sign-in lives
&lt;/h2&gt;

&lt;p&gt;Your server needs a small JSON document, called protected resource metadata (&lt;a href="https://datatracker.ietf.org/doc/html/rfc9728" rel="noopener noreferrer"&gt;RFC 9728&lt;/a&gt;), that names the server and its identity provider. The main fields are &lt;code&gt;resource&lt;/code&gt; (for example &lt;code&gt;https://mcp.example.com/mcp&lt;/code&gt;), &lt;code&gt;authorization_servers&lt;/code&gt; (for example &lt;code&gt;["https://auth.example.com"]&lt;/code&gt;), and optionally &lt;code&gt;scopes_supported&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Get these right and most of the rest follows. The &lt;code&gt;resource&lt;/code&gt; value has to match your server's URL exactly as people type it into the app, path included. Put your main identity provider first in &lt;code&gt;authorization_servers&lt;/code&gt;, because Claude only ever uses the first one. Serve the document at &lt;code&gt;/.well-known/oauth-protected-resource/mcp&lt;/code&gt; as well as at &lt;code&gt;/.well-known/oauth-protected-resource&lt;/code&gt;, since clients try the first one when your URL has a path. And keep &lt;code&gt;scopes_supported&lt;/code&gt; to what basic use needs; you can ask for more later (see &lt;a href="https://transica.dev/guides/mcp-per-tool-access" rel="noopener noreferrer"&gt;per-tool access&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: make your identity provider discoverable
&lt;/h2&gt;

&lt;p&gt;Your identity provider has to publish its own metadata, either standard OAuth server metadata (&lt;a href="https://datatracker.ietf.org/doc/html/rfc8414" rel="noopener noreferrer"&gt;RFC 8414&lt;/a&gt;) or OpenID Connect discovery. Most providers already do. It's still worth checking a few things. It should list its issuer and its authorization and token endpoints. It should say it supports PKCE with &lt;code&gt;S256&lt;/code&gt;, because every flow uses it. Ideally it should include the issuer in each sign-in response (&lt;a href="https://datatracker.ietf.org/doc/html/rfc9207" rel="noopener noreferrer"&gt;RFC 9207&lt;/a&gt;): the spec asks clients to check it and expects to make it required later.&lt;/p&gt;

&lt;p&gt;One easy one to miss: the AI app has to be able to reach your identity provider. Claude's requests come from Anthropic's published range (&lt;code&gt;160.79.104.0/21&lt;/code&gt; as of this writing), and a firewall in front of your identity provider can break sign-in even when your MCP server itself is reachable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: let the app register itself
&lt;/h2&gt;

&lt;p&gt;Before ChatGPT or Claude can send anyone to sign in, it needs a client ID at your identity provider. There are three ways to get one.&lt;/p&gt;

&lt;p&gt;The one the spec now prefers is a &lt;strong&gt;client ID metadata document&lt;/strong&gt;. The app's client ID is simply an HTTPS URL, and your identity provider fetches it to read the app's name and redirect addresses. There's no registration step and no table of clients to maintain. OpenAI prefers it too, and Claude uses it as long as your metadata advertises &lt;code&gt;client_id_metadata_document_supported: true&lt;/code&gt; and accepts &lt;code&gt;"none"&lt;/code&gt; as a token endpoint auth method.&lt;/p&gt;

&lt;p&gt;The second is a &lt;strong&gt;client you create yourself&lt;/strong&gt; and hand to the app. Claude calls this Anthropic-held credentials and takes it in its developer portal. It doesn't work when every customer has their own server URL.&lt;/p&gt;

&lt;p&gt;The third is &lt;strong&gt;dynamic client registration&lt;/strong&gt;, where the app registers itself through an endpoint you expose. Both apps still support it, but the 2026-07-28 spec marks it as deprecated, and Claude registers a new client on every fresh connection, so a busy server can end up with thousands of them.&lt;/p&gt;

&lt;p&gt;If your provider supports metadata documents, use those. If it doesn't, dynamic registration works for now.&lt;/p&gt;

&lt;p&gt;Whichever you choose, register the right redirect addresses. Claude on the web, desktop and mobile uses &lt;code&gt;https://claude.ai/api/mcp/auth_callback&lt;/code&gt;. Claude Code signs in through your computer on a random local port, so accept &lt;code&gt;http://localhost/callback&lt;/code&gt; and &lt;code&gt;http://127.0.0.1/callback&lt;/code&gt; with any port. And show the redirect host clearly on your consent screen, so people can see who's asking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: make sure each token was meant for you
&lt;/h2&gt;

&lt;p&gt;During sign-in, the app tells your identity provider which server the token is for (the &lt;code&gt;resource&lt;/code&gt; parameter, &lt;a href="https://www.rfc-editor.org/rfc/rfc8707" rel="noopener noreferrer"&gt;RFC 8707&lt;/a&gt;). Put that into the token's audience. Then check every token on every request: the signature, the issuer, the expiry and the audience. A token meant for some other API has to be refused, even if it's otherwise valid.&lt;/p&gt;

&lt;p&gt;The spec is strict about one more thing: your server must never pass the token it received on to other services. If your MCP server calls your own API behind the scenes, it uses its own credentials or exchanges the token for a new one. Forwarding it is a known way to get confused-deputy bugs.&lt;/p&gt;

&lt;p&gt;Tokens go in the &lt;code&gt;Authorization: Bearer&lt;/code&gt; header only, never in the URL. And when a token is invalid or expired, answer &lt;code&gt;401&lt;/code&gt; so the app knows to refresh it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6: make refresh boring
&lt;/h2&gt;

&lt;p&gt;Nobody wants to sign in again every hour. Offer refresh tokens: Claude adds &lt;code&gt;offline_access&lt;/code&gt; to its request when your provider lists it, and refreshes up to five minutes before a token expires or as soon as it gets a &lt;code&gt;401&lt;/code&gt;. If the app registered through a metadata document or dynamic registration, rotate the refresh token on each use and send the new one in the same response. When a refresh token is no longer valid, answer with the standard &lt;code&gt;invalid_grant&lt;/code&gt; error rather than a custom one, so the app can recover cleanly.&lt;/p&gt;

&lt;p&gt;Two practical details. Your token endpoint has to accept ordinary form posts (&lt;code&gt;application/x-www-form-urlencoded&lt;/code&gt;), while registration uses JSON, so check both parsers. And be quick: Claude waits ten seconds for discovery, registration and token requests and thirty for refresh, then gives up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ChatGPT and Claude differ
&lt;/h2&gt;

&lt;p&gt;The two apps share the same foundation, but a few things work differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Claude&lt;/th&gt;
&lt;th&gt;ChatGPT&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What starts sign-in&lt;/td&gt;
&lt;td&gt;An HTTP &lt;code&gt;401&lt;/code&gt; with &lt;code&gt;WWW-Authenticate&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;securitySchemes&lt;/code&gt; on each tool, plus an error result carrying &lt;code&gt;_meta["mcp/www_authenticate"]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How the app registers&lt;/td&gt;
&lt;td&gt;Metadata document (when both values are advertised), a client you give Anthropic, or dynamic registration&lt;/td&gt;
&lt;td&gt;Metadata document preferred, dynamic registration or a predefined client&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other options&lt;/td&gt;
&lt;td&gt;A fixed API key in a header (beta, organization-wide) or credentials entered at connection time (on request)&lt;/td&gt;
&lt;td&gt;No API keys for public apps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Some tools without sign-in&lt;/td&gt;
&lt;td&gt;Yes ("lazy authentication")&lt;/td&gt;
&lt;td&gt;Yes ("mixed" auth)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The per-tool side of this is in &lt;a href="https://transica.dev/guides/mcp-per-tool-access" rel="noopener noreferrer"&gt;per-tool access&lt;/a&gt;. Directory sign-in rules: &lt;a href="https://transica.dev/guides/chatgpt-app-directory" rel="noopener noreferrer"&gt;ChatGPT&lt;/a&gt; and &lt;a href="https://transica.dev/guides/claude-connectors-directory" rel="noopener noreferrer"&gt;Claude&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to use your existing identity provider (sign-in through the middle)
&lt;/h2&gt;

&lt;p&gt;Pointing ChatGPT or Claude straight at the OAuth setup your web and mobile apps already use rarely works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wrong audience.&lt;/strong&gt; Your provider issues tokens for your API. The MCP server must refuse any token not issued for it, so a token for &lt;code&gt;api.example.com&lt;/code&gt; isn't a token for &lt;code&gt;mcp.example.com&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No passthrough.&lt;/strong&gt; Forwarding the app's token to your API is forbidden by the spec. A token leaked from one AI app would open your whole API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Registration doesn't fit.&lt;/strong&gt; The apps register themselves, by client ID metadata document or dynamic registration. Many providers support neither.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consent can't name the AI app.&lt;/strong&gt; Your provider's consent screen was written for your own apps. It can't name the AI app or list the tools that will act on the account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The fix is a second authorization server that belongs to the MCP server, with its own issuer at the MCP server's address, chained to your provider. To ChatGPT and Claude it's the only sign-in server. To your provider, the MCP server is one more OAuth client, like your mobile app. When someone connects:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The app gets a &lt;code&gt;401&lt;/code&gt;.&lt;/strong&gt; Its protected resource metadata names the MCP server's own authorization server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The app registers there&lt;/strong&gt;, by metadata document or dynamic registration. Your provider never needs to support either.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The person approves the AI app.&lt;/strong&gt; A consent screen names the app and lists its tools, before anything is sent to your provider. The MCP spec asks for this when a server signs in at a provider with one fixed client.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The person signs in with their usual login.&lt;/strong&gt; The MCP server sends them to your provider as an ordinary OAuth client, with its own PKCE, and checks the provider's &lt;code&gt;iss&lt;/code&gt; on the way back when one is sent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The MCP server learns who signed in.&lt;/strong&gt; It exchanges the code server to server and reads the user ID from a verified ID token, the userinfo endpoint or a signed access token.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The app gets its own code.&lt;/strong&gt; It exchanges it with its PKCE verifier and the &lt;code&gt;resource&lt;/code&gt; parameter for a token whose audience is that MCP server only.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each tool call&lt;/strong&gt; checks the app's token, finds the grant behind it and calls your API with your provider's token, for that call only.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The person sees one consent screen, then the login page they already know. No second account is created.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Party&lt;/th&gt;
&lt;th&gt;Holds&lt;/th&gt;
&lt;th&gt;Works at&lt;/th&gt;
&lt;th&gt;Lifetime&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT or Claude&lt;/td&gt;
&lt;td&gt;The MCP server's access and refresh tokens&lt;/td&gt;
&lt;td&gt;That MCP server only&lt;/td&gt;
&lt;td&gt;Access up to 1 hour, never past the provider token behind it; refresh token rotated on use; grant lapses after 90 days unused&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP server&lt;/td&gt;
&lt;td&gt;Your provider's access and refresh tokens, encrypted&lt;/td&gt;
&lt;td&gt;Your API&lt;/td&gt;
&lt;td&gt;Provider token refreshed with the app's refresh once under 10 minutes remain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your API&lt;/td&gt;
&lt;td&gt;Your provider's token, as from your own apps&lt;/td&gt;
&lt;td&gt;Your API&lt;/td&gt;
&lt;td&gt;Your provider's settings&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A token leaked from an AI app opens only that MCP server, and your API only ever sees your provider's tokens. Setting your provider's token audience to the MCP server fixes the first problem only: registration and consent still don't fit.&lt;/p&gt;

&lt;p&gt;Your side of the setup: your provider's issuer (its metadata supplies the endpoints), a client there for the MCP server (its own metadata document, dynamic registration, or a client you create with the MCP server's callback allowed), and an API that accepts your provider's tokens, as it already does for your web app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;All read on 4 November 2026.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://modelcontextprotocol.io/specification/latest/basic/authorization" rel="noopener noreferrer"&gt;MCP authorization specification (2026-07-28)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;OpenAI: &lt;a href="https://developers.openai.com/plugins/build/auth" rel="noopener noreferrer"&gt;Authentication&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic: &lt;a href="https://claude.com/docs/connectors/building/authentication" rel="noopener noreferrer"&gt;Connector authentication&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Auth0: &lt;a href="https://auth0.com/ai/docs/mcp/guides/registering-your-mcp-client-application" rel="noopener noreferrer"&gt;Registering MCP clients&lt;/a&gt;, &lt;a href="https://auth0.com/docs/get-started/applications/dynamic-client-registration" rel="noopener noreferrer"&gt;Dynamic client registration&lt;/a&gt;, &lt;a href="https://auth0.com/ai/docs/mcp/guides/resource-param-compatibility-profile" rel="noopener noreferrer"&gt;Resource Parameter Compatibility Profile&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Okta: &lt;a href="https://support.okta.com/help/s/article/oidc-does-okta-support-the-resource-parameter-and-audience-switching" rel="noopener noreferrer"&gt;Resource parameter and audience switching&lt;/a&gt;, &lt;a href="https://help.okta.com/oie/en-us/content/topics/apps/apps-cimd-about.htm" rel="noopener noreferrer"&gt;Client ID metadata documents&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Clerk: &lt;a href="https://clerk.com/docs/nextjs/guides/ai/mcp/build-mcp-server" rel="noopener noreferrer"&gt;Build an MCP server&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Supabase: &lt;a href="https://supabase.com/docs/guides/auth/oauth-server" rel="noopener noreferrer"&gt;OAuth 2.1 server&lt;/a&gt;, &lt;a href="https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication" rel="noopener noreferrer"&gt;MCP authentication&lt;/a&gt;, &lt;a href="https://supabase.com/changelog/38022-oauth-2-1-server-capabilities-for-supabase-auth" rel="noopener noreferrer"&gt;OAuth 2.1 server status&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://transica.dev" rel="noopener noreferrer"&gt;transica.dev&lt;/a&gt;. I wrote it with help from an AI model and checked each claim against the linked sources.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>oauth</category>
      <category>security</category>
      <category>chatgpt</category>
    </item>
  </channel>
</rss>
