0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ClineでMCPサーバのアクションをauto-approveする

0
Last updated at Posted at 2025-06-22

✅ 実現したいこと

ClinedMCPサーバのアクションを実行させる際に、Approveボタンをクリックしなくて済むようにしたい。(Auto-approveさせたい)

スクリーンショット 2025-06-22 13.41.24.png

✅ 設定

📝 Auto-approve設定

Auto-approveの設定で、use MCP serversをONにする。
mcp-server-auto-approve-1.png

📝 MCPサーバ設定

MCPサーバの設定で、action(tool)のAuto-approveをONにする。

方法1

actionを実行させる際に、Auto-approveをONにする。
mcp-server-auto-approve-2.png

方法2

MCPサーバ > ToolsでAuto-approveをONにする。
mcp-server-auto-approve-3.png

方法3

cline_mcp_settings.jsonautoApproveにaction(tool)を指定する。

cline_mcp_settings.json
{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": [
        "/xxx/weather/build/index.js"
      ],
      "autoApprove": [
        "get-forecast"
      ]
    }
  }
}

✅ 結果

Approveボタンをクリックしなくてもactionが実行されるようになった。
スクリーンショット 2025-06-22 14.24.50.png

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?