
alfredfs85/xwiki-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
XWiki 用の MCP サーバー
概要
XWiki インスタンスとやり取りするための MCP (Model Context Protocol) サーバー。 このサーバーでは、REST API を通じて XWiki 内のページを検索、読み、作成することができます。 - : 検索APIを使用してXWikiの検索ページ - : 任意のXWikiページのフルコンテンツをゲット - : XWikiの構文を使用してXWikiでページを作成または更新 - Docker と Docker Compose をインストール - Node.js 20 + (Docker なしで実行する場合) - REST API で XWiki インスタンスへのアクセス 2. .envファイルを作成することで環境変数の設定: [http://localhost:3000 でサーバーが使用可能になります。 HTTPS が必要な場合は、setup.sh スクリプトを使用して、自己署名 SSL 証明書を生成できます。 : 生成された証明書 (server.key と server.crt) は .gitignore にあり、リポジトリにアップロードされません。 サーバの状態とXWikiの設定を返します.
概要(AI 翻訳)
XWiki インスタンスとやり取りするための MCP (Model Context Protocol) サーバー。 このサーバーでは、REST API を通じて XWiki 内のページを検索、読み、作成することができます。
OST の特徴
-Article Search: 検索APIを使用してXWikiの検索ページ
- ページの読み込み:任意のXWikiページのフルコンテンツを取得します
- ページ作成/更新:XWikiの構文を使用してXWikiでページを作成または更新する
受託者
- DockerとDocker Composeをインストール
- Node.js 20 + (Dockerなしで実行する場合)
- REST API が有効な XWiki インスタンスへのアクセス
❀ インストール
Option 1: Docker を使用する (推奨)
-
リポジトリのクローン化:
-
[
.env]ファイルを作成することで環境変数の設定: -
容器を造り、動かして下さい:
-
サーバーが実行されていることを確認します。
##Option 2: ローカル実行
-
依存関係を取付けて下さい:
-
環境変数の設定:
-
サーバーを実行します。
[http://localhost:3000 でサーバーが使用可能になります。
🔐 SSL 設定 (オプション)
HTTPS が必要な場合は、[setup.sh スクリプトを使用して、自己署名された SSL 証明書を生成できます。
**注記: 生成された証明書([[T3])と[server.crt])は[[.gitignore]で、リポジトリにアップロードされません.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
XWiki MCP Server
MCP (Model Context Protocol) server for interacting with XWiki instances. This server allows you to search, read, and create pages in XWiki through the REST API.
🚀 Features
- Article Search: Search pages in XWiki using the search API
- Page Reading: Get the full content of any XWiki page
- Page Creation/Update: Create or update pages in XWiki using XWiki syntax
📋 Prerequisites
- Docker and Docker Compose installed
- Node.js 20+ (if running without Docker)
- Access to an XWiki instance with REST API enabled
🔧 Installation
Option 1: Using Docker (Recommended)
- Clone the repository:
git clone https://github.com/alfredfs85/xwiki-mcp-server.git
cd xwiki-mcp-server
- Configure environment variables by creating a
.envfile:
XWIKI_URL=https://your-xwiki-instance.com
XWIKI_USERNAME=your_username
XWIKI_PASSWORD=your_password
XWIKI_WIKI=xwiki
- Build and run the container:
docker-compose up -d --build
- Verify the server is running:
curl http://localhost:3000/health
Option 2: Local Execution
- Install dependencies:
npm install
- Configure environment variables:
export XWIKI_URL=https://your-xwiki-instance.com
export XWIKI_USERNAME=your_username
export XWIKI_PASSWORD=your_password
export XWIKI_WIKI=xwiki
- Run the server:
node server.js
The server will be available at http://localhost:3000
🔐 SSL Configuration (Optional)
If you need HTTPS, you can use the setup.sh script to generate self-signed SSL certificates:
chmod +x setup.sh
./setup.sh --ssl
Note: Generated certificates (server.key and server.crt) are in .gitignore and will not be uploaded to the repository.
📡 Endpoints
Health Check
GET /health
Returns the server status and XWiki configuration.
MCP JSON-RPC
POST /mcp
Main endpoint for MCP communication using JSON-RPC 2.0.
Server-Sent Events (SSE)
GET /sse
POST /messages?sessionId={sessionId}
Alternative endpoints for communication via Server-Sent Events.
🛠️ Available Tools
search_xwiki
Searches for articles in XWiki.
Parameters:
query(required): Search termlimit(optional): Maximum number of results (default: 10)
Example:
{
"method": "tools/call",
"params": {
"name": "search_xwiki",
"arguments": {
"query": "documentation",
"limit": 5
}
}
}
get_xwiki_page
Gets the content of an XWiki page.
Parameters:
page_path(required): Page path (e.g.,Main.WebHomeorSpace.Page)
Example:
{
"method": "tools/call",
"params": {
"name": "get_xwiki_page",
"arguments": {
"page_path": "Main.WebHome"
}
}
}
create_xwiki_page
Creates or updates a page in XWiki.
Parameters:
page_path(required): Page pathtitle(required): Page titlecontent(required): Content in XWiki syntax
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"xwiki": {
"url": "http://localhost:3000/mcp",
"transport": "http"
}
}
}