feat: add block-kit rich responses example#102
Draft
zimeg wants to merge 4 commits into
Draft
Conversation
Extends the slack-identity example with Block Kit responses via _meta.slack.blocks, demonstrating the card block type for profile display and a section block with install button as fallback.
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
This pull request adds a Block Kit rich responses example at
ai/slackbot-mcp-client/rich-responses/block-kit/._meta.slack.blocksin tool responsescardblock type for profile display (icon, title, subtitle, body)sectionblock with install button as fallback when app is not installedsupportsBlockKit: truetool metadata declarationThe example sits alongside
rich-responses/mcp-apps/and demonstrates the Block Kit path documented at https://docs.slack.dev/ai/slackbot-mcp-client/returning-rich-responses#block-kit.Testing
cd ai/slackbot-mcp-client/rich-responses/block-kit && npm testto verify all 3 tests pass (card block response, install button fallback, unsigned rejection)npm startand send a signed MCP request to/mcpto see the Block Kit card response