What is A custom Model Context Protocol (MCP) adapter for interacting with MediaWiki and WikiBase APIs.?
This adapter allows you to fetch and edit MediaWiki pages programmatically using the MCP framework. Features include fetching the content of a MediaWiki page, editing a MediaWiki page with new content and an optional summary, and configurable API base URLs for different MediaWiki and WikiBase instances.
Documentation
MediaWikiAdapter
A custom Model Context Protocol (MCP) adapter for interacting with MediaWiki and WikiBase APIs. This adapter allows you to fetch and edit MediaWiki pages programmatically using the MCP framework.
Features
Fetch the content of a MediaWiki page.
Edit a MediaWiki page with new content and an optional summary.
Configurable API base URLs for different MediaWiki and WikiBase instances.
Requirements
Node.js (v16 or later)
TypeScript (for development)
MediaWiki instance with API access enabled
Installation
Clone the repository:
git clone https://github.com/yourusername/mediawikiadapter.git
cd mediawikiadapter
Install dependencies:
npm install
Build the project:
npm run build
Usage# Configure the Adapter
You can configure the adapter to use custom MediaWiki and WikiBase API endpoints: