Skip to content

MCP readMessages ignores context — can hang forever #261

Description

@d0ugal

Summary

`internal/mcp/server.go:336-364`: the `readMessages` handler reads frames in an infinite loop but never checks `ctx.Done()`. Unlike `subscribe`, there's no cancellation path.

Found by: Claude (round 5 — R5-C04)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions