Trestle

v1.4.1
com.trestlescan/trestle Checked 2 days ago Published 5 months ago

Detects leaked secrets (API keys, tokens, private keys) in source code.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

install

Install trestle into the current workspace (idempotent). Call once per project on first connection.

scan_path

Scan an existing file or directory on disk for secrets. For content not yet on disk, use scan_proposed instead. Errors begin with 'trestle:' and describe the next step.

ParameterTypeDescription
pathstring | null

scan_proposed

Scan proposed file content (not yet on disk) for secrets. Pass the FULL post-change file content (not a diff or snippet) and the workspace-relative file name it will be saved as (e.g. `src/api.ts`). The file extension drives language detection. Errors begin with 'trestle:' and describe the next step.

ParameterTypeDescription
content *string
file_name *string

status

Return trestle version info, the workspace path, and a short reminder of how to call the other tools. Use to verify trestle is healthy or to reorient mid-session.

uninstall

Remove trestle from the current workspace. Only call when the user asks for it.