Skip to content

Conversation

@diggy
Copy link
Contributor

@diggy diggy commented Jul 2, 2025

No description provided.

diggy added 19 commits July 1, 2025 13:39
We are implementing an MCP server that allows LLMs like Claude to interact with MediaWiki installations through the MediaWiki API interface. We need to implement a wiki_page_parse tool that handles the MediaWiki Parse API for parsing wikitext content.

```git-revs
bbf7b4d  (Base revision)
0262d95  Add comprehensive parse_page method to MediaWikiPageClient
7c31d56  Add parse_page method to main MediaWikiClient
acbb2a8  Create wiki_page_parse handler
2060ad0  Add wiki_page_parse handler to __init__.py
9dcc96e  Create wiki_page_parse server tool
16d763e  Add wiki_page_parse tool to server_tools __init__.py
118d774  Add wiki_page_parse tool registration to server.py
HEAD     Create documentation for wiki_page_parse tool
```

codemcp-id: 37-feat-implement-mediawiki-api-mcp-server-with-page-
We are implementing an MCP server that allows LLMs like Claude to interact with MediaWiki installations through the MediaWiki API interface. We need to implement a wiki_page_parse MCP tool according to the MediaWiki API specification.

```git-revs
6f830f6  (Base revision)
b191d84  Create comprehensive test suite for wiki_page_parse functionality
51283d0  Fix mypy type errors by properly typing arguments dictionary
2b3a598  Add missing Any import for type annotation
HEAD     Fix ruff errors by removing unused result assignments
```

codemcp-id: 38-feat-implement-mediawiki-api-mcp-server-with-wiki-
We are implementing an MCP server that allows LLMs like Claude to interact with MediaWiki installations through the MediaWiki API. We're fixing bugs in the wiki_page_parse tool that has issues with content retrieval for existing pages, redirect resolution, and section parsing.

```git-revs
9429fff  (Base revision)
3859580  Fix page identification parameter logic in parse_page method
7677bb9  Improve section parameter validation and error handling
5f89fe6  Improve error handling for API responses and section parsing
0a35590  Include warnings in the formatted output
808799e  Update _format_parse_result to handle warnings
71c7274  Fix error handling for string error values
921d6d9  Update test to match new error message format
HEAD     Add test for section parameter validation
```

codemcp-id: 39-fix-critical-bugs-in-wiki-page-parse-tool
… parsing

We are implementing an MCP server that allows LLMs like Claude to interact with MediaWiki installations through the MediaWiki API interface. We need to fix critical bugs in the wiki_page_parse tool including page content retrieval issues, redirect resolution failures, and section parsing errors.

```git-revs
5fd40ae  (Base revision)
b605668  Fix section parameter validation to handle integers and template sections
96a6ec9  Make default prop more conservative to avoid API errors with limited MediaWiki instances
874dd84  Fix page identification logic to properly handle existing page parsing
e62aa5e  Improve error handling and add better debugging for page parsing issues
eac8a03  Improve content formatting and add detection for minimal/empty content issues
9e65fbc  Update section parameter test to reflect improved validation
HEAD     Add tests for minimal content detection
```

codemcp-id: 40-fix-resolve-wiki-page-parse-tool-bugs-for-page-con
We are currently implementing an MCP server that allows LLMs like Claude to interact with a MediaWiki installations, as a bot user, through the MediaWiki API interface. The wiki_page_parse tool has recently been updated to fix bugs and I need to verify the fixes and update documentation.

```git-revs
4a9d5b4  (Base revision)
HEAD     Update wiki_page_parse.md documentation with recent bug fixes and improvements
```

codemcp-id: 41-verify-wiki-page-parse-bug-fixes-and-update-docume
Fix critical bugs in wiki_page_parse MCP tool based on technical test report: inconsistent title vs page parameter behavior, poor error handling, and non-functional summary parameter.

```git-revs
e04ea4a  (Base revision)
HEAD     Create fixed version of parse_page method with better parameter handling and error handling
```

