Cover image
Try Now
2025-04-14

自动支持克劳德

3 years

Works with Finder

0

Github Watches

1

Github Forks

0

Github Stars

claude-autoapprove

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

pip install claude-autoapprove

This is the recommended way for most users.

From source (for developers)

pip install -e .

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

Usage

claude-autoapprove [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

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • dmayboroda
  • 带有可配置容器的本地对话抹布

  • paulwing
  • 使用MCP服务创建的测试存储库

    Reviews

    1.5 (2)
    Avatar
    user_pc9rVkuy
    2025-04-24

    I recently started using claude_autoapprove by PyneSys and it has been a game-changer! The automation process is seamless and incredibly efficient. It significantly reduces the time spent on manual approvals, allowing me to focus on other crucial tasks. Highly recommend this product for anyone looking to streamline their workflow!

    Avatar
    user_qcT8izo6
    2025-04-24

    Claude_autoapprove by PyneSys is an exceptional MCP application that significantly streamlines the approval process. The seamless integration and user-friendly interface make it a must-have tool, reducing administrative work and increasing efficiency. It’s clear that substantial thought and expertise have gone into its development, making it a reliable choice for anyone looking to optimize their workflow. Highly recommended!