We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SajidAlamQB/kedro-mcp-rag'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup_slack.pyā¢1.26 KiB
#!/usr/bin/env python3
"""
Setup script for Slack integration with Kedro RAG MCP server.
"""
import os
import sys
from pathlib import Path
def setup_slack_env():
"""Set up Slack environment variables."""
print("š§ Setting up Slack Integration for Kedro RAG")
print("=" * 50)
# Get the bot token
bot_token = input("\nš Enter your Slack Bot Token (starts with xoxb-): ").strip()
if not bot_token.startswith('xoxb-'):
print("ā Invalid token format. Bot tokens should start with 'xoxb-'")
return False
# Create .env file
env_file = Path(__file__).parent / '.env'
with open(env_file, 'w') as f:
f.write(f"SLACK_BOT_TOKEN={bot_token}\n")
print(f"\nā Environment file created: {env_file}")
# Also set for current session
os.environ['SLACK_BOT_TOKEN'] = bot_token
print("\nš Slack integration configured!")
print("\nNext steps:")
print("1. Restart your MCP server")
print("2. Invite the bot to channels you want to search")
print("3. Test with: python test_slack_integration.py")
return True
if __name__ == "__main__":
if setup_slack_env():
print("\n⨠Setup complete!")
else:
print("\nā Setup failed!")
sys.exit(1)