Context Propagation

sqry context-propagation finds Go context.Context plumbing breaks using the same graph-backed query exposed through the context_propagation MCP tool.

What It Detects

CLI Usage

sqry context-propagation [PATH] [--scope <SCOPE>] [--mode <MODE>] [--limit <N>] [--json]
FlagDefaultDescription
[PATH].Workspace path. sqry walks up to the nearest .sqry-index when needed.
--scopeglobalglobal or file:<path>. File paths can be relative to the workspace root.
--modeallall, break-site, unthreaded-goroutine, or http-handler-leak.
--limit1000Maximum number of leak records to print.
--json, -joffEmit machine-readable JSON.

Examples

# All context propagation findings in the workspace
sqry context-propagation

# Only HTTP-handler leaks
sqry context-propagation --mode http-handler-leak

# Restrict to one file
sqry context-propagation --scope file:src/handler.go

# JSON for CI or agent workflows
sqry context-propagation --json --limit 10

MCP Tool

The standalone MCP server exposes the same analysis as context_propagation.

Key parameters: path (string), scope (object, default { "kind": "global" }, or { "kind": "file", "path": "src/handler.go" }), mode (all/break_site/unthreaded_goroutine/http_handler_leak, default all), max_results (int, default 200).

Example:

{
  "path": ".",
  "scope": { "kind": "file", "path": "src/handler.go" },
  "mode": "http_handler_leak",
  "max_results": 50
}

Zero findings is a successful result, not an error.