Claude Desktop と MCP サーバーのセットアップ、接続、検証、修復を Desktop Commander で行います。mcp.json ファイルや claude_desktop_config.json ファイルの検査と修正、MCP サーバーの接続、ローカル AI ツール(自分のパソコンで動作するAI関連ツール)の診断に対応しています。 次のような場合に使用: ユーザーが Claude Desktop、MCP サーバー、MCP 設定ファイル、またはローカル AI エージェント/ゲートウェイ(複数のAIツールを一括管理するシステム)のインストール、設定、接続、検証、または修復を希望する場合。 以下のような実際のお困りの場面で活躍します: - 「Claude が自分のツールを認識しない」 - 「MCP サーバーが表示されない」 - 「Claude でツールが読み込まれない」 - 「MCP サーバーを追加したい」 - 「MCP が接続されていない」 - 「Claude Desktop の設定を直してほしい」 - 「エージェントが応答しない」 - 「Ollama や LM Studio(注: ローカル実行型のAIモデル管理ツール)に接続したい」 - 「Claude Desktop を再起動したい」 OpenClaw や Hermes などのローカルエージェント管理ツールにも対応しています。
Set up, connect, validate, and repair Claude Desktop and MCP servers using Desktop Commander — inspecting and fixing mcp.json / claude_desktop_config.json, getting MCP servers to connect, and diagnosing local AI tooling. Use when a user wants to install, configure, connect, validate, or fix Claude Desktop, an MCP server, an MCP config file, or a local AI agent/gateway. Trigger on the symptoms that actually bring people in: "Claude can't see my tools", "my MCP server isn't showing up", "tools aren't loading in Claude", "add an MCP server", "my MCP isn't connecting", "fix my Claude Desktop config", "the agent won't respond", "wire up Ollama / LM Studio", "restart Claude Desktop". Also covers local agent gateways like OpenClaw and Hermes.
ユーザーが自分のマシンに AI ツールをインストール、設定、修復するのをサポートします。Desktop Commander(ファイルやターミナルを操作するツール)を使って作業します。通常は新規インストールではなく、既存のセットアップの調整とトラブルシューティングが中心です。何かが既にインストールされていて、一部壊れている状態を想定しています。
最初に OS とシェル(コマンド入力環境)を確認する
get_config で systemInfo と allowedDirectories を読んで、プラットフォームを確認してください。macOS、Windows、Linux でファイルパス、コマンド、設定の場所が異なるため、何も仮定する前に必ずプラットフォームを特定してください。
セットアップを始める前に、モデル/API キー(認証情報)が機能するか検証する
これらのセッションが失敗する最大の理由は、設定作業の後になって認証エラーや支払い不足が判明することです。早めに start_process で簡単なテスト呼び出し(プロバイダーへの curl コマンド)を実行して、API キーが無効か残高不足かをユーザーにはっきり伝えてください。
エラーメッセージを翻訳して説明し、そのままコピーしない ツールから生の JSON や HTTP エラーが返ってきたら、1 行で意味と次のステップを説明してください。モデルが見つからない、廃止された、レート制限を受けている、またはツール呼び出しに対応していない場合は、同じことを何度も試すのではなく、代わりになる具体的な方法を提案してください。
秘密情報(API キーなど)を絶対に出力に含めない
API キー、トークン、パスワードは正しい設定ファイルか .env ファイルに入れるだけで、チャットに繰り返して出力してはいけません。ユーザーが本物の秘密情報を貼り付けてきたら、警告を出して使用し、安全でない方法で共有された場合は回転(更新)を勧めてください。出力、ログ、まとめではすべての秘密情報をマスクしてください。
編集の前にバックアップを取る
start_process で設定ファイルを .bak にコピーしてから(cp file.json file.json.bak、Windows は copy)、edit_block で変更を加えてください。既存の設定が残ります。新規ファイルの場合だけ write_file を使ってください。編集後は start_process で JSON を解析して検証してください。
検証したら確認して、そこで止める
変更後は実際に動作確認をしてください。list_processes でプロセスが実行中か確認し、start_process(lsof/netstat)でポートがリッスン中か確認し、クライアントが再接続してツールが表示されるか確認してください。推測で成功を宣言しないでください。
繰り返し実行できるようにする うまくいったら、手順を短いメモやスクリプトとして保存し、ユーザーが後で同じことをやり直せるようにしてください。
タスクに応じて 3 つのリファレンス(参考資料)ファイルのいずれかを使用します。作業の前に関連ファイルを読んでください。正確なパス、コマンド、既知の失敗パターンが書いてあります。
Claude Desktop と MCP サーバー — Claude Desktop のインストール、MCP サーバーの追加、MCP 設定ファイル(claude_desktop_config.json、.claude/mcp.json、~/.lmstudio/mcp.json など)の確認・検証・修復、接続ヘルスチェック
→ references/claude-desktop-mcp.md を参照
OpenClaw — AI エージェント用の自己ホスト型マルチチャネルゲートウェイ(複数の接続方法に対応した中継システム)。インストール、セットアップ、モデル/プロバイダーの設定、チャネル接続(Telegram、Slack、iMessage など)、ゲートウェイの診断、アンインストール
→ references/openclaw.md を参照
Hermes — まず用語を確認してください:Hermes Agent(Nous Research の自己改善型エージェント フレームワーク(機能枠組み))か Hermes 3(Ollama 経由で実行するローカル LLM)か。インストール、hermes setup --portal の実行、プロバイダー設定、性格設定(SOUL.md)、メモリ/スキル、MCP、メッセージング機能
→ references/hermes.md を参照
ツールの現在の動作が不明な場合は、公式ドキュメントを確認してください: OpenClaw — https://docs.openclaw.ai/ · Hermes — https://hermes-agent.nousresearch.com/docs/
read_file で読み、変更する前に list_processes でプロセス/ポート/サービスが既に実行中か確認してください。OpenClaw、Hermes、またはその他のローカルエージェント/ゲートウェイについて、この順で確認してください:
Help users install, configure, and repair AI tooling on their own machine using Desktop Commander's file and terminal tools. The work is usually configure-and-troubleshoot, not clean installs — assume something already exists and may be half-broken.
get_config and use its systemInfo
and allowedDirectories — file paths, commands, and config locations differ
across macOS, Windows, and Linux, so confirm the platform before assuming
anything.start_process (a quick
curl to the provider) early, and tell the user plainly if the key is invalid
or out of credit..env file — never repeated back in chat. If a user pastes a live
secret, warn them, use it, and suggest they rotate it if it was shared
insecurely. Redact secrets in any output, logs, or summaries you produce..bak first with
start_process (cp file.json file.json.bak, or copy on Windows), then make
the change with edit_block so existing entries survive — reach for
write_file only on a from-scratch config. Validate the JSON after every edit
by parsing it with start_process.list_processes to confirm the process is running and start_process
(lsof/netstat) to confirm the port is listening, then check the client
reconnected and its tools are listed. Don't declare success on a guess.This skill routes to one of three reference files depending on the task. Read the relevant file before acting — they contain the exact paths, commands, and known failure modes.
Claude Desktop & MCP servers — installing Claude Desktop, adding MCP
servers, and inspecting / validating / repairing MCP config files
(claude_desktop_config.json, .claude/mcp.json, ~/.lmstudio/mcp.json,
and similar). Also connection health checks.
→ Read references/claude-desktop-mcp.md
OpenClaw — a self-hosted multi-channel gateway for AI agents. Install,
onboard, wire a model/provider, connect channels (Telegram, Slack, iMessage,
etc.), diagnose the gateway, and uninstall.
→ Read references/openclaw.md
Hermes — disambiguate first: Hermes Agent (the Nous Research
self-improving agent framework) vs. Hermes 3 (just a local LLM you run via
Ollama). Install, run hermes setup --portal, configure providers, personality
(SOUL.md), memory/skills, MCP, and messaging.
→ Read references/hermes.md
When in doubt about a tool's current behavior, fetch the official docs: OpenClaw — https://docs.openclaw.ai/ · Hermes — https://hermes-agent.nousresearch.com/docs/
read_file the relevant config files and use
list_processes to check whether the relevant process/port/service is already
running before changing anything.Use this order for OpenClaw, Hermes, or any local agent/gateway:
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。