# internal/adapters/mcp/finalize

Package finalize exposes the host-facing finalize MCP transport.

## Run

```go
func Run(ctx context.Context, stdin io.Reader, stdout io.Writer, stderr io.Writer, opts Options) error
```

Run serves finalize over MCP stdio. The adapter is transport-only: it invokes the scafld finalize CLI child process and never imports the finalize app.

## Options

```go
type Options struct {
	ScafldBinary string
	CWD          string
	OutPath      string
}
```

Options configures the host finalize MCP transport shim.

- `ScafldBinary: string`: 
- `CWD: string`: 
- `OutPath: string`:
