Skip to content

MCPIntegration reports stateless StreamableHTTP servers as mcp.transport "stdio" #7225

Closed

Description

@Snaylaker

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.64.0

Steps to Reproduce

  1. Serve an MCP server over StreamableHTTP with StreamableHTTPSessionManager(app=server, json_response=True, stateless=True), mounted in a Starlette app.

  2. Initialise the SDK with MCPIntegration().

  3. POST a tools/call request to the mount path and let the tool return normally.

  4. Inspect the resulting mcp.server span's attributes.

Versions: sentry-sdk==2.64.0, mcp==1.28.1, starlette==0.42.0, Python 3.13. The same result holds on mcp 2.x.

Expected Result

mcp.transport: "http". The server is reachable only over HTTP, so the transport should say so.

Actual Result

mcp.transport: "stdio" and network.transport: "pipe", with no mcp.session.id.

on our hosted MCP server, 100% of spans claim to be local stdio processes, and any query splitting local from hosted traffic on this attribute is silently meaningless.

Activity

  1. linear-code commented on Aug 20, 2026

    @linear-code
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 20, 2026
  3. alexander-alderman-webb commented on Aug 20, 2026

    @alexander-alderman-webb
    Collaborator

    Thanks @Snaylaker. We'll find a more principled way to determine the transport type.

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Aug 20, 2026
  5. Snaylaker commented on Aug 20, 2026

    @Snaylaker
    ContributorAuthor

    I left #7224 up as a stopgap in case it's useful, but happy to close it if you'd rather take an other direction.

  6. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 20, 2026
  7. added a commit that references this issue on Aug 24, 2026
    0a1762b
  8. added a commit that references this issue on Aug 25, 2026
    589f108
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions