René's URL Explorer Experiment


Title: [BUG] MCP server "discover" step ignores configured static Authorization header, always requires OAuth · Issue #5665 · simstudioai/sim · GitHub

Open Graph Title: [BUG] MCP server "discover" step ignores configured static Authorization header, always requires OAuth · Issue #5665 · simstudioai/sim

X Title: [BUG] MCP server "discover" step ignores configured static Authorization header, always requires OAuth · Issue #5665 · simstudioai/sim

Description: When adding a new MCP server in Workspace Settings → MCP Tools, if the target server supports both a static Bearer-token header AND OAuth 2.1 discovery (per the MCP Authorization spec — i.e. it returns 401 + a WWW-Authenticate: Bearer re...

Open Graph Description: When adding a new MCP server in Workspace Settings → MCP Tools, if the target server supports both a static Bearer-token header AND OAuth 2.1 discovery (per the MCP Authorization spec — i.e. it ret...

X Description: When adding a new MCP server in Workspace Settings → MCP Tools, if the target server supports both a static Bearer-token header AND OAuth 2.1 discovery (per the MCP Authorization spec — i.e. it ret...

Opengraph URL: https://github.com/simstudioai/sim/issues/5665

X: @github

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] MCP server \"discover\" step ignores configured static Authorization header, always requires OAuth","articleBody":"\nWhen adding a new MCP server in Workspace Settings → MCP Tools, if the target server supports both a static Bearer-token header AND OAuth 2.1 discovery (per the MCP Authorization spec — i.e. it returns 401 + a `WWW-Authenticate: Bearer resource_metadata=\"...\"` header when called with no credentials), the \"Add New MCP Server\" flow fails with **\"OAuth re-authorization required\"** — even when a valid `Authorization: Bearer \u003ctoken\u003e` header has been explicitly configured in the form's \"Headers\" section.\n\nIt looks like the discovery/connection-test step probes the target server without attaching the configured headers, sees the server's OAuth-discovery response, and immediately concludes OAuth is mandatory — without ever retrying with the header the user configured.\n\n**To Reproduce**\n1. Go to Workspace Settings → MCP Tools → Add server.\n2. Enter a Server Name and Server URL for an MCP server that requires auth on every request and also supports OAuth 2.1 discovery (RFC 9728 protected resource metadata).\n3. In \"Headers\", add `Authorization` = `Bearer \u003ca token confirmed working directly against that server via curl/Postman\u003e`.\n4. Submit.\n5. The modal sticks on \"Adding…\" then fails; the MCP Tools page shows a red \"OAuth re-authorization required\" banner.\n6. In DevTools → Network, the request to `.../discover?workspaceId=...` returns `401` with body `{\"success\":false,\"error\":\"OAuth re-authorization required\"}`.\n\n**Expected behavior**\nIf a valid static Authorization header is explicitly configured for a connection, the discovery step should use it (or at least retry with it) instead of unconditionally requiring an interactive OAuth flow just because the target server also happens to support OAuth for clients that prefer it.\n\n**Additional context**\nConfirmed via direct testing (curl/Postman) that the exact same `Authorization: Bearer \u003ctoken\u003e` used in the Headers field authenticates successfully and returns valid tool results directly against the server — ruling out an invalid/expired token as the cause. The server tested against was `https://valta.co/api/mcp`, which supports both a static API-key Bearer token and full OAuth 2.1 (for clients like Claude.ai's connector) on the same endpoint. Happy to provide more detail or a test credential if useful for reproducing.","author":{"url":"https://github.com/Billionaire664","@type":"Person","name":"Billionaire664"},"datePublished":"2026-07-14T02:24:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":45},"url":"https://github.com/5665/sim/issues/5665"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1ce014b8-2b6c-cf54-6176-be659b3a7496
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA62:1C8D97:23BF22:30E639:6A62678B
html-safe-nonce73b3652004bb61527468cef5d47acc8ec23b6ca71cec79ae51a0256779e39455
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTYyOjFDOEQ5NzoyM0JGMjI6MzBFNjM5OjZBNjI2NzhCIiwidmlzaXRvcl9pZCI6IjMyOTQ3NjM5MDgxMjE5MTMyMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47af750e646b60adcefe4fcb8660a7b95496452f26fde149b2cfa8289f806165
hovercard-subject-tagissue:4879269934
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/5665/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8851c685f9e99fff4f6d48a34d5007bb11f72f1cb1eaeb5cea21e2bef9b6e9bf/simstudioai/sim/issues/5665
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8851c685f9e99fff4f6d48a34d5007bb11f72f1cb1eaeb5cea21e2bef9b6e9bf/simstudioai/sim/issues/5665
og:image:altWhen adding a new MCP server in Workspace Settings → MCP Tools, if the target server supports both a static Bearer-token header AND OAuth 2.1 discovery (per the MCP Authorization spec — i.e. it ret...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBillionaire664
hostnamegithub.com
expected-hostnamegithub.com
None194bddaed53c0eb07047629c520853f4208e77a17ff57428346485cc202e39f2
turbo-cache-controlno-preview
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec2862cf2db52f0c7f6cba3de21ffeeafe7c5456e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/simstudioai/sim/issues/5665#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F5665
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F5665
Sign up https://Github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://Github.com/simstudioai/sim/issues/5665
Reloadhttps://Github.com/simstudioai/sim/issues/5665
Reloadhttps://Github.com/simstudioai/sim/issues/5665
Please reload this pagehttps://Github.com/simstudioai/sim/issues/5665
simstudioai https://Github.com/simstudioai
simhttps://Github.com/simstudioai/sim
Notifications https://Github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://Github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://Github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://Github.com/simstudioai/sim
Issues 110 https://Github.com/simstudioai/sim/issues
Pull requests 134 https://Github.com/simstudioai/sim/pulls
Actions https://Github.com/simstudioai/sim/actions
Projects https://Github.com/simstudioai/sim/projects
Security and quality 0 https://Github.com/simstudioai/sim/security
Insights https://Github.com/simstudioai/sim/pulse
Code https://Github.com/simstudioai/sim
Issues https://Github.com/simstudioai/sim/issues
Pull requests https://Github.com/simstudioai/sim/pulls
Actions https://Github.com/simstudioai/sim/actions
Projects https://Github.com/simstudioai/sim/projects
Security and quality https://Github.com/simstudioai/sim/security
Insights https://Github.com/simstudioai/sim/pulse
[BUG] MCP server "discover" step ignores configured static Authorization header, always requires OAuthhttps://Github.com/simstudioai/sim/issues/5665#top
bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/Billionaire664
Billionaire664https://github.com/Billionaire664
on Jul 14, 2026https://github.com/simstudioai/sim/issues/5665#issue-4879269934
bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.