Skip to content

No context propagation to scc in RunSCC #7

@dbravender

Description

@dbravender

Priority: Medium

Description

RunSCC in stats.go:47 doesn't accept a context.Context. If a client disconnects or a timeout fires, scc runs to completion anyway. The context passed to HandleStats is ignored for the actual scc execution.

Not urgent for a CLI-invoked MCP server, but worth fixing before this is used in longer-lived server contexts.

Suggested fix

Add context.Context as the first parameter to RunSCC and check for cancellation between processing steps, or run scc as a subprocess that can be killed via context cancellation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions