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=9222flag. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auto_claude-0.1.2.tar.gz.
File metadata
- Download URL: auto_claude-0.1.2.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c19966e222a381c238336d799b6f7360721466b86f97ea9ab80687ae06d8ece8
|
|
| MD5 |
d6bead42381b7535c06be79cbe1a9074
|
|
| BLAKE2b-256 |
694e389bf1f5997ac9ba96faac43cf2068c944b72f991b5df138cc2375465f4b
|
File details
Details for the file auto_claude-0.1.2-py3-none-any.whl.
File metadata
- Download URL: auto_claude-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9975779dbfcfb452f9ab9d526bb8a20dd62976a5be08af3271d4c819a163961
|
|
| MD5 |
898610d4c6167646062762920e94b7a2
|
|
| BLAKE2b-256 |
8fc02bda3d3004582a9f79145c81c656b8c2ae6aaab4bb625cbd0dc4bbc523a7
|