feat: add wiki management tools #95

Merged
appleboy merged 1 commits from 3KyNoX/gitea-mcp:main into main 2025-09-27 07:29:11 +00:00
Contributor

Fix #94

Summary

This PR adds wiki management support to gitea-mcp adding new tools: creating, reading, updating, and deleting wiki pages.

Changes

  • Added operation/wiki/wiki.go with wiki tools
  • Updated operation/operation.go to register it
  • Updated README.md

New Tools

  • list_wiki_pages - List all wiki pages in a repository
  • get_wiki_page - Get wiki page content and metadata
  • get_wiki_revisions - Get revision history of a wiki page
  • create_wiki_page - Create a new wiki page
  • update_wiki_page - Update an existing wiki page
  • delete_wiki_page - Delete a wiki page

Implementation Details

  • Uses direct HTTP calls to Gitea wiki API endpoints (v1.16.0+)
  • Follows existing MCP patterns and error handling
  • Includes fallback logic to prevent "unnamed" pages during updates
  • Proper base64 content encoding as per Gitea API spec

Testing

Ready for review.
Closes #[94]

Fix #94 ## Summary This PR adds wiki management support to gitea-mcp adding new tools: creating, reading, updating, and deleting wiki pages. ## Changes - Added `operation/wiki/wiki.go` with wiki tools - Updated `operation/operation.go` to register it - Updated `README.md` ## New Tools - `list_wiki_pages` - List all wiki pages in a repository - `get_wiki_page` - Get wiki page content and metadata - `get_wiki_revisions` - Get revision history of a wiki page - `create_wiki_page` - Create a new wiki page - `update_wiki_page` - Update an existing wiki page - `delete_wiki_page` - Delete a wiki page ## Implementation Details - Uses direct HTTP calls to Gitea wiki API endpoints (v1.16.0+) - Follows existing MCP patterns and error handling - Includes fallback logic to prevent "unnamed" pages during updates - Proper base64 content encoding as per Gitea API spec ## Testing - All 6 tools tested and working correctly - Error handling validated - Integration with existing MCP server confirmed - Made a test repo & simulated a drone construction using Claude Code (in french sorry) at https://git.kernelpanik.fr/Test-Organization/test_wiki_tools/wiki Ready for review. Closes #[94]
3KyNoX added 1 commit 2025-09-24 10:34:18 +00:00
feat: add wiki management tools
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 49s
check-and-test / Run govulncheck (pull_request) Successful in 51s
9d8861278a
- Add 6 wiki tools: list, get, create, update, delete, revisions - Implement direct HTTP calls to Gitea wiki API endpoints - Update README.md with new wiki tools documentation Closes #[94]
lunny approved these changes 2025-09-25 19:27:37 +00:00
appleboy approved these changes 2025-09-27 07:29:06 +00:00
appleboy merged commit 95ab3a4b73 into main 2025-09-27 07:29:11 +00:00
Sign in to join this conversation.
No description provided.