Title: diag(mcp): per-request phase logging on the streamable-HTTP transport by waleedlatif1 · Pull Request #5819 · simstudioai/sim · GitHub
Open Graph Title: diag(mcp): per-request phase logging on the streamable-HTTP transport by waleedlatif1 · Pull Request #5819 · simstudioai/sim
X Title: diag(mcp): per-request phase logging on the streamable-HTTP transport by waleedlatif1 · Pull Request #5819 · simstudioai/sim
Description: Summary Adds per-request phase logging to the pinned MCP transport fetch (createPinnedMcpFetch), mirroring the OAuth guarded-fetch instrumentation that isolated the /oauth/start body stall. Logs each transport request (host + method), the response headers with TTFB, and failures. Why: the logs prove our client's first connect to these servers consistently hangs to the 30s client timeout while a normal client's initialize returns in ~120 ms — but we haven't isolated where it stalls. This logging shows whether the first connect hangs before response headers (connect/request phase) or after (the SDK's stream/body read) — the data needed to root-cause it before touching the single-IP-pin SSRF control. Type of Change Diagnostic (temporary logging; no behavior change) Testing Type-check + biome clean. No behavior change — wraps the existing pinned fetch with logging only. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary Adds per-request phase logging to the pinned MCP transport fetch (createPinnedMcpFetch), mirroring the OAuth guarded-fetch instrumentation that isolated the /oauth/start body stall. Logs e...
X Description: Summary Adds per-request phase logging to the pinned MCP transport fetch (createPinnedMcpFetch), mirroring the OAuth guarded-fetch instrumentation that isolated the /oauth/start body stall. Logs e...
Opengraph URL: https://github.com/simstudioai/sim/pull/5819
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8c497f08-ea92-5f83-e521-90315c576ba6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E56E:33F7F9:7E11F5:B3B4EA:6A631756 |
| html-safe-nonce | 385c2f9a6827e5c5664a92384c150edfb804f68f69f723be68ea47c855a6319a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTZFOjMzRjdGOTo3RTExRjU6QjNCNEVBOjZBNjMxNzU2IiwidmlzaXRvcl9pZCI6IjY5ODYwMTYzOTY0MjMzOTE1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2ebe3344a1164abc5d44ccb1463dd3c3ab0bbbc072845e4a321782173ff1e83e |
| hovercard-subject-tag | pull_request:4103232793 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/simstudioai/sim/pull/5819/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary Adds per-request phase logging to the pinned MCP transport fetch (createPinnedMcpFetch), mirroring the OAuth guarded-fetch instrumentation that isolated the /oauth/start body stall. Logs e... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width