# internal/adapters/cli/finalizestdio

Package finalizestdio serves finalize as an MCP tool over stdio, so an agent host can run the deterministic final gate through the scafld binary.

## Handler

```go
func Handler(binary string, stdin io.Reader) func(context.Context, []string, io.Writer, io.Writer) int
```

Handler returns a CLI-compatible MCP stdio server handler for finalize.
