Get the FREE Ultimate OpenClaw Setup Guide →

claude_autoapprove

Autoapprove support for claude

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio pynesys-claude_autoapprove python -m claude_autoapprove

How to use

Claude AutoApprove is a CLI tool that automatically approves tool requests from Claude Desktop App according to your configured rules. It reads a local configuration to determine which tools/servers should be auto-approved and injects remote-debugging interactions to streamline your workflow while preserving granular control. You can set up permanent approvals for trusted servers and authorize per-chat decisions for others, helping to keep security intact across conversations. The server expects a port parameter to designate which debugging port Claude should expose, typically using the default 19222 if you don’t specify one.

To use it, run the CLI (after installation) and point Claude Desktop App to the tool’s remote debugging interface. The tool will apply your trusted list from claude_desktop_config.json and auto-approve matching tool requests when Claude attempts to call your configured servers. It supports macOS and Windows environments where Claude Desktop App is installed.

How to install

Prerequisites

  • Python 3.11 or newer
  • Claude Desktop App installed (macOS or Windows)

From PyPI (recommended)

  1. Install the package: pip install claude-autoapprove

From source (for development)

  1. Clone the repository
  2. Install in editable mode: pip install -e .

Usage

  1. Run the CLI with an optional port parameter (default is 19222): claude-autoapprove [port]

Notes

  • The tool will attempt to launch Claude Desktop App with remote debugging enabled if it isn't already running.
  • Ensure Claude Desktop App’s remote debugging port is accessible to the tool (default 19222).
  • Edit the claude_desktop_config.json file (located in your user profile) to configure trusted servers and autoapprove rules.

Additional notes

  • Security: The remote debugging port exposes control to any app on localhost. Use strong trusted configurations and limit exposure.
  • The configuration file (claude_desktop_config.json) must have an mcpServers section listing servers that are allowed to auto-approve.
  • The tool supports granular control via per-server and per-chat settings; changes in newer chats can be reflected by updating the config.
  • If you need to temporarily disable auto-approval, adjust the autoapprove lists or remove a server from the config.
  • If you encounter issues, ensure Claude Desktop App is compatible with remote debugging and that the port you provide is not in use by another process.

Related MCP Servers

Sponsor this space

Reach thousands of developers