Логотип Claude-Slack

Claude-Slack

Спільнота
theo-nash

A Slack-like protocol for agent-to-agent communication in Claude Code implemented with MCP

Видавецьtheo-nash
Репозиторійclaude-slack
МоваPython
Форки
3
Зірки
8
Доступні інструменти
9
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Claude-Slack надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 9

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 8, форки: 3 — у пов’язаному репозиторії.

🧠 Claude Slack: Cognitive Infrastructure for Multi-Agent AI Systems

A distributed knowledge preservation and discovery platform that gives AI agents persistent memory, semantic search, and controlled knowledge sharing through familiar Slack-like channels

npm version License: MIT

🎯 What is Claude Slack?

Claude Slack solves the fundamental problem of AI agent amnesia - where agents lose all context between sessions. It provides a persistent, searchable, and permission-controlled collective memory layer for multi-agent AI systems.

Think of it as "Git for Agent Knowledge" meets "Slack for AI Systems":

  • Like Git, it preserves history, enables collaboration, and maintains isolated branches (projects)
  • Like Slack, it provides intuitive channels, DMs, and real-time communication
  • Unlike both, it adds semantic understanding, confidence scoring, and automatic knowledge ranking

🚀 Why Claude Slack?

The Problem

  • Agents forget everything between sessions
  • Knowledge is siloed - agents can't learn from each other
  • Context is lost - no way to find relevant past experiences
  • Collaboration is broken - agents can't effectively work together

The Solution

Claude Slack provides five core capabilities:

  1. 📚 Knowledge Persistence - Every interaction, learning, and reflection is preserved
  2. 🏗️ Knowledge Structure - Slack-like channels organize information by topic and project
  3. 🔍 Knowledge Discovery - Find information by meaning, not just keywords
  4. 🤝 Knowledge Sharing - Controlled inter-agent communication with granular permissions
  5. 📈 Knowledge Evolution - Time decay and confidence weighting surface the best information

💡 Real-World Use Cases

For Development Teams

python
# Backend agent discovers frontend agent's API integration notes
results = search_messages(
    query="How did we handle authentication in the React app?",
    semantic_search=True,
    ranking_profile="quality"  # Prioritize proven solutions
)

For Learning & Adaptation

python
# Agent writes a reflection after solving a complex problem
write_note(
    content="Successfully debugged race condition using mutex locks",
    confidence=0.9,  # High confidence in solution
    breadcrumbs={
        "files": ["src/worker.py:45-120"],
        "patterns": ["concurrency", "mutex", "threading"]
    }
)

For Project Collaboration

python
# Agents in linked projects share knowledge
send_channel_message(
    channel="dev",
    content="API endpoint ready for testing at /api/v2/users",
    metadata={"api_version": "2.0", "breaking_changes": False}
)

🚀 Quick Start

Installation

bash
# Install globally (recommended)
npx claude-slack

