Enhancement: get_wiki_page should return decoded markdown, not base64 #2
Labels
No labels
status/paused
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jbr870/forgejo-mcp-server#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently
get_wiki_pagereturns the page content as acontent_base64field containing base64-encoded text. This is how the Forgejo API returns it, but for the MCP use case (where Claude.ai is the consumer), it would be much more useful to decode the content server-side and return plain markdown.Current behavior
Desired behavior
Why this matters
The primary consumer of this tool is Claude.ai. Returning decoded markdown means the content is immediately readable and usable in conversation — no decoding step needed. The base64 representation adds friction and wastes context window tokens on encoding overhead.
Implementation
Decode the
content_base64field from the Forgejo API response (standard base64 → UTF-8) and return it ascontentin the tool response. Optionally keepcontent_base64as well, butcontentshould be the primary field.Tested again on 2026-04-09.
get_wiki_pagestill returnscontent_base64rather than decodedcontent. This fix hasn't been applied yet.