René's URL Explorer Experiment


Title: [BUG] MCP tool works in MCP Tool block but fails in Agent Block with Authentication failed · Issue #3922 · simstudioai/sim · GitHub

Open Graph Title: [BUG] MCP tool works in MCP Tool block but fails in Agent Block with Authentication failed · Issue #3922 · simstudioai/sim

X Title: [BUG] MCP tool works in MCP Tool block but fails in Agent Block with Authentication failed · Issue #3922 · simstudioai/sim

Description: Describe the bug Hi, I may be misunderstanding something about how MCP tools are supposed to work inside Agent blocks. This seems like the most standard MCP setup: external MCP server over HTTP auth provided via headers tool is discovera...

Open Graph Description: Describe the bug Hi, I may be misunderstanding something about how MCP tools are supposed to work inside Agent blocks. This seems like the most standard MCP setup: external MCP server over HTTP aut...

X Description: Describe the bug Hi, I may be misunderstanding something about how MCP tools are supposed to work inside Agent blocks. This seems like the most standard MCP setup: external MCP server over HTTP aut...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]  MCP tool works in MCP Tool block but fails in Agent Block with Authentication failed","articleBody":"**Describe the bug**\nHi, I may be misunderstanding something about how MCP tools are supposed to work inside Agent blocks.\n\nThis seems like the most standard MCP setup:\n  - external MCP server over HTTP\n  - auth provided via headers\n  - tool is discoverable and callable\n  - deterministic MCP Tool execution works\n\nBut when I give that exact same MCP tool to an Agent block, the Agent path consistently fails with Authentication failed.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n\n1. I configured an MCP server in Sim.\n2. The connection works in testing in MCP page, and direct invocation via MCP block.\n3. The same configured MCP tool, when attached to an Agent block, fails.\n\n**Expected behavior**\n\nMCP works in both Agent and MCP block\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\nWorkflow: \n\u003cimg width=\"591\" height=\"398\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5e6b103a-4feb-4f28-bc3b-73e870994b18\" />\n\nError from agent invocation of the tool: \n\n\u003cimg width=\"940\" height=\"555\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/68414de9-d6b1-43b6-a6d2-683d5eb58df3\" />\n\nWorks when the MCP Tool is directly triggered, cut down to screenshot to hide the response text, but the response is as I expect.\n\u003cimg width=\"947\" height=\"187\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f16484e3-baec-4fe7-b316-0e5cc9c6abe6\" />\n\n**Additional context**\nAdd any other context about the problem here.\n\nReproduced 100% of the time in both Cloud and Self-hosted version, tried a few different MCP servers","author":{"url":"https://github.com/nickyli98","@type":"Person","name":"nickyli98"},"datePublished":"2026-04-03T23:39:40Z","url":"https://github.com/simstudioai/sim/issues/3922"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b81e02bb-fe9c-4402-5ea9-d7e8ac074477
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9730:2781FE:879D88:BE9485:6AFB6ED6
html-safe-nonceb60f1d4753cac629853f076a2dbdd72b0bd8c79785bbea9172ceb4dae35681cf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMwOjI3ODFGRTo4NzlEODg6QkU5NDg1OjZBRkI2RUQ2IiwidmlzaXRvcl9pZCI6IjM0NDU0Mjg2ODUxMTA5OTY2OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb272f9a69286e4b61e5a55be7237fde099f9ad761143fe55dee3d97463d70409
hovercard-subject-tagissue:4202593571
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/3922/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7824e67ceb3e74380d9db79cb9e4c878a4b0ef8a2c73d6411bc67787eec9f7a5/simstudioai/sim/issues/3922
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7824e67ceb3e74380d9db79cb9e4c878a4b0ef8a2c73d6411bc67787eec9f7a5/simstudioai/sim/issues/3922
og:image:altDescribe the bug Hi, I may be misunderstanding something about how MCP tools are supposed to work inside Agent blocks. This seems like the most standard MCP setup: external MCP server over HTTP aut...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenickyli98
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
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
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/simstudioai/sim/issues/3922#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F3922
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F3922
Sign uphttps://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/3922
Reloadhttps://github.com/simstudioai/sim/issues/3922
Reloadhttps://github.com/simstudioai/sim/issues/3922
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
https://github.com/simstudioai/sim
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/3922
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/3922
[BUG] MCP tool works in MCP Tool block but fails in Agent Block with Authentication failedhttps://github.com/simstudioai/sim/issues/3922#top
bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/nickyli98
nickyli98https://github.com/nickyli98
on Apr 3, 2026https://github.com/simstudioai/sim/issues/3922#issue-4202593571
https://private-user-images.githubusercontent.com/23556797/573706265-5e6b103a-4feb-4f28-bc3b-73e870994b18.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTQ4NjMxMDYsIm5iZiI6MTc5NDg2MjgwNi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bugSomething isn't workinghttps://github.com/simstudioai/sim/issues?q=state%3Aopen%20label%3A%22bug%22
on Apr 3, 2026https://github.com/simstudioai/sim/issues/3922#event-24188050952
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
on Apr 4, 2026https://github.com/simstudioai/sim/issues/3922#issuecomment-4186609311
@nickyli98https://github.com/nickyli98
waleedlatif1https://github.com/waleedlatif1
completedhttps://github.com/simstudioai/sim/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 4, 2026https://github.com/simstudioai/sim/issues/3922#event-24193831471
Sign up for freehttps://github.com/signup?return_to=https://github.com/simstudioai/sim/issues/3922
Sign in to commenthttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/3922
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.