Host Terminal MCP
The Host Terminal MCP server enables AI assistants to securely execute terminal commands on your local machine with configurable permission controls.
Core Tools:
Execute terminal commands (
execute_command): Run shell commands with optional working directory; read-only commands (e.g.,ls,git status) are allowed by defaultChange working directory (
change_directory): Set the working directory for subsequent commands (absolute or relative paths)Get current directory (
get_current_directory): Retrieve the current working directoryApprove pending commands (
approve_command): Inaskmode, interactively approve/deny unlisted commands, with option to permanently add them to the allowlistInspect permissions (
get_permission_status): View current mode and allowed command patternsSet permission mode (
set_permission_mode): Switch modes session-only or persist to config
Permission Modes:
allowlist(safest): Only pre-approved commands runask(recommended): Prompts a human for approval of unlisted commandsallow_all(dangerous): Runs everything except blocked commands
Additional Features:
Enforces a built-in blocklist of dangerous commands (e.g.,
rm -rf,sudo,reboot) regardless of modeConfigurable allowed commands via YAML (patterns or regex), allowed directories, environment variables, execution timeouts, and output size limits
HTTP transport for external services to access terminal functionality
Built-in "skills" to guide AI terminal usage patterns
Slash commands (
/shell,/git,/permissions) for direct controlIntegrates with Claude Desktop/Co-work via MCP protocol
Enables monitoring and management of Docker containers and environments via terminal command execution.
Allows executing Git commands to check repository status, view logs, perform diffs, and manage branches within the host environment.
Provides capabilities to interact with the npm package manager for listing installed packages and viewing package information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Host Terminal MCPshow me the git status of this repository"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Host Terminal MCP
An MCP server that lets AI assistants run terminal commands on your machine with permission controls. Built for Claude Desktop / Co-work and any MCP-compatible client.
How It Works
You (in Co-work) Your Mac
───────────────── ─────────
"run git status"
│
▼
Claude (cloud)
│ MCP tool call:
│ execute_command("git status")
▼
Claude Desktop (local)
│ forwards via stdio pipe
▼
host-terminal-mcp ◄── this project
│ 1. permission check ✅
│ 2. /bin/bash -c "git status"
▼
Terminal output flows back up the chainClaude Desktop spawns host-terminal-mcp as a child process and communicates over stdin/stdout using the MCP protocol. There is no network server involved — it's a local pipe.
Related MCP server: Terminal MCP Server
Setup for Co-work
1. Install
uv tool install host-terminal-mcpOr with pip:
pip install host-terminal-mcp2. Configure Claude Desktop
Add the MCP server to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Important: Claude Desktop runs with a minimal PATH (
/usr/local/bin,/usr/bin,/bin,/usr/sbin,/sbin,/opt/homebrew/bin). If you installed withuv tool installorpip install --user, the binary is likely in~/.local/bin/which is not in Claude Desktop's PATH. Use the full absolute path to the binary to avoid "No such file or directory" errors.
Find your binary path:
which host-terminal-mcp
# Example output: /Users/you/.local/bin/host-terminal-mcpThen use that path in the config:
{
"mcpServers": {
"host-terminal": {
"command": "/Users/you/.local/bin/host-terminal-mcp"
}
}
}To start in ask mode (recommended — prompts you before running unlisted commands):
{
"mcpServers": {
"host-terminal": {
"command": "/Users/you/.local/bin/host-terminal-mcp",
"args": ["--mode", "ask"]
}
}
}Tip: If you installed globally to a system path (e.g.
/usr/local/bin/host-terminal-mcp), you can use just"command": "host-terminal-mcp"without the full path.
3. Restart Claude Desktop
Quit and reopen Claude Desktop. It will automatically spawn the host-terminal-mcp process. You can verify it's running:
ps aux | grep host-terminal-mcp4. Use it
Open a Co-work session in Claude.ai (or use Claude Desktop directly) and ask:
"List files in my home directory"
"Show git status in ~/projects/myapp"
"What's running on port 3000?"
"Run the tests for this project"
Why This Tool
Terminal access with guard rails. Three permission modes let you choose the right level of access — a locked-down allowlist for read-only commands, an ask mode that prompts you for real-time approval using MCP elicitation, or an unrestricted mode for sandboxed environments.
Skills that teach the AI how to use the terminal. The plugin ships with skills — structured guides that Claude reads at runtime. A codebase explorer skill teaches project navigation patterns (directory structure, manifest detection, dependency tracing). A terminal workflows skill teaches safe shell execution (command chaining, error handling, process management). Claude doesn't just get access — it gets expertise.
Slash commands and connectors. Built-in commands like /shell, /git, and /permissions give you direct control. A connector system (~~terminal) lets other plugins reference terminal access without being tied to a specific MCP implementation — swap in SSH, Docker, or a cloud shell without changing your workflows.
Permission Modes
Mode | Behavior | Safety |
| Only pre-approved read-only commands run | Safest |
| Prompts you for approval on unlisted commands | Recommended for power users |
| Everything runs except blocked commands | Dangerous |
How ask Mode Works
When Claude tries to run a command not in the allow list, the server uses MCP elicitation to prompt you (the human) directly in the Claude Desktop UI:
┌─────────────────────────────────────────────┐
│ The AI wants to run a command that is not │
│ in the allow list: │
│ │
│ npm install │
│ │
│ Do you approve? │
│ │
│ [✓] Approve this command? │
│ [✓] Add to allowed list permanently? │
│ │
│ [ Cancel ] [ Submit ] │
└─────────────────────────────────────────────┘Approve — runs the command for this session
Add to allowed list permanently — saves the command to your config file so you're never asked again
Cancel/Decline — command is blocked
This is a real human-in-the-loop: Claude cannot approve commands on its own.
Note: Elicitation requires MCP client support. If your client doesn't support it, unlisted commands are rejected with a message telling you to add them to the config file.
Permission check order: blocked (always wins) > allowed > session-approved > mode decision
Default Allowed Commands
These commands (and their arguments) are allowed out of the box:
File listing & navigation:
ls, ll, la, pwd, tree, find, locate, which, whereis, file
File viewing:
cat, head, tail, less, more, bat, wc
Search:
grep, rg, ag, ack, fzf
Git (read-only):
git status, git log, git diff, git show, git branch, git remote, git tag, git stash list, git rev-parse, git config --get, git config --list, git blame, git shortlog, git describe
System info:
uname, hostname, whoami, id, date, uptime, df, du, free, top -l 1, ps
Network (read-only):
ping -c, curl -I, curl --head, dig, nslookup, host, ifconfig, ip addr, netstat, ss
Package managers (info only):
npm list, npm ls, npm view, npm show, npm outdated, pip list, pip show, pip freeze, brew list, brew info, apt list, dpkg -l
Dev tool versions:
python --version, python3 --version, node --version, npm --version, cargo --version, rustc --version, go version, java --version, javac --version, ruby --version, docker --version
Docker (read-only):
docker ps, docker images, docker logs
Data processing:
jq, yq
Misc:
man, help, type, stat, md5sum, sha256sum, shasum
Always Blocked Commands
These are blocked regardless of permission mode:
Pattern | Reason |
| Recursive delete |
| Format/overwrite disk |
| Arbitrary command execution |
| Fork bomb |
| Overwrite disk device |
| Dangerous permission changes |
| Privilege escalation |
| System control |
| Process control |
| Network attacks |
| Sensitive credential access |
| System file access |
| History/credential wiping |
Configuration
Config file: ~/.config/host-terminal-mcp/config.yaml
# Generate a default config file
host-terminal-mcp --init-configAdd custom allowed commands
allowed_commands:
- pattern: "docker compose logs"
description: "Docker Compose service logs"
- pattern: "docker compose ps"
description: "Docker Compose service status"
- pattern: "npm install"
description: "Install npm packages"
# Use regex for flexible matching
- pattern: "^kubectl get "
description: "Kubernetes get resources"
is_regex: trueOther options
permission_mode: allowlist # allowlist | ask | allow_all
timeout_seconds: 300 # Max command execution time
max_output_size: 100000 # Max output chars (truncated beyond this)
shell: /bin/bash # Shell to use
allowed_directories: # Commands restricted to these dirs
- /Users/me
environment_passthrough: # Env vars passed to commands
- PATH
- HOME
- USER
- LANG
- LC_ALLHTTP Transport
For external services (e.g. a chatbot in Docker) that need to call your machine over the network:
# Install with HTTP extras
uv tool install 'host-terminal-mcp[http]'
# Start
host-terminal-mcp --http --port 8099
# Or in background
nohup host-terminal-mcp --http --port 8099 --mode ask > /tmp/host-terminal-mcp.log 2>&1 &Endpoints
Endpoint | Method | Purpose |
| GET | Health check |
| POST | Run a command |
| POST | Change working directory |
| GET | Get current directory |
| GET | Get permission config |
Example
curl -X POST http://localhost:8099/execute \
-H "Content-Type: application/json" \
-d '{"command": "docker compose ps", "working_directory": "/path/to/project"}'Architecture
src/host_terminal_mcp/
├── server.py ← MCP stdio server, tool handlers, elicitation
├── http_server.py ← Alternative HTTP/REST transport (FastAPI)
├── config.py ← Permission rules, allowlist/blocklist, YAML config
└── executor.py ← Runs commands via asyncio subprocessTools exposed to the AI:
Tool | Description |
| Run a shell command (main tool) |
| Change working directory |
| Get current working directory |
| Inspect current permissions |
| Change permission mode |
Development
git clone https://github.com/ankitaa186/host-terminal-mcp.git
cd host-terminal-mcp
make install # Install all deps (venv auto-created)
make test # Run tests
make lint # Run linters
make format # Format code
make run # Run stdio server (foreground)
make run MODE=ask # Run in ask mode
make inspect # Test with MCP Inspector
make help # Show all targetsFrom source with Claude Desktop
{
"mcpServers": {
"host-terminal": {
"command": "uv",
"args": ["run", "--directory", "/path/to/host-terminal-mcp", "host-terminal-mcp"]
}
}
}Disclaimer
This software executes shell commands on your computer as directed by an AI model. AI models can behave unpredictably. Although permission controls (allowlist, blocklist, human-in-the-loop approval) are provided, they are offered on a best-effort basis and cannot guarantee safety. In particular, AI models may attempt to bypass permission controls — for example, by calling tool APIs to self-approve commands or by crafting inputs that circumvent the allowlist. The ask mode depends on the MCP client correctly presenting approval prompts to a human; not all clients do so, and this project has no control over client behavior. By installing or using this software you acknowledge that: (1) you are solely responsible for every command that runs on your system, (2) the authors and contributors disclaim all liability for any damage, data loss, security breach, or other harm arising from its use, (3) permission controls are a best-effort safeguard, not a security boundary, and (4) this software is provided "AS IS" without warranties of any kind, as stated in the Apache 2.0 License. Do not run this tool on production systems or systems containing sensitive data without understanding the risks.
License
Apache-2.0 — see LICENSE for the full text, including the warranty disclaimer and limitation of liability.
Available Tools
6 toolsapprove_commandA
Approve a command that requires permission. This is used when permission_mode is 'ask' and a command is not in the allow list. The command will be approved for this session only.
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The exact command to approve | |
| approve | Yes | Whether to approve (true) or deny (false) the command |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: the tool is for approving/denying commands, it's session-specific ('for this session only'), and it operates under specific conditions. However, it lacks details on error handling, response format, or side effects, which are important for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose in the first sentence, followed by usage context and behavioral detail. Every sentence adds value without redundancy, making it efficient and well-structured for an AI agent.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (mutation with 2 parameters) and no annotations or output schema, the description is fairly complete. It covers purpose, usage conditions, and session-limited behavior, but lacks details on return values or error cases, which could be helpful for full transparency.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters (command and approve). The description adds context by explaining that 'command' is 'the exact command to approve' and implies 'approve' controls approval/denial, but this doesn't significantly enhance the schema's information. Baseline 3 is appropriate as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('approve a command') and the resource ('command that requires permission'), distinguishing it from siblings like execute_command or set_permission_mode. It explicitly mentions the condition 'when permission_mode is 'ask' and a command is not in the allow list,' which adds precision.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly states when to use this tool: 'when permission_mode is 'ask' and a command is not in the allow list.' It implies alternatives by referencing the allow list and permission_mode, though it doesn't name specific sibling tools like set_permission_mode. This provides clear contextual guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
change_directoryB
Change the current working directory for subsequent commands.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The directory path to change to (absolute or relative) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool changes the directory 'for subsequent commands', which implies state mutation, but doesn't address permissions needed, error conditions (e.g., invalid paths), or whether the change persists. This leaves significant gaps for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose without unnecessary details. Every word earns its place, making it highly concise and well-structured for quick comprehension.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (state-changing with one parameter) and lack of annotations or output schema, the description is minimally adequate. It explains what the tool does but lacks details on behavior, errors, or integration with siblings, leaving room for improvement in completeness.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds no parameter-specific information beyond what's in the schema, which has 100% coverage and fully documents the 'path' parameter. This meets the baseline of 3, as the schema adequately handles parameter semantics without requiring description compensation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('change') and resource ('current working directory'), making it immediately understandable. It doesn't explicitly distinguish from sibling tools like 'get_current_directory', but the verb 'change' versus 'get' provides implicit differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'get_current_directory' or 'execute_command'. It mentions 'for subsequent commands' which hints at context, but offers no explicit when/when-not rules or prerequisites for usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
execute_commandA
Execute a terminal command on the host machine. Commands are subject to permission controls based on configuration. Read-only commands like ls, cat, git status are generally allowed by default. Use 'cd' as a separate command or specify working_directory parameter.
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command to execute | |
| working_directory | No | Optional working directory for the command (defaults to current directory) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively adds context beyond what the input schema offers by explaining permission controls based on configuration, default allowances for read-only commands, and guidance on using 'cd'. However, it lacks details on potential side effects (e.g., destructive commands), error handling, or output format, which are important for a command execution tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose, followed by essential usage notes in three concise sentences. Each sentence earns its place by addressing key aspects: execution context, permission controls, allowed commands, and handling of 'cd'. There is no redundant or verbose language, making it highly efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of executing terminal commands (which can have security and side-effect implications), no annotations, and no output schema, the description is moderately complete. It covers purpose, basic usage, and permissions but lacks details on output structure, error cases, or advanced behavioral traits. This leaves gaps for an AI agent to fully understand the tool's behavior in practice.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, providing clear documentation for both parameters. The description adds minimal value beyond the schema by implying that 'working_directory' can be used as an alternative to 'cd', but it does not elaborate on parameter interactions, constraints, or examples. Baseline 3 is appropriate since the schema handles most of the parameter semantics.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('execute a terminal command') and resource ('on the host machine'), distinguishing it from siblings like 'approve_command' (which suggests a permission step) or 'change_directory' (which focuses on navigation). It provides a concrete verb+resource combination that leaves no ambiguity about the tool's core function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description offers clear context for usage by mentioning that 'read-only commands like ls, cat, git status are generally allowed by default' and advises on handling 'cd' via a separate command or the working_directory parameter. However, it does not explicitly state when to use this tool versus alternatives like 'approve_command' or 'change_directory', nor does it provide exclusions or prerequisites beyond the implied permission controls.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_current_directoryB
Get the current working directory.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read-only operation ('Get') but doesn't specify whether it requires permissions, returns a specific format, or has any side effects. The description is minimal but accurate for a simple query tool, though more context would be helpful.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It is front-loaded and efficiently communicates the core function, making it easy for an agent to parse and understand quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no annotations, no output schema), the description is adequate but minimal. It states what the tool does but lacks details on return values or behavioral context, which could be useful for integration. It meets the minimum viable threshold for such a straightforward tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description doesn't need to add parameter details, so it meets the baseline expectation for a parameterless tool. No additional semantic value is required or provided.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Get') and resource ('current working directory'), making it immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'change_directory' or 'execute_command', which prevents a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'change_directory' or 'execute_command'. It lacks any context about prerequisites, typical use cases, or exclusions, leaving the agent to infer usage from the tool name alone.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_permission_statusA
Get information about the current permission mode and allowed commands.
| Name | Required | Description | Default |
|---|---|---|---|
| show_all_allowed | No | Whether to show all allowed command patterns (default: false for brevity) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It indicates this is a read-only informational tool (consistent with 'get' terminology), but doesn't specify authentication requirements, rate limits, error conditions, or what the output format looks like. The description adds basic context about what information is retrieved but lacks detailed behavioral traits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that clearly states the tool's purpose without unnecessary words. It's appropriately sized for a simple informational tool and front-loads the essential information. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple informational tool with one optional parameter and no output schema, the description provides adequate context about what information is retrieved. However, without annotations or output schema, it doesn't specify the response format or structure, leaving some ambiguity about what exactly will be returned. The description is complete enough for basic understanding but could be more comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with the single parameter 'show_all_allowed' fully documented in the schema. The description doesn't add any parameter-specific information beyond what the schema already provides, so it meets the baseline expectation when schema coverage is complete.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Get') and resource ('information about the current permission mode and allowed commands'). It distinguishes itself from siblings like 'set_permission_mode' (which modifies permissions) and 'execute_command' (which runs commands). However, it doesn't explicitly differentiate from all siblings (e.g., 'get_current_directory' is also informational).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when needing to check permission status, but doesn't explicitly state when to use this tool versus alternatives like 'approve_command' or 'set_permission_mode'. No guidance is provided on prerequisites or exclusions, leaving usage context somewhat implied rather than clearly defined.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
set_permission_modeA
Change the permission mode. Modes: 'allowlist' (only allow listed commands), 'ask' (prompt for unlisted commands), 'allow_all' (allow all commands - use with caution!)
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The permission mode to set | |
| persist | No | Whether to save this mode to config file (default: false, session only) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It explains what the tool does (changes permission modes) and provides caution about 'allow_all', but doesn't disclose important behavioral aspects like whether this requires admin privileges, if changes are immediately effective, what happens to pending commands during mode transition, or error conditions. The description adds value but leaves significant behavioral gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is perfectly front-loaded with the core purpose in the first sentence, followed by specific mode explanations. Every sentence earns its place by providing essential information about the three modes and their implications. No wasted words or redundant information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given a mutation tool with no annotations and no output schema, the description should do more to explain behavioral implications, error conditions, and system impact. While it adequately explains what the tool does and what the modes mean, it lacks information about permissions required, immediate vs delayed effects, and what the tool returns. The description is complete enough for basic understanding but insufficient for safe, informed use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 100% schema description coverage, the baseline is 3. The description adds meaningful context by explaining what each mode value means ('allowlist' = only allow listed commands, 'ask' = prompt for unlisted commands, 'allow_all' = allow all commands), which provides semantic understanding beyond the schema's enum listing. However, it doesn't mention the 'persist' parameter at all, leaving that detail solely to the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Change the permission mode') and resource ('permission mode'), with explicit enumeration of the three possible modes. It distinguishes this tool from sibling tools like 'get_permission_status' (which reads rather than changes) and 'approve_command' (which handles individual commands rather than system-wide modes).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context about when to use each mode ('allowlist' for only listed commands, 'ask' for prompting, 'allow_all' for allowing all commands), including a caution for 'allow_all'. However, it doesn't explicitly state when NOT to use this tool versus alternatives like 'approve_command' for individual command approvals or 'get_permission_status' for checking current mode.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
6 tool updates
v0.1.0- First observed
approve_command - First observed
change_directory - First observed
execute_command - First observed
get_current_directory - First observed
get_permission_status - First observed
set_permission_mode
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap. approve_command handles permissions, change_directory and get_current_directory manage directories, execute_command runs commands, and get_permission_status and set_permission_mode control permission settings. The descriptions clearly differentiate their functions.
All tool names follow a consistent verb_noun pattern (e.g., approve_command, change_directory, execute_command). The naming is uniform across all six tools, using snake_case throughout without any deviations or mixed conventions.
With 6 tools, this is well-scoped for a terminal management server. Each tool serves a specific, necessary function in the domain of executing commands and managing permissions, with no redundant or missing tools that would suggest an inappropriate count.
The tool set provides complete coverage for terminal operations and permission management. It includes command execution, directory navigation, permission status checks, and mode settings, with no obvious gaps. The domain is fully covered, allowing agents to handle all core workflows without dead ends.
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Runtime permission, approval, and audit layer for AI agent tool execution.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
- emisarOAuthdev.emisar
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Related MCP Servers
- AlicenseAqualityFmaintenanceAllows AI assistants to safely execute common Unix/macOS terminal commands through a controlled interface with comprehensive security features.810MIT
- FlicenseNot gradedqualityDmaintenanceEnables safe execution of terminal commands across different shells (bash, cmd, PowerShell) with configurable timeouts, working directories, and resource limits for command-line operations through AI assistants.-
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with direct terminal access to execute commands, manage files, and run persistent REPL sessions. It features automated installation scripts that educate AI assistants on its capabilities for seamless integration.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to securely execute remote SSH commands, perform file transfers, and monitor system status through a standardized interface. It features robust security controls including command whitelisting, blacklisting, and credential isolation to prevent unauthorized operations.1022MIT