mcp-slack-wizards
access slack wizard channels
Hackathon 2025 considerations
- Hackathon participants will not be allowed to access the official newrelic slack workspace. Instead, we will be using the test environment "DN-Staging".
- @dmiyamasu has gained access to the test environment and created a slack app, which will allow our app to call the Slack API in the DN-Staging environment.
- Slack API docs available here
- Contact @dmiyamasu to be granted access to the DN-Staging slack app as a collaborator and provision an OAuth key
Sample API requests
Use the Slack API to Search Messages
Slack provides the search.messages API method to search for messages across public channels.
curl -X GET "https://slack.com/api/search.messages?query=your_search_term" \
-H "Authorization: Bearer xoxb-your-token"
Retrieve Messages from Specific Channels
If you need to fetch messages from a specific channel:
- Use conversations.list to get a list of public channels.
- Use conversations.history to fetch messages from a specific channel.
curl -X GET "https://slack.com/api/conversations.history?channel=CHANNEL_ID" \
-H "Authorization: Bearer xoxb-your-token"
Fetch Threaded Messages
If a message has replies (a thread), use conversations.replies to retrieve them.
curl -X GET "https://slack.com/api/conversations.replies?channel=CHANNEL_ID&ts=THREAD_TS" \
-H "Authorization: Bearer xoxb-your-token"
