tool: terminator #32

Open
opened 2026-08-11 22:16:03 +00:00 by prskr · 1 comment
Owner

Create a tool that acts both as an MCP and an agent hook (e.g. for Claude Code) and allows to validate terminal commands in a parsed way so it's not as annoying anymore to approve every variation of some CLI if an LLM decides to set an env variable (prefixing the command) even though it is already approved 4 times before.

// run MCP - STDIO
terminator mcp

// run MCP - HTTP
terminator mcp serve

// claude agent hook
terminator hook claude

Shell parsing can be implemented with github.com/mvdan/sh, similar to github.com/andresthor/cmd-line-mcp grouping commands into read / write / system / code-execution.

Idea for later: sandbox code-execution with the help of containers e.g. based on interpreter

Create a tool that acts both as an MCP and an agent hook (e.g. for Claude Code) and allows to validate terminal commands in a parsed way so it's not as annoying anymore to approve every variation of some CLI if an LLM decides to set an env variable (prefixing the command) even though it is already approved 4 times before. ```bash // run MCP - STDIO terminator mcp // run MCP - HTTP terminator mcp serve // claude agent hook terminator hook claude ``` Shell parsing can be implemented with [github.com/mvdan/sh](https://github.com/mvdan/sh), similar to [github.com/andresthor/cmd-line-mcp](https://github.com/andresthor/cmd-line-mcp) grouping commands into `read` / `write` / `system` / `code-execution`. Idea for later: sandbox `code-execution` with the help of containers e.g. based on interpreter
Author
Owner

MCP feature to consent mid-session: “Elicitation”

MCP feature to consent mid-session: “Elicitation”
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prskr/tools#32
No description provided.