codemcp-id: 42-fix-resolve-critical-issues-in-wiki-page-parse-too
Fix critical bugs in the wiki_page_parse MCP tool based on the technical test report, focusing on: 1) Inconsistent behavior with title vs page parameters, 2) Poor error handling, and 3) Non-functional summary parameter

```git-revs
71eab67  (Base revision)
d4d7274  Fix title vs page parameter inconsistency and add proper summary parameter support
1572af2  Fix summary parameter validation logic in handler
678004a  Improve error handling with detailed diagnostic information
b8c4b1c  Remove duplicate summary parameter handling
2db37c9  Add tests for the bug fixes: summary parameter and title consistency
HEAD     Add test for improved error handling with diagnostic information
```

codemcp-id: 43-fix-resolve-critical-bugs-in-wiki-page-parse-tool
Two tests are failing for the MediaWiki MCP server. Need to fix the wiki_page_parse functionality to handle title vs page parameter consistency and enhance error handling.

```git-revs
68812a4  (Base revision)
81858a2  Convert title parameter to page parameter for API consistency
125210a  Fix missing page detection in query response error handling
HEAD     Remove redundant missing page detection code
```

codemcp-id: 45-fix-resolve-wiki-page-parse-test-failures
We are implementing an MCP server that allows LLMs like Claude to interact with MediaWiki installations through the MediaWiki API interface. We need to fix a bug with the wiki_page_parse tool where the summary parameter returns minimal/empty content. The requirements are:
- MCP tool names MUST be prefixed with `wiki_`
- Parameter names MUST align with the official MediaWiki API spec
- Need to address the summary parsing functionality issue where summary parameter doesn't parse markup correctly

codemcp-id: 52-fix-summary-parsing-in-wiki-page-parse-tool
Investigate and fix the wiki_page_parse MCP tool's summary parsing functionality. The summary parameter returns minimal/empty content while the text parameter works correctly with the same content.

```git-revs
622ba3f  (Base revision)
ec67a22  Fix summary parsing by ensuring empty prop parameter is included in API request
436ef9e  Add test to verify empty prop parameter is correctly included in API request
HEAD     Fix test to properly verify empty prop parameter handling
```

codemcp-id: 53-fix-wiki-page-parse-summary-parameter-parsing
A test is failing, please investigate and provide a targeted fix.
```
FAILED tests/test_wiki_page_parse.py::**TestParseHandlers::test_empty_prop_parameter_included_in_api_request** - TypeError: object MagicMock can't be used in 'await' expression
```

```git-revs
94722c9  (Base revision)
HEAD     Fix AsyncMock configuration in test by using create_autospec instead of manual AsyncMock setup
```

codemcp-id: 54-fix-resolve-magicmock-async-await-issue-in-wiki-pa
…wiki_page_parse

feat: implement `wiki_page_parse` MCP tool
Implement wiki_page_compare MCP tool according to MediaWiki API:Compare specification

```git-revs
f28f768  (Base revision)
29a2d32  Add compare_pages method to MediaWikiPageClient for API:Compare functionality
9878bb6  Create handler for wiki_page_compare tool
bd2f7fa  Create server tool registration for wiki_page_compare
9313114  Add handle_compare_pages to handlers __init__.py
eef3452  Add wiki_page_compare tool registration to server.py
ed1ba6e  Add wiki_page_compare tool registration call in server.py
HEAD     Add compare_pages delegation method to MediaWikiClient
```

codemcp-id: 68-feat-implement-wiki-page-compare-tool-for-mediawik
I need to write tests and documentation for the wiki_page_compare MCP tool that was recently implemented according to the API:Compare specification. Please help me explore the existing implementation and then create comprehensive tests and documentation.

```git-revs
4c20a98  (Base revision)
7d708ac  Create comprehensive test suite for wiki_page_compare tool
3930e85  Fix duplicate slots parameter in test
HEAD     Add comprehensive documentation for wiki_page_compare tool
```

codemcp-id: 69-add-tests-and-documentation-for-wiki-page-compare-
…page-compare

feat: implement `wiki_page_compare` tool for MediaWiki API
@diggy diggy added this to the v0.4.0 milestone Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants