- Explore MCP Servers
- wp-mcp-plugin
Wp Mcp Plugin
What is Wp Mcp Plugin
wp-mcp-plugin is a WordPress plugin that adds Model Context Protocol (MCP) server functionality to WordPress sites, allowing AI assistants like Claude Desktop to access and read site content.
Use cases
Use cases include enabling AI assistants to read and search website content, integrating WordPress sites with external applications, and enhancing user interaction through AI-driven features.
How to use
To use wp-mcp-plugin, install it by uploading the plugin files to the ‘/wp-content/plugins/wp-mcp-plugin/’ directory or by cloning it from GitHub. Activate the plugin in the WordPress admin panel and configure the settings under ‘Settings > MCP Server’.
Key features
Key features include fetching posts and pages, content search, retrieving site information, managing categories and tags, providing standard REST API endpoints, supporting Server-Sent Events (SSE), implementing rate limiting, and CORS support.
Where to use
wp-mcp-plugin is suitable for any WordPress site that requires integration with AI assistants or applications that utilize the Model Context Protocol for content access and interaction.
Overview
What is Wp Mcp Plugin
wp-mcp-plugin is a WordPress plugin that adds Model Context Protocol (MCP) server functionality to WordPress sites, allowing AI assistants like Claude Desktop to access and read site content.
Use cases
Use cases include enabling AI assistants to read and search website content, integrating WordPress sites with external applications, and enhancing user interaction through AI-driven features.
How to use
To use wp-mcp-plugin, install it by uploading the plugin files to the ‘/wp-content/plugins/wp-mcp-plugin/’ directory or by cloning it from GitHub. Activate the plugin in the WordPress admin panel and configure the settings under ‘Settings > MCP Server’.
Key features
Key features include fetching posts and pages, content search, retrieving site information, managing categories and tags, providing standard REST API endpoints, supporting Server-Sent Events (SSE), implementing rate limiting, and CORS support.
Where to use
wp-mcp-plugin is suitable for any WordPress site that requires integration with AI assistants or applications that utilize the Model Context Protocol for content access and interaction.
Content
Feel Chatbot Plugin
WordPress向けREST APIプラグインです。外部アプリケーションやチャットボットサービスがWordPressサイトのコンテンツにアクセスできる強力なREST APIエンドポイントを提供します。
🚀 概要
Feel Chatbotプラグインは、WordPressサイトに包括的なREST API機能を追加し、外部のアプリケーションやサービスがサイトのコンテンツを効率的に取得・検索することを可能にします。
重要: このプラグインは一般的なREST APIを提供します。Claude Desktopが使用するMCP (Model Context Protocol)とは異なるため、直接接続はできません。カスタムアプリケーションの開発が必要です。
主な機能
- 包括的なREST API: WordPress のコンテンツに完全アクセス
- 投稿・ページの取得: すべての投稿タイプに対応
- 高度なフィルタリング: カテゴリ、日時、ステータス等での絞り込み
- 全文検索機能: サイト内コンテンツの検索
- メタデータサポート: カスタムフィールドやメタデータの取得
- チャットボット埋め込み: ワンクリックで右下チャットボタンを追加
- 認証・セキュリティ: APIキーによる認証システム
- レート制限: API使用量の制御
- CORS対応: クロスオリジンリクエスト対応
- リアルタイム統計: API使用状況の監視
- 開発者向けツール: デバッグ機能とAPIテスター
🎯 主要機能(v2.0.0)
✨ REST API エンドポイント
- サーバー情報:
/wp-json/feel-chatbot/v1/server-info
- 投稿取得:
/wp-json/feel-chatbot/v1/posts
- ページ取得:
/wp-json/feel-chatbot/v1/pages
- カテゴリ取得:
/wp-json/feel-chatbot/v1/categories
- 全文検索:
/wp-json/feel-chatbot/v1/search
- コンテンツ詳細:
/wp-json/feel-chatbot/v1/content/{id}
🔧 高度な機能
- フィルタリング: カテゴリ、日時、ステータス等での絞り込み
- ページネーション: 大量データの効率的な取得
- フィールド選択: 必要なデータのみを取得
- キャッシング: 高速レスポンス
- エラーハンドリング: 詳細なエラー情報
🏗️ アーキテクチャ
- モジュラー設計: 機能別クラス分離
- セキュアAPI: 認証・認可システム
- スケーラブル: 大規模サイト対応
- 拡張可能: カスタムエンドポイント追加対応
🤖 チャットボット埋め込み機能
Feel Chatbotプラグインには、サイトにチャットボットを簡単に埋め込める機能が含まれています。
✨ 主要機能
- ワンクリック有効化: 管理画面でチャットボットのON/OFF切り替え
- カスタマイズ可能: タイトル、色、テーマの設定
- レスポンシブ対応: モバイル・タブレット・デスクトップ完全対応
- 表示制御: 特定のページでの表示・非表示設定
- リアルタイムプレビュー: 設定変更の即座確認
- CORS設定ガイド: セキュアな接続設定の支援
🎛️ 管理画面での設定
基本設定
- WordPress管理画面で「Feel Chatbot」→「ウィジェット設定」にアクセス
- 「チャットボットを有効化」をチェック
- 必要に応じて以下を設定:
- チャットボットURL: 外部チャットボットサービスのURL
- タイトル: チャットボタンのホバー時表示テキスト
- テーマ: ライト/ダークテーマの選択
- 表示ページ: 全ページ/特定ページでの表示制御
高度な設定
- カスタムCSS: チャットボタンの見た目をカスタマイズ
- JavaScript設定: 動作の詳細設定
- CORS設定: クロスオリジンアクセスの許可設定
🔧 実装詳細
チャットボタンの表示
<!-- 右下に固定されるチャットボタン -->
<div id="feel-chatbot-widget" class="feel-chatbot-button">
<svg><!-- チャットアイコン --></svg>
</div>
カスタマイズ例
/* ボタンの色をカスタマイズ */
.feel-chatbot-button {
background-color: #007cba;
border-radius: 50%;
}
/* ホバー効果 */
.feel-chatbot-button:hover {
transform: scale(1.1);
box-shadow: 0 4px 20px rgba(0, 124, 186, 0.3);
}
🛡️ セキュリティとCORS設定
チャットボットが外部サービスと通信する場合、適切なCORS設定が必要です:
管理画面でのCORS設定
- 「Feel Chatbot」→「設定」→「CORS設定」
- 許可するオリジンを追加:
https://your-chatbot-service.com https://api.openai.com https://claude.ai
自動CORS設定機能
- クイック追加: 一般的なAIサービスの設定をワンクリック追加
- 設定検証: CORS設定の動作確認機能
- トラブルシューティング: 接続問題の診断支援
📱 レスポンシブ対応
チャットボタンは全デバイスで最適表示:
- デスクトップ: 右下固定、60px × 60px
- タブレット: 右下固定、56px × 56px
- モバイル: 右下固定、52px × 52px、タッチ最適化
🎨 テーマとカスタマイズ
組み込みテーマ
- ライトテーマ: 明るい背景に最適
- ダークテーマ: 暗い背景に最適
- 自動テーマ: ユーザーのシステム設定に追従
カスタマイズオプション
- ボタンサイズの調整
- アニメーション効果の設定
- 位置(右下/左下)の変更
- アイコンの変更
🚀 パフォーマンス
- 軽量設計: CSS 2KB、JavaScript 3KB
- 非同期読み込み: ページ表示速度への影響最小化
- キャッシュ対応: 静的ファイルの効率的配信
📁 ディレクトリ構造
wp-mcp-plugin/ ├── wp-mcp-plugin.php # メインプラグインファイル ├── includes/ # コアクラス │ ├── class-feel-chatbot-server.php │ ├── class-feel-chatbot-cors.php │ ├── class-feel-chatbot-auth.php │ ├── class-feel-chatbot-rate-limiter.php │ ├── class-feel-chatbot-admin.php │ └── class-feel-chatbot-widget.php # チャットボットウィジェット ├── api/ # API関連 │ ├── class-feel-chatbot-rest-api.php │ ├── endpoints/ # REST APIエンドポイント │ │ ├── class-feel-chatbot-posts-endpoint.php │ │ ├── class-feel-chatbot-pages-endpoint.php │ │ └── class-feel-chatbot-categories-endpoint.php │ └── tools/ # MCPツール ├── assets/ # 静的ファイル │ ├── css/ │ │ ├── admin.css │ │ └── widget.css # ウィジェットスタイル │ └── js/ │ ├── admin.js │ └── widget.js # ウィジェットスクリプト ├── templates/ # テンプレートファイル │ └── admin/ │ ├── settings-page.php │ └── widget-settings.php # ウィジェット設定画面 └── languages/ # 言語ファイル
🔧 システム要件
- WordPress 5.0 以上
- PHP 7.4 以上
- REST API が有効であること
- 共有ホスティング対応(エックスサーバー等)
📦 インストール
手動インストール
- プラグインファイルをダウンロード
/wp-content/plugins/feel-chatbot/
ディレクトリにアップロード- WordPressの管理画面で「Feel Chatbot」を有効化
- 「Feel Chatbot」→「設定」で初期設定を行う
WordPress管理画面からのインストール
- WordPress管理画面の「プラグイン」→「新規追加」
- 「Feel Chatbot」を検索
- 「今すぐインストール」→「有効化」
⚙️ 設定
基本設定
- WordPress管理画面で「Feel Chatbot」→「設定」にアクセス
- 「Feel Chatbotを有効化」にチェック
- APIキーをメモ(外部アプリケーションで使用)
- 必要に応じて許可するオリジンを設定
- レート制限を設定(エックスサーバーでは50以下推奨)
チャットボットウィジェット設定
- WordPress管理画面で「Feel Chatbot」→「ウィジェット設定」にアクセス
- 「チャットボットを有効化」にチェック
- 基本設定を行う:
- チャットボットURL: 外部チャットボットサービスのURL
- タイトル: ボタンホバー時の表示テキスト
- テーマ: ライト/ダーク/自動の選択
- 表示設定を調整:
- 表示ページ: 全ページ または 特定ページ
- 除外ページ: 表示しないページの指定
- 「設定を保存」をクリック
🔌 外部アプリケーションとの連携
このプラグインはREST APIを提供します。Claude Desktopからは直接接続できませんが、以下の方法で活用できます:
1. カスタムアプリケーション開発
- PythonやNode.jsでAPIクライアントを作成
- 提供されたAPIキーを使用してREST APIにアクセス
- 取得したデータを処理してClaude AIに送信
2. 中間サーバーの構築
- Express.js、FastAPI等でプロキシサーバーを作成
- WordPress REST API ↔ Claude Desktop間の橋渡し
3. Webhook・自動化ツール
- Zapier、Make.com等の自動化ツールでデータ連携
- WordPress更新時にSlack/Discord等に通知
重要: Claude DesktopはMCP (Model Context Protocol)を使用しますが、このプラグインは一般的なREST APIを提供するため、直接接続はできません。
📚 API リファレンス
エンドポイント一覧
基本エンドポイント
メソッド | エンドポイント | 説明 |
---|---|---|
GET | /wp-json/feel-chatbot/v1/posts |
WordPressの投稿を取得 |
GET | /wp-json/feel-chatbot/v1/pages |
WordPressの固定ページを取得 |
GET | /wp-json/feel-chatbot/v1/categories |
WordPressのカテゴリーを取得 |
GET | /wp-json/feel-chatbot/v1/debug |
デバッグ情報を取得 |
パラメータ例
記事取得(カテゴリー指定):
/wp-json/feel-chatbot/v1/posts?category=1&per_page=5
記事取得(日時フィルタ):
/wp-json/feel-chatbot/v1/posts?after=2024-01-01&before=2024-12-31
検索による投稿取得:
/wp-json/feel-chatbot/v1/posts?search=keyword
認証
APIアクセスには以下のHTTPヘッダーが必要です:
X-API-Key: your-api-key-here
🔗 REST API 詳細ガイド
基本的な使用方法
1. APIキーの取得
- WordPress管理画面 → 「Feel Chatbot」→「設定」
- 「APIキー再生成」ボタンをクリック
- 生成されたAPIキーをコピーして保存
2. 基本的なリクエスト例
# サーバー情報の取得
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/server-info"
# 投稿一覧の取得
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts"
# ページ一覧の取得
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/pages"
高度なフィルタリング
投稿の詳細フィルタリング
# カテゴリー指定での取得
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?category=5"
# 複数カテゴリー指定
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?category=1,2,3"
# 日時範囲指定
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?after=2024-01-01&before=2024-12-31"
# 投稿ステータス指定
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?status=publish,private"
# ページネーション
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?page=2&per_page=10"
検索機能
# 全文検索
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?search=WordPress"
# タイトルのみ検索
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?search_title=WordPress"
# コンテンツのみ検索
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/posts?search_content=tutorial"
パラメータ詳細リファレンス
共通パラメータ
パラメータ | タイプ | 説明 | デフォルト |
---|---|---|---|
page |
integer | ページ番号 | 1 |
per_page |
integer | 1ページあたりの件数 | 10 |
search |
string | 検索キーワード | - |
after |
string | 取得開始日時 (ISO 8601) | - |
before |
string | 取得終了日時 (ISO 8601) | - |
orderby |
string | ソート基準 (date, title, menu_order) | date |
order |
string | ソート順序 (asc, desc) | desc |
投稿専用パラメータ
パラメータ | タイプ | 説明 | 例 |
---|---|---|---|
category |
string | カテゴリーID(カンマ区切り) | 1,2,3 |
category_name |
string | カテゴリースラッグ | news,blog |
tag |
string | タグID(カンマ区切り) | 5,6,7 |
author |
integer | 著者ID | 1 |
status |
string | 投稿ステータス | publish,draft |
meta_key |
string | カスタムフィールドキー | featured |
meta_value |
string | カスタムフィールド値 | true |
レスポンス例
投稿取得のレスポンス
{
"success": true,
"data": [
{
"id": 123,
"title": "サンプル投稿",
"content": "投稿の本文内容...",
"excerpt": "投稿の抜粋...",
"date": "2024-01-15T10:30:00",
"modified": "2024-01-16T14:20:00",
"status": "publish",
"author": {
"id": 1,
"name": "管理者",
"email": "[email protected]"
},
"categories": [
{
"id": 5,
"name": "ニュース",
"slug": "news"
}
],
"tags": [
{
"id": 10,
"name": "WordPress",
"slug": "wordpress"
}
],
"featured_image": {
"url": "https://example.com/image.jpg",
"alt": "画像の説明"
},
"custom_fields": {
"custom_field_1": "カスタム値"
},
"permalink": "https://example.com/sample-post/"
}
],
"pagination": {
"total": 50,
"pages": 5,
"current_page": 1,
"per_page": 10,
"has_next": true,
"has_prev": false
}
}
JavaScript での使用例
// 基本的な投稿取得
async function getPosts() {
const response = await fetch('https://yoursite.com/wp-json/feel-chatbot/v1/posts', {
headers: {
'X-API-Key': 'your-api-key-here'
}
});
const data = await response.json();
return data;
}
// 高度なフィルタリング
async function getFilteredPosts() {
const params = new URLSearchParams({
category: '1,2',
per_page: '20',
search: 'WordPress',
after: '2024-01-01',
orderby: 'date',
order: 'desc'
});
const response = await fetch(`https://yoursite.com/wp-json/feel-chatbot/v1/posts?${params}`, {
headers: {
'X-API-Key': 'your-api-key-here'
}
});
const data = await response.json();
return data;
}
// エラーハンドリング付きの例
async function safeGetPosts() {
try {
const response = await fetch('https://yoursite.com/wp-json/feel-chatbot/v1/posts', {
headers: {
'X-API-Key': 'your-api-key-here'
}
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const data = await response.json();
if (!data.success) {
throw new Error(data.message || 'API request failed');
}
return data.data;
} catch (error) {
console.error('API request failed:', error);
return null;
}
}
Python での使用例
import requests
import json
class FeelChatbotAPI:
def __init__(self, base_url, api_key):
self.base_url = base_url.rstrip('/')
self.api_key = api_key
self.headers = {
'X-API-Key': api_key,
'Content-Type': 'application/json'
}
def get_posts(self, **params):
"""投稿を取得"""
url = f"{self.base_url}/wp-json/feel-chatbot/v1/posts"
response = requests.get(url, headers=self.headers, params=params)
response.raise_for_status()
return response.json()
def get_pages(self, **params):
"""ページを取得"""
url = f"{self.base_url}/wp-json/feel-chatbot/v1/pages"
response = requests.get(url, headers=self.headers, params=params)
response.raise_for_status()
return response.json()
def search_content(self, query, content_type='posts', **params):
"""コンテンツを検索"""
params['search'] = query
if content_type == 'posts':
return self.get_posts(**params)
elif content_type == 'pages':
return self.get_pages(**params)
# 使用例
api = FeelChatbotAPI('https://yoursite.com', 'your-api-key')
# 最新の投稿を10件取得
latest_posts = api.get_posts(per_page=10, orderby='date', order='desc')
# カテゴリー指定で投稿を取得
category_posts = api.get_posts(category='1,2,3', per_page=20)
# 検索実行
search_results = api.search_content('WordPress tutorial', per_page=5)
PHP での使用例
<?php
class FeelChatbotAPIClient {
private $base_url;
private $api_key;
public function __construct($base_url, $api_key) {
$this->base_url = rtrim($base_url, '/');
$this->api_key = $api_key;
}
private function makeRequest($endpoint, $params = []) {
$url = $this->base_url . '/wp-json/feel-chatbot/v1/' . $endpoint;
if (!empty($params)) {
$url .= '?' . http_build_query($params);
}
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => [
'X-API-Key: ' . $this->api_key,
'Content-Type: application/json'
]
]
]);
$response = file_get_contents($url, false, $context);
if ($response === false) {
throw new Exception('API request failed');
}
return json_decode($response, true);
}
public function getPosts($params = []) {
return $this->makeRequest('posts', $params);
}
public function getPages($params = []) {
return $this->makeRequest('pages', $params);
}
public function getCategories($params = []) {
return $this->makeRequest('categories', $params);
}
}
// 使用例
$api = new FeelChatbotAPIClient('https://yoursite.com', 'your-api-key');
// 投稿取得
$posts = $api->getPosts([
'category' => '1,2',
'per_page' => 10,
'search' => 'WordPress'
]);
echo "取得した投稿数: " . count($posts['data']) . "\n";
?>
💡 実用的な使用例
1. モバイルアプリ開発
React Native、Flutter等でWordPressコンテンツを活用
// React Nativeでの使用例
const fetchPosts = async () => {
const response = await fetch('https://yoursite.com/wp-json/feel-chatbot/v1/posts', {
headers: {
'X-API-Key': 'your-api-key'
}
});
const posts = await response.json();
return posts;
};
2. Pythonアプリケーション
データ分析やAI処理でWordPressデータを活用
import requests
def get_wordpress_content():
headers = {'X-API-Key': 'your-api-key'}
response = requests.get(
'https://yoursite.com/wp-json/feel-chatbot/v1/posts',
headers=headers
)
return response.json()
# AI処理用にテキストを準備
posts = get_wordpress_content()
content_text = ' '.join([post['content'] for post in posts])
3. Node.js Webサービス
Express.jsでプロキシサーバーを構築
const express = require('express');
const axios = require('axios');
const app = express();
app.get('/api/content', async (req, res) => {
try {
const response = await axios.get('https://yoursite.com/wp-json/feel-chatbot/v1/posts', {
headers: { 'X-API-Key': process.env.WP_API_KEY }
});
res.json(response.data);
} catch (error) {
res.status(500).json({ error: 'Failed to fetch content' });
}
});
4. 自動化・Webhook
Zapier、Make.com等でワークフロー自動化
- WordPress更新 → Slack通知
- 新記事投稿 → メール配信
- コンテンツ同期 → 他のCMSと連携
5. ヘッドレスCMS活用
Next.js、Gatsby等の静的サイトジェネレーター
// Next.js での使用例
export async function getStaticProps() {
const res = await fetch('https://yoursite.com/wp-json/feel-chatbot/v1/posts', {
headers: { 'X-API-Key': process.env.WP_API_KEY }
});
const posts = await res.json();
return {
props: { posts },
revalidate: 60 // 1分ごとに再生成
};
}
🔧 カスタマイズと拡張
カスタムエンドポイントの追加
// functions.php またはカスタムプラグインに追加
add_action('rest_api_init', 'register_custom_feel_chatbot_endpoint');
function register_custom_feel_chatbot_endpoint() {
register_rest_route('feel-chatbot/v1', '/custom-data', array(
'methods' => 'GET',
'callback' => 'get_custom_data',
'permission_callback' => 'feel_chatbot_check_api_key'
));
}
function get_custom_data($request) {
// カスタムデータの処理
$data = [
'custom_field' => 'custom_value',
'timestamp' => current_time('c')
];
return rest_ensure_response([
'success' => true,
'data' => $data
]);
}
フィルターフックの使用
// レスポンスデータのカスタマイズ
add_filter('feel_chatbot_post_data', 'customize_post_data', 10, 2);
function customize_post_data($data, $post) {
// カスタムフィールドを追加
$data['custom_field'] = get_post_meta($post->ID, 'custom_field', true);
// 関連投稿を追加
$data['related_posts'] = get_related_posts($post->ID);
return $data;
}
// API キー検証のカスタマイズ
add_filter('feel_chatbot_validate_api_key', 'custom_api_key_validation', 10, 2);
function custom_api_key_validation($is_valid, $api_key) {
// カスタム検証ロジック
if ($api_key === 'special-key') {
return true;
}
return $is_valid;
}
🔍 トラブルシューティング
よくある問題と解決方法
1. API リクエストが401エラーを返す
原因: APIキーが設定されていない、または間違っている
解決方法:
- WordPress管理画面で「Feel Chatbot」→「設定」を確認
- 正しいAPIキーがヘッダーに設定されているか確認:
X-API-Key: your-api-key
2. API リクエストが403エラーを返す
原因: 無効なAPIキーまたは権限エラー
解決方法:
- APIキーを再生成する
- 管理者権限でWordPressにログインしているか確認
3. CORS エラーが発生する
原因: クロスオリジンリクエストが許可されていない
解決方法:
- 「Feel Chatbot」→「設定」で許可するオリジンを追加
*
を設定してすべてのオリジンを許可(テスト時のみ推奨)
4. レート制限エラー(429エラー)
原因: 短時間で大量のリクエストを送信している
解決方法:
- リクエスト頻度を下げる
- 管理画面でレート制限設定を調整
5. 空のレスポンスが返される
原因: プラグインが正しく有効化されていない、または設定に問題がある
解決方法:
- プラグインが有効化されているか確認
/wp-json/feel-chatbot/v1/server-info
エンドポイントで基本情報を確認
デバッグモード
デバッグ情報を確認するには以下のエンドポイントを使用:
# CORS設定確認
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/debug/cors"
# レート制限状況確認
curl -H "X-API-Key: your-api-key" \
"https://yoursite.com/wp-json/feel-chatbot/v1/debug/rate-limit"
ログの確認
WordPressのデバッグログを有効にして詳細なエラー情報を確認:
// wp-config.php に追加
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
ログファイル: /wp-content/debug.log
📞 サポート
サポートチャンネル
- GitHubイシュー: https://github.com/your-repo/issues
- WordPress.org サポートフォーラム: Feel Chatbot Plugin Support
- ドキュメント: Feel Chatbot Docs
よくある質問(FAQ)
Q: Claude Desktop等のAIツールから直接接続できますか?
A: いいえ、直接接続はできません。このプラグインはREST APIを提供しており、Claude Desktopが使用する**MCP (Model Context Protocol)**とは異なります。WordPressのデータをAIツールで活用するには、カスタムアプリケーションを開発してREST API経由でデータを取得し、AIツールに送信する必要があります。
Q: どのような用途に適していますか?
A: 以下のような用途に最適です:
- WordPressサイトのコンテンツをJSON形式で配信
- 外部アプリケーションからのコンテンツ取得
- チャットボットサービスとの連携
- モバイルアプリへのコンテンツ配信
- ヘッドレスCMS としてのWordPress活用
Q: チャットボットウィジェットはどのように設定しますか?
A: WordPress管理画面の「Feel Chatbot」→「ウィジェット設定」から簡単に設定できます。有効化から表示設定、カスタマイズまで直感的に操作可能です。
Q: チャットボットが表示されない場合はどうすればいいですか?
A: まず「ウィジェット設定」で有効化されているか確認してください。また、現在のページが表示対象に設定されているか、除外リストに含まれていないかもご確認ください。
Q: 外部チャットボットサービスとの連携は可能ですか?
A: はい、チャットボットURLを設定することで任意の外部サービスと連携できます。適切なCORS設定も管理画面から簡単に行えます。
Q: 大量のコンテンツがあるサイトでもパフォーマンスは大丈夫ですか?
A: ページネーション機能により、大量データも効率的に処理できます。per_page
パラメータで1回のリクエストで取得する件数を調整してください。
Q: カスタム投稿タイプに対応していますか?
A: 現在は標準の投稿と固定ページのみ対応しています。カスタム投稿タイプのサポートは今後のバージョンで追加予定です。
Q: APIキーのセキュリティについて教えてください
A: APIキーは一意の文字列で、データベースに暗号化されて保存されます。定期的な再生成を推奨します。
📝 変更履歴
v2.0.0 (2024-XX-XX)
- 新機能: 包括的なREST API機能
- 新機能: 高度なフィルタリング機能
- 新機能: 全文検索機能
- 新機能: チャットボット埋め込みウィジェット機能
- 新機能: CORS設定ガイド画面
- 新機能: API ドキュメント画面
- 改善: パフォーマンスの最適化
- 改善: エラーハンドリングの強化
- 改善: セキュリティの向上
v1.0.0 (2024-XX-XX)
- 初回リリース
- 基本的なMCP機能
📄 ライセンス
このプラグインはGPL v2 または それ以降のライセンスの下で配布されています。
Feel Chatbot Plugin Copyright (C) 2024 Your Name This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
🤝 貢献
プロジェクトへの貢献を歓迎します!
貢献方法
- このリポジトリをフォーク
- 機能ブランチを作成 (
git checkout -b feature/amazing-feature
) - 変更をコミット (
git commit -m 'Add some amazing feature'
) - ブランチにプッシュ (
git push origin feature/amazing-feature
) - プルリクエストを作成
開発ガイドライン
- WordPressコーディング規約に従ってください
- すべての新機能にはテストを含めてください
- ドキュメントの更新も忘れずに行ってください
Feel Chatbot Plugin - WordPress sites accessible to AI assistants and chatbots.