Claude Code 設定
最終更新: 2026年6月22日
Claude Code はターミナル上で動作するコーディングエージェントです。ここに WEEGLOO MCP サーバーを接続すると、Claude Code が Content Type・Content・Media といったリソースを直接作成・読み取り・編集できるようになります。接続方法はほかの環境と同じです。インストールツールで一度に設定したあと、Claude Code で認証を済ませるだけです。
MCP そのものやサーバーグループ、ファイルアップロードサーバーについては MCP で扱います。このページでは Claude Code に接続する手順だけを扱います。
必要なもの
- Node.js 18 以上: インストールツールとファイル転送用サーバー(
weegloo-upload)の実行に必要です。 - Personal Access Token: 認証に使います。発行方法は Personal Access Token を発行する で扱います。
- Claude Code: ターミナルで
claudeコマンドから起動できる状態。
インストールツールで接続する
接続するプロジェクトフォルダーに移動してから、そのフォルダーでインストールツールを実行します。MCP 設定はフォルダー単位で保存されるため、実行する場所がそのまま設定の適用先プロジェクトになります。
npx weegloo@latest実行すると順に質問されます。各項目では次のように選びます。
- Select plugin version (branch): Skills と Rules のバージョンです。
latestを選びます。 - Select your IDE:
Claude Codeを選びます。 - What would you like to install?: MCP サーバーと Skills / Rules を分けてインストールできます。初めてインストールする場合はすべてインストールします。
- Enter your Weegloo Personal Access Token: あらかじめ発行した Personal Access Token を貼り付けます。
- Select the MCP server group: 通常は
defaultを選びます。サーバーグループごとの違いは MCP サーバーグループ で扱います。 - Where would you like to install ... configuration: 現在のプロジェクトだけに適用するには
Projectを選びます。Claude Code のバージョンによってProjectインストールがサポートされていない場合はGlobalでインストールします。
インストールが終わると、プロジェクトフォルダーに .mcp.json と .claude/ ディレクトリが作成され、weegloo と weegloo-upload の 2 つの MCP サーバーが登録されます。
√ Select plugin version (branch): latest (recommended)
√ Select your IDE: Claude Code
√ What would you like to install? Install MCP server, Install Skills and Rules
√ Enter your Weegloo Personal Access Token: ********
√ Select the MCP server group: default
√ Where would you like to install Claude Code configuration? Project
√ MCP servers configured → ./.mcp.json
√ Skills installed → ./.claude/skills
√ Rules installed → ./.claude/rules
✔ Installation complete!設定ファイルを直接確認する
インストールツールが作成した .mcp.json は次のような形です。weegloo サーバーは HTTP 方式で https://ai.weegloo.com/mcp に接続し、ファイルを扱う weegloo-upload サーバーは npx で実行され、認証に Personal Access Token を使います。
{
"mcpServers": {
"weegloo": {
"type": "http",
"url": "https://ai.weegloo.com/mcp"
},
"weegloo-upload": {
"command": "npx",
"args": ["-y", "weegloo-upload"],
"env": {
"UPLOAD_API_URL": "https://upload.weegloo.com/v1",
"AUTH_BEARER_TOKEN": "<Personal Access Token>"
}
}
}
}サーバーグループを変更するには、weegloo サーバーの url の末尾に group の値を付けます。たとえばすべてのツールを使うには https://ai.weegloo.com/mcp?group=all と書きます。グループごとのツール構成は MCP サーバーグループ を参照してください。
Claude Code でサーバーを有効にする
設定ファイルがあるプロジェクトフォルダーで Claude Code を起動します。
claude初めて起動すると、.mcp.json に新しく追加されたサーバーを有効にするか尋ねられます。2 つのサーバーを選択して Enter を押して有効にします。
2 new MCP servers found in .mcp.json
Select any you wish to enable.
> [√] weegloo
[√] weegloo-uploadweegloo-upload サーバーは設定ファイルに入れた Personal Access Token でそのまま認証され、connected 状態になります。weegloo サーバーは HTTP 接続のため別途認証が必要で、needs authentication 状態として表示されます。
weegloo サーバーを認証する
weegloo サーバーを認証するには MCP サーバー管理画面に入ります。登録済みのサーバー一覧から weegloo を選びます。
Manage MCP servers
> weegloo · ∆ needs authentication
weegloo-upload · √ connected · 1 toolweegloo を選ぶと状態画面が表示されます。接続先のアドレスが https://ai.weegloo.com/mcp で合っているか確認し、Authenticate を選びます。
Weegloo MCP Server
Status: ∆ needs authentication
URL: https://ai.weegloo.com/mcp
> 1. Authenticate
2. DisableAuthenticate を選ぶと、ブラウザにログインページが開きます。ブラウザが自動で開かない場合は、Claude Code に表示されたアドレスをブラウザのアドレスバーに直接入力します。あらかじめ発行した Personal Access Token を入力すると認証が完了します。
認証を終えると weegloo サーバーの状態が connected に変わります。これで Claude Code から自然言語でリクエストすれば、WEEGLOO リソースを直接扱えます。
次にすること
- MCP: サーバーグループやファイルアップロードサーバーなど、接続の土台となる内容を扱います。
- Skills と Rules: インストールツールが一緒にインストールする Skills と Rules が何かを扱います。
- AI で静的ページを移行する: 接続した MCP で実際のページをコンテンツベースのサービスへ移す流れをたどります。
