Cover image
Try Now
2025-04-14

Support automatique pour Claude

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
  • Exécutez sans effort LLM Backends, API, Frontends et Services avec une seule commande.

  • 1Panel-dev
  • 🔥 1Panel fournit une interface Web intuitive et un serveur MCP pour gérer des sites Web, des fichiers, des conteneurs, des bases de données et des LLM sur un serveur Linux.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.

  • rulego
  • ⛓️RULEGO est un cadre de moteur de règle d'orchestration des composants de nouvelle génération légère, intégrée, intégrée et de nouvelle génération pour GO.

  • Byaidu
  • PDF Traduction de papier scientifique avec formats conservés - 基于 AI 完整保留排版的 PDF 文档全文双语翻译 , 支持 Google / Deepl / Olllama / Openai 等服务 , 提供 CLI / GUI / MCP / DOCKER / ZOTERO

  • sigoden
  • Créez facilement des outils et des agents LLM à l'aide de fonctions Plain Bash / JavaScript / Python.

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信 (企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Dify 、 Claude 、 GEMINI 、 XAI 、 PPIO 、 OLLAMA 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 ChatGlm 、 Sillytraven 、 MCP 等 LLM 的机器人 / Agent | Plateforme de bots de messagerie instantanée basés sur LLM, prend en charge Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack

  • hkr04
  • SDK C ++ MCP (Protocole de contexte modèle léger)

  • dmayboroda
  • Rag de conversation sur site avec des conteneurs configurables

  • modelscope
  • Commencez à construire des applications multi-agents LLM, plus facilement.

    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!