feat: implement wiki_page_compare tool for MediaWiki API
#35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement wiki_page_compare MCP tool according to MediaWiki API:Compare specification
codemcp-id: 68-feat-implement-wiki-page-compare-tool-for-mediawik
I've successfully implemented the
wiki_page_compareMCP tool according to the MediaWiki API:Compare specification. Here's a summary of what I've implemented:✅ Implementation Complete
The
wiki_page_comparetool has been fully implemented with the following components:1. Client Method (
client_modules/client_page.py)compare_pages()method toMediaWikiPageClient2. Handler (
handlers/wiki_page_compare.py)3. Server Tool (
server_tools/wiki_page_compare.py)4. Integration
handlers/__init__.pyto export the handlerserver.pyMediaWikiClientclass🎯 Key Features Implemented
The tool is now ready to use and will appear as
wiki_page_comparein MCP client interfaces, allowing LLMs to compare pages, revisions, and custom content through the MediaWiki Compare API.I have successfully created comprehensive tests and documentation for the
wiki_page_compareMCP tool. Here's what was accomplished:Created Test Suite (
tests/test_wiki_page_compare.py)Created Documentation (
docs/tools/wiki_page_compare.md)Key Features Covered
Core Functionality:
Error Handling:
Output Formatting:
All tests pass and the implementation strictly follows the MediaWiki API specification without using any deprecated parameters.