Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
MCP serverCẩn thậnTính năng AI & LLMCần cài đặt chút

mcp-server-chatsum

chatmcp · chatmcp/mcp-server-chatsum

MCP server này cho phép các tác nhân truy vấn và tóm tắt tin nhắn trò chuyện từ cơ sở dữ liệu trò chuyện do người dùng cấu hình.

Truy vấn và tóm tắt tin nhắn trò chuyện của bạn.

1k sao101Giấy phép: Không có giấy phépCập nhật 2 năm trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Yêu cầu tác nhân của bạn tóm tắt một cuộc trò chuyện dài mà bạn đã có ngày hôm qua.
  • Tìm các tin nhắn trò chuyện cụ thể dựa trên từ khóa hoặc người tham gia trong lịch sử trò chuyện của bạn.
  • Tích hợp tóm tắt trò chuyện trực tiếp vào quy trình làm việc của tác nhân để truy xuất ngữ cảnh nhanh chóng.

Kiểm tra an toàn

Cẩn thận

Dùng được, nhưng nên đọc ghi chú trước.

  • ●Không có giấy phép rõ ràng: hỏi tác giả trước khi dùng cho sản phẩm thương mại.
  • ●Hơn một năm không cập nhật.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

mcp-server-chatsum

This MCP Server is used to summarize your chat messages.

中文说明

Before you start

move to chatbot directory, follow the README to setup the chat database.

start chatbot to save your chat messages.

Features

Resources

Tools

  • query_chat_messages - Query chat messages
    • Query chat messages with given parameters
    • Summarize chat messages based on the query prompt

Prompts

Development

  1. Set up environment variables:

create .env file in the root directory, and set your chat database path.

CHAT_DB_PATH=path-to/chatbot/data/chat.db
  1. Install dependencies:
pnpm install

Build the server:

pnpm build

For development with auto-rebuild:

pnpm watch

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-server-chatsum": {
      "command": "path-to/bin/node",
      "args": ["path-to/mcp-server-chatsum/build/index.js"],
      "env": {
        "CHAT_DB_PATH": "path-to/mcp-server-chatsum/chatbot/data/chat.db"
      }
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

pnpm inspector

The Inspector will provide a URL to access debugging tools in your browser.

Community

About the author

Xem mã nguồn trên GitHub