Skip to main content

auto-claude: A CLI tool that injects an auto-approve feature into the Claude Desktop App.

Project description

auto-claude

A CLI tool to automatically approve Claude Desktop App tool requests

Requirements

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

Installation

From PyPI with uv

uv tool install auto-claude

This is the recommended way for most users.

From source (for developers)

uv run src/auto_claude/auto_claude.py

Use this if you want to develop or modify the project locally.

Normal Usage

auto-claude

Or specify a port if you must:

auto-claude [port]

Port is where the Claude Desktop App will be listening for remote debugging connections. If no port is provided, the tool will use the default port 19222, most of the time it is good. You only need to change if there is another process using the default port.

  • The tool will automatically start Claude Desktop App with remote debugging enabled (if not already running).
  • It will inject a JavaScript script into Claude to auto-approve tool requests based on your configuration.
  • Supported platforms: macOS and Windows

How it works

  • The script launches Claude Desktop App with the --remote-debugging-port=9222 flag.
  • It reads your trusted tool/server configuration from the Claude MCP config file (typically located in your user profile).
  • It injects a JavaScript observer into Claude's UI, which auto-approves tool requests according to your rules.
  • Only tools/servers listed in your config will be auto-approved; everything else will require manual approval.

Configuration

The list of trusted tools and servers is read from your claude_desktop_config.json (the mcpServers section, autoapprove list).

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

You can edit this file directly or via the Claude Desktop App settings.

Example config

{
  "mcpServers": {
    "fetch": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/fetch", "--ignore-robots-txt", "--user-agent=\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36\""] ,
      "autoapprove": ["fetch"]
    },
    "brave-search": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "BRAVE_API_KEY", "mcp/brave-search"],
      "env": {"BRAVE_API_KEY": "..."},
      "autoapprove": ["brave_local_search", "brave_web_search"]
    }
    // ... more servers ...
  }
}

Features

  • Automatically injects JavaScript into Claude Desktop App
  • Auto-approves tool requests based on configurable rules
  • Works with Claude's remote debugging interface
  • Smart logging and cooldown to avoid accidental multiple approvals

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_claude-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_claude-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file auto_claude-0.1.0.tar.gz.

File metadata

  • Download URL: auto_claude-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for auto_claude-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0ee1ea4cd5b932c19c58c922ce6866442954ac6848c7edc4c581b3d69834823
MD5 ad0ad66c20533b278120be0c4f87e554
BLAKE2b-256 ee9e1bc4fca34a11e9d2f96763a55eb922733d3699485e32127596aaed70b835

See more details on using hashes here.

File details

Details for the file auto_claude-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_claude-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf88b89c8ddcb58a1a70b90f4bf07d1c73388107547ed9e4c78cb70911f6fdc8
MD5 2bfd4c6f541644100529626edb170529
BLAKE2b-256 d07b737d171acf9913d12b4b20c916f30c88e38359b55c4924fd369fc589cb2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page