MCP cover image
See in Github
2024-12-13

企业等级聊天机器人

2

Github Watches

12

Github Forks

48

Github Stars

Microsoft Bot - AI Assistant with MCP Integration

A Slack AI assistant powered by Claude 3.5 Sonnet that combines Microsoft's enthusiasm with modern AI capabilities. The bot integrates the Model Context Protocol (MCP) to enable dynamic tool usage and extensibility.

Features

  • 🤖 Microsoft-themed AI assistant with Claude 3.5 Sonnet integration
  • 🔧 Dynamic tool management through MCP (Model Context Protocol)
  • 📊 Channel summarization capabilities
  • 💬 Threaded conversations with context awareness
  • 🛠️ Extensible tool system with runtime server management

Prerequisites

  • Slack workspace with admin permissions
  • Anthropic API key
  • Node.js installed
  • (Optional) Python with uv installed for Python-based tools

Environment Variables

Create a .env file with the following:

SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_APP_TOKEN=xapp-your-app-token
ANTHROPIC_API_KEY=your-anthropic-key

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Create and configure your Slack app:
    • Create a new Slack app at https://api.slack.com/apps
    • Add necessary bot scopes (messages, channels, etc.)
    • Install the app to your workspace
    • Copy the bot and app tokens to your .env file

MCP Server Integration

The bot supports dynamic integration with MCP servers. Two example servers are included:

  1. Amazon Fresh Server
  2. Python Local Server

You can add new MCP servers at runtime using the bot's commands:

add_mcp_server [name] [command] [args...]
remove_mcp_server [name]
list_mcp_servers

Running the Bot

npm start

Features in Detail

Channel Summarization

Users can request a summary of recent channel activity using the command:

Assistant, please summarize the activity in this channel!

Conversation Context

The bot maintains conversation context within threads and can:

  • Process message history
  • Handle tool calls dynamically
  • Maintain consistent Microsoft-themed personality
  • Format messages appropriately for Slack

Tool Integration

  • Dynamic tool discovery from MCP servers
  • Runtime server management
  • Tool call processing with result handling
  • Automatic server reconnection

Development

Project Structure

  • src/app.ts: Main application logic
  • src/mcp-manager.ts: MCP server management
  • Tool servers: Separate processes that provide additional functionality

Adding New Tools

  1. Create a new MCP-compatible server
  2. Add the server using the bot's add_mcp_server command
  3. Tools will be automatically discovered and made available

License

[Add your license information here]

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

    Reviews

    2 (1)
    Avatar
    user_KP7vDmJr
    2025-04-17

    I've been using mcp-bot by Alec2435 for a while now, and it has significantly boosted my productivity. The ease of integration and the responsive design make it a top-notch tool for any developer. Highly recommend checking it out on GitHub: https://github.com/Alec2435/mcp-bot.