Include channel ID and permalink in search results#265
Open
tmastny wants to merge 1 commit intokorotovsky:masterfrom
Open
Include channel ID and permalink in search results#265tmastny wants to merge 1 commit intokorotovsky:masterfrom
tmastny wants to merge 1 commit intokorotovsky:masterfrom
Conversation
The Slack search API returns both Channel.ID and Permalink on every SearchMessage, but the MCP server was only using Channel.Name (formatted as '#channel-name') and discarding the rest. This made it impossible for LLM agents to construct valid Slack permalink URLs. - Add Permalink field to Message struct - Include msg.Channel.ID in the Channel column (format: 'C0515UGHR0R (#channel-name)') - Pass through msg.Permalink from the Slack API response Addresses korotovsky#100.
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.
Addresses #100.
Search results from conversations_search_messages only includes the channel display name, like #general. The Slack search API returns both Channel.ID and Permalink on every SearchMessage, but they are not included in convertMessagesFromSearch.
I often want permalinks to the message to add to docs or to open the thread myself, but I can't reliably get the LLM agent to reconstruct the link. This makes it possible.
Changes:
C0515UGHR0R (#general)Permalinkcolumn passes throughmsg.Permalinkfrom the API responseThis is similar to #133, but I think worthwhile on its own. Instead of adding a new tool to construct permalinks (which is still useful!) this passes permalinks through when available.