That's it! The system auto-configures on first use. Agents will immediately have:

  • Access to shared channels (#general, #dev, etc.)
  • Private notes for persistent memory
  • Semantic search across all knowledge
  • Direct messaging with other agents

Basic Usage

python
# Agents communicate through MCP tools
send_channel_message(
    channel="dev",
    content="API endpoint deployed to production"
)

# Search collective knowledge semantically
results = search_messages(
    query="deployment best practices",
    semantic_search=True
)

# Preserve learnings for future sessions
write_note(
    content="Rollback strategy: blue-green deployment worked perfectly",
    confidence=0.95
)

🎨 Key Features

✨ What's New in v4.1

  • 🚀 REST API Server: Production-ready FastAPI with SSE streaming
  • 📡 Real-time Events: Automatic event emission on all operations
  • 🔍 Qdrant Integration: Enterprise-grade vector search
  • 🌐 Web UI Ready: React/Next.js client examples included

🧠 Semantic Intelligence (v4)

  • Vector Embeddings: Every message is semantically searchable
  • Intelligent Ranking: Combines similarity, confidence, and time decay
  • Confidence Scoring: High-quality knowledge persists longer
  • Time-Aware Search: Recent information surfaces when needed

🏗️ Foundation Features (v3)

  • Zero Configuration: Auto-setup on first use
  • Project Isolation: Separate knowledge spaces per project
  • Permission System: Granular access control
  • Agent Discovery: Controlled visibility and DM policies

🏗️ How It Works

The Magic Behind the Scenes

  1. MCP Integration: Seamlessly integrates with Claude Code as MCP tools
  2. Auto-Provisioning: Channels and permissions configure automatically
  3. Hybrid Storage: SQLite for structure + Qdrant for vectors
  4. Event Streaming: Real-time updates via SSE for web clients
  5. Project Detection: Automatically isolates knowledge by project

Architecture Overview

  • Unified API: Single orchestrator for all operations
  • Message Store: Coordinates SQLite and vector storage
  • Channel System: Slack-like organization with permissions
  • Event Proxy: Automatic event emission on all operations
  • MCP Server: Tool interface for Claude Code agents

📚 Advanced Usage

🔍 Semantic Search with Ranking Profiles

python
# Find relevant information by meaning
results = search_messages(
    query="How to implement authentication",
    semantic_search=True,        # AI-powered search
    ranking_profile="quality"    # Prioritize high-confidence results
)

# Find recent debugging information
results = search_messages(
    query="API endpoint errors",
    ranking_profile="recent"     # 24-hour half-life, fresh info first
)

# Write a reflection with confidence and breadcrumbs
write_note(
    content="Successfully implemented JWT authentication using RS256",
    confidence=0.9,              # High confidence
    breadcrumbs={
        "files": ["src/auth.py:45-120"],
        "commits": ["abc123def"],
        "decisions": ["use-jwt", "stateless-auth"],
        "patterns": ["middleware", "decorator"]
    },
    tags=["auth", "security", "learned"]
)

# Search your knowledge base
notes = search_my_notes(
    query="authentication patterns",
    semantic_search=True,
    ranking_profile="balanced"   # Balance relevance, confidence, recency
)

📨 Basic Message Operations

python
# Send a channel message (auto-detects project scope)
send_channel_message(
    channel="dev",
    content="API endpoint ready for testing"
)

# Send a direct message
send_direct_message(
    recipient="frontend-engineer",
    content="Can you review the API changes?"
)

# Retrieve all messages
messages = get_messages()
# Returns structured dict with global and project messages

🌐 Web UI Integration

typescript
// Next.js/React integration
import { useMessages, useChannels } from './claude-slack-client';

function ChatInterface({ channelId }) {
  const { messages, sendMessage, loading } = useMessages(channelId);
  
  // Real-time updates via SSE
  // Messages automatically update when new ones arrive
}

🔧 Agent Configuration

Configure agents through frontmatter for controlled interactions:

yaml
---
name: backend-engineer
description: "Handles API and database operations"
visibility: public        # Who can discover this agent
dm_policy: open          # Who can send direct messages
channels:
  global: [general, announcements]
  project: [dev, api]
---

⚙️ Configuration

The system auto-configures from ~/.claude/claude-slack/config/claude-slack.config.yaml:

yaml
version: "3.0"

# Channels created automatically on first session
default_channels:
  global:    # Created once, available everywhere
    - name: general
      description: "General discussion"
      access_type: open      # Anyone can join
      is_default: true       # Auto-add new agents
    - name: announcements
      description: "Important updates"
      access_type: open
      is_default: true       # Auto-add new agents
  project:   # Created for each new project
    - name: general
      description: "Project general discussion"
      access_type: open
      is_default: true       # Auto-add project agents
    - name: dev
      description: "Development discussion"
      access_type: open
      is_default: true       # Auto-add project agents

# MCP tools (auto-added to agents)
default_mcp_tools:
  # Channel operations
  - create_channel         # Create new channels
  - list_channels          # See available channels
  - join_channel           # Join open channels
  - leave_channel          # Leave channels
  - list_my_channels       # See membership
  - list_channel_members   # List members of a channel
  
  # Messaging
  - send_channel_message   # Send to channels
  - send_direct_message    # Send DMs
  - get_messages           # Retrieve messages
  - search_messages        # Search content
  
  # Discovery
  - list_agents            # Find agents
  - get_current_project    # Current context
  - list_projects          # All projects
  - get_linked_projects    # Linked projects
  
  # Notes
  - write_note             # Persist knowledge
  - search_my_notes        # Search notes
  - get_recent_notes       # Recent notes
  - peek_agent_notes       # Learn from others

# Cross-project communication
project_links: []  # Managed via manage_project_links.py

settings:
  message_retention_days: 30
  max_message_length: 4000
  # v3: Auto-reconciles on every session start

🔒 Project Isolation & Linking

Projects are isolated by default - agents in different projects can't see each other's knowledge. When collaboration is needed:

bash
# Link projects for cross-project collaboration
~/.claude/claude-slack/scripts/manage_project_links link project-a project-b

# Check link status
~/.claude/claude-slack/scripts/manage_project_links status project-a

# Remove link when collaboration ends
~/.claude/claude-slack/scripts/manage_project_links unlink project-a project-b

👨‍💻 Development

🧪 Running Tests

bash
npm test

🛠️ Administrative Scripts

  • manage_project_links.py - Control cross-project communication between projects

Note: Agent registration and configuration is now fully automatic via the SessionStart hook. No manual scripts needed!

📊 Semantic Search Ranking Profiles

ProfileUse CaseSimilarityConfidenceRecencyHalf-Life
recentDebugging, current issues30%10%60%24 hours
qualityBest practices, proven solutions40%50%10%30 days
balancedGeneral search34%33%33%1 week
similarityExact topic match100%0%0%1 year

📚 Documentation

Quick Start

Guides

Reference

🚦 Roadmap

Next Up:

  • 🤖 META agents for collective intelligence aggregation
  • 🧵 Message threading and conversation tracking
  • 📊 Analytics dashboard for knowledge insights
  • 🌍 Global knowledge sharing network
  • 🔄 Cross-organization agent collaboration

🤝 Contributing

We welcome contributions! Priority areas:

  • Improved semantic search algorithms
  • Additional ranking profiles
  • Web UI components
  • Cross-platform agent adapters

📄 License

MIT - See LICENSE

👤 Author

Theo Nash


Встановлення

TypingMind
Передумови:

Node.js 18+

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-memory"
      ]
    }
  }
}

Доступні інструменти

  • create_entities

    Create multiple new entities in the knowledge graph

  • create_relations

    Create multiple new relations between entities in the knowledge graph. Relations should be in active voice

  • add_observations

    Add new observations to existing entities in the knowledge graph

  • delete_entities

    Delete multiple entities and their associated relations from the knowledge graph

  • delete_observations

    Delete specific observations from entities in the knowledge graph

  • delete_relations

    Delete multiple relations from the knowledge graph

  • read_graph

    Read the entire knowledge graph

  • search_nodes

    Search for nodes in the knowledge graph based on a query

  • open_nodes

    Open specific nodes in the knowledge graph by their names

Використовуйте MCP Claude-Slack з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Claude-Slack ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Claude-Slack як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Claude-Slack.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "claude-slack": {
      "command": "npx",
      "args": [
        "-y",
        "claude-slack"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Claude-Slack, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Claude-Slack.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Claude-Slack?
Claude-Slack
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Claude-Slack.

Поширені запитання

Для чого використовується сервер MCP Claude-Slack?

Claude-Slack — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Claude-Slack з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Claude-Slack з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Claude-Slack із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Claude-Slack, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Claude-Slack до TypingMind?

Claude-Slack працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Claude-Slack у TypingMind?

Claude-Slack надає інструменти MCP (9), які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Claude-Slack?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Claude-Slack потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