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.
Priority: Medium
Description
RunSCCinstats.go:47doesn't accept acontext.Context. If a client disconnects or a timeout fires, scc runs to completion anyway. The context passed toHandleStatsis 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.Contextas the first parameter toRunSCCand check for cancellation between processing steps, or run scc as a subprocess that can be killed via context cancellation.