show_security_rules
Display allowed commands and operations to verify security policies in your CLI environment.
Instructions
Show what commands and operations are allowed in this environment.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "show_security_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/cli_mcp_server/server.py:518-545 (handler)Handler for the 'show_security_rules' tool that constructs and returns a text summary of the current security configuration, including allowed commands, flags, working directory, and limits.
elif name == "show_security_rules": commands_desc = ( "All commands allowed" if executor.security_config.allow_all_commands else ", ".join(sorted(executor.security_config.allowed_commands)) ) flags_desc = ( "All flags allowed" if executor.security_config.allow_all_flags else ", ".join(sorted(executor.security_config.allowed_flags)) ) security_info = ( "Security Configuration:\n" f"==================\n" f"Working Directory: {executor.allowed_dir}\n" f"\nAllowed Commands:\n" f"----------------\n" f"{commands_desc}\n" f"\nAllowed Flags:\n" f"-------------\n" f"{flags_desc}\n" f"\nSecurity Limits:\n" f"---------------\n" f"Max Command Length: {executor.security_config.max_command_length} characters\n" f"Command Timeout: {executor.security_config.command_timeout} seconds\n" ) return [types.TextContent(type="text", text=security_info)] - src/cli_mcp_server/server.py:458-467 (registration)Registration of the 'show_security_rules' tool in the list_tools handler, defining its name, description, and empty input schema.
types.Tool( name="show_security_rules", description=( "Show what commands and operations are allowed in this environment.\n" ), inputSchema={ "type": "object", "properties": {}, }, ), - src/cli_mcp_server/server.py:464-466 (schema)Input schema for the 'show_security_rules' tool, which is an empty object (no parameters required).
"type": "object", "properties": {}, },