Skip to content

Conversation

mthines
Copy link

@mthines mthines commented May 22, 2025

✨ Add Comment Support for Linear MCP

Summary

This PR introduces full comment functionality to the Linear MCP, enabling users to create, update, delete, and retrieve comments associated with issues. It also includes a backward compatibility layer for retrieving issue comments via a legacy alias, and improves the consistency of error handling across comment-related operations.

🆕 Features

Create Comment: Ability to add comments to Linear issues.

Update Comment: Edit existing comments.

Delete Comment: Remove comments by ID.

Retrieve Comments: Fetch all comments associated with a given issue.

🔄 Backward Compatibility

Introduced an alias to maintain compatibility with systems expecting the previous method for fetching issue comments.

🛠 Fixes & Improvements

Refactored error handling logic across comment endpoints to ensure errors are returned in a consistent and predictable format.

📌 Notes

These enhancements lay the groundwork for richer collaborative features in the MCP. Please review with an eye on edge cases around comment ownership and permissions (if relevant to your context).

*/
protected createJsonResponse(data: unknown): BaseToolResponse {
return this.createResponse(JSON.stringify(data, null, 2));
return {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please let me know if this causes issues in cases I do not know :)

@ocasta181
Copy link
Contributor

hey @mthines,
apologies for the delay on this. There appear to be some merge conflicts. I'm happy to try to resolve them if you'd like, but I wanted to be sure that you had the chance to take a look since it may affect the expected behavior.

Let me know your thoughts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants