feat: add post_space_attachment, delete_issue_comment, delete_issue_attachment tools#112
Open
ThuanD wants to merge 1 commit into
Open
feat: add post_space_attachment, delete_issue_comment, delete_issue_attachment tools#112ThuanD wants to merge 1 commit into
ThuanD wants to merge 1 commit into
Conversation
c31ca85 to
8317b73
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds three tools that enable a complete attachment workflow and comment/attachment cleanup:
post_space_attachment(space toolset) — Uploads a file to Backlog space. Supports local file path or base64-encoded content. Returns attachment ID for use withadd_issue_commentorupdate_issue.delete_issue_comment(issue toolset) — Deletes a comment from an issue.delete_issue_attachment(issue toolset) — Deletes an attachment from an issue.Motivation
We use this MCP server in our AI-assisted development workflow. When agents fix bugs, they need to attach evidence (screenshots, API response diffs) to Backlog issues. Currently the
server can create comments but cannot upload files or clean up outdated comments/attachments. These three tools close that gap.
All tools follow existing patterns (
resolveIdOrKey,buildToolSchema,TranslationHelper,outputSchema).Test plan
npm test— all 347 tests pass (16 new)npm run lint— cleannpm run format— clean