feat(attachments): add MCP attachment tools and metadata support#413
Open
jmynes wants to merge 6 commits into
Open
feat(attachments): add MCP attachment tools and metadata support#413jmynes wants to merge 6 commits into
jmynes wants to merge 6 commits into
Conversation
Add three new MCP tools for managing ticket attachments: - add_attachment: upload a local file and attach it to a ticket - list_attachments: list all attachments on a ticket - remove_attachment: remove an attachment by ID or filename Adds multipart/form-data support to the MCP API client for file uploads. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add application/json to allowed document types across the upload pipeline, admin settings, client defaults, schema defaults, MCP extension map, fuzz tests, and docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add application/jsonl to allowed document types across the upload pipeline, admin settings, client defaults, schema defaults, MCP extension map, fuzz tests, and docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add text/markdown to allowed document types across the upload pipeline, admin settings, client defaults, schema defaults, MCP extension map, fuzz tests, and docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add ability to download ticket attachments to local filesystem via MCP. Includes a new streaming API endpoint and MCP tool that supports lookup by attachment ID or filename. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…etadata Add semantic metadata fields to attachments so AI agents can tag what an attachment represents (plan, transcript, screenshot, etc.) and which codebase version was being referenced. - Add AttachmentPurpose enum and three nullable fields to Prisma schema - Update POST/PATCH API routes, export schema, and MCP tools - Add update_attachment MCP tool for editing metadata on existing attachments - Display purpose badges and commit hashes in attachment list UI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thank you for your contribution! Before we can merge this PR, you need to sign our Contributor License Agreement. To sign the CLA, please reply to this comment with:
You only need to sign once. After signing, all your future contributions are covered. I have read the CLA Document and I hereby sign the CLA Some sucker that doesnt know how to be private seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
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
Note: This code was written by an external collaborator (no GitHub account) and applied from a git bundle.
Corresponds to PUNT-334.
add_attachment,list_attachments,remove_attachment,download_attachment, andupdate_attachmentpurpose(plan, transcript, screenshot, etc.),sourceCommit, andcommitDirtyStatusfor AI agent context trackingCommits
e989470feat(mcp): add file attachment tools (add, list, remove)b4f976efeat(upload): add JSON as allowed attachment typeb0aa839feat(upload): add JSONL as allowed attachment typee0b7701feat(upload): add Markdown as allowed attachment type1b92d1efeat(mcp): add download_attachment toolcb2e9b7feat(attachments): add purpose, sourceCommit, and commitDirtyStatus metadataTest plan
pnpm testto confirm no regressions