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
Domain: github.com
{"@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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b81e02bb-fe9c-4402-5ea9-d7e8ac074477 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9730:2781FE:879D88:BE9485:6AFB6ED6 |
| html-safe-nonce | b60f1d4753cac629853f076a2dbdd72b0bd8c79785bbea9172ceb4dae35681cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMwOjI3ODFGRTo4NzlEODg6QkU5NDg1OjZBRkI2RUQ2IiwidmlzaXRvcl9pZCI6IjM0NDU0Mjg2ODUxMTA5OTY2OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b272f9a69286e4b61e5a55be7237fde099f9ad761143fe55dee3d97463d70409 |
| hovercard-subject-tag | issue:4202593571 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/3922/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7824e67ceb3e74380d9db79cb9e4c878a4b0ef8a2c73d6411bc67787eec9f7a5/simstudioai/sim/issues/3922 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7824e67ceb3e74380d9db79cb9e4c878a4b0ef8a2c73d6411bc67787eec9f7a5/simstudioai/sim/issues/3922 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nickyli98 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width