feat: post Linear issue link to Slack thread on MCP issue creation (CYPACK-1048)#1075
Open
cyrusagent wants to merge 2 commits into
Open
feat: post Linear issue link to Slack thread on MCP issue creation (CYPACK-1048)#1075cyrusagent wants to merge 2 commits into
cyrusagent wants to merge 2 commits into
Conversation
…YPACK-1048) When Cyrus creates a Linear issue via `mcp__linear__save_issue` during a Slack session, a notification message with the issue link is now posted to the Slack thread automatically. - Add `ToolResultCallback` mechanism to `AgentSessionManager` for reacting to tool results - Add `postThreadMessage` to `ChatPlatformAdapter` interface for mid-session thread notifications - Implement the hook in `ChatSessionHandler` to detect Linear issue creation and post the link - Add `postThreadMessage` to `SlackChatAdapter`
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.
Assignee: @PaytonWebber (payton)
Summary
When Cyrus creates a Linear issue via
mcp__linear__save_issueduring a Slack session, a notification message with the issue link is now automatically posted to the Slack thread.Changes:
ToolResultCallbackmechanism toAgentSessionManagerthat fires when any tool result is processed, allowing consumers to react to specific tool completionspostThreadMessagemethod toChatPlatformAdapterinterface for mid-session thread notificationsChatSessionHandlerregisters a tool result listener that detectsmcp__linear__save_issueresults and posts the issue link (with identifier) to the threadSlackChatAdapterimplementspostThreadMessageusing the existingSlackMessageServiceDesign decisions:
Resolves CYPACK-1048
Test plan
extractLinearIssueUrl(JSON, plain text, empty, no URL)extractLinearIssueIdentifier(JSON, plain text, no identifier)handleToolResultNotification(happy path, wrong tool, error result, missing session, missing adapter method, no URL in result)AgentSessionManager.onToolResultcallback mechanism (fires on tool result, multiple callbacks, error results marked, callback errors don't break processing)