LL

line/line-bot-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

793 stars 156 forks Качество 89 Тренд 42Apache-2.0

MCP-сервер, интегрирующий API LINE Messaging для подключения AI-агента к официальной учетной записи LINE.

Обзор

Реализация сервера Model Context Protocol (MCP), интегрирующая API LINE Messaging для подключения AI-агента к официальной учетной записи LINE. Этот репозиторий предоставлен в виде предварительной версии. Хотя мы предлагаем его для экспериментальных целей, обратите внимание, что он может не включать полную функциональность или комплексную поддержку. 1. - Отправить простое текстовое сообщение пользователю через LINE. - - userId (строка?): User ID для получения сообщения. По умолчанию DESTINATION_USER_ID. Необходимо установить userId или DESTINATION_USER_ID. - message.text (строка): Обычный текст для отправки пользователю. 2. - Отправить высоконастраиваемое flex-сообщение пользователю через LINE. - - userId (строка?): User ID для получения сообщения. По умолчанию DESTINATION_USER_ID. Необходимо установить userId или DESTINATION_USER_ID. - message.altText (строка): Альтернативный текст, отображаемый при невозможном отображении flex-сообщения. - message.contents (any): Содержимое flex-сообщения.

Обзор (машинный перевод)

日本語版 READMEはこちら

LINE Bot MCP сервер

Реализация сервера Model Context Protocol (MCP), интегрирующая API LINE Messaging для подключения AI-агента к официальной учетной записи LINE.

[! ПРИМЕЧАНИЕ] Этот репозиторий предоставляется в виде предварительной версии. Хотя мы предлагаем его для экспериментальных целей, обратите внимание, что он может не включать полную функциональность или полную поддержку.

Инструменты

  1. push_text_message
  • Отправить простое текстовое сообщение пользователю через LINE.
  • Входы:
  • userId (строка?): ID пользователя для получения сообщения. По умолчанию DESTINATION_USER_ID. Должны быть установлены либо userId, либо DESTINATION_USER_ID.
  • message.text (строка): Обычный текстовый контент для отправки пользователю.
  1. push_flex_message
  • Отправить высоконастраиваемое flex-сообщение пользователю через LINE.
  • Входы:
  • userId (строка?): Идентификатор пользователя для получения сообщения. По умолчанию DESTINATION_USER_ID. Должны быть установлены либо userId, либо DESTINATION_USER_ID.
  • message.altText (строка): Альтернативный текст, отображаемый при невозможности отображения flex-сообщения.
  • message.contents (любой): Содержимое flex-сообщения. Это JSON-объект, который определяет расположение и компоненты сообщения.
  • Сообщение.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

日本語版 READMEはこちら

LINE Bot MCP Server

Model Context Protocol (MCP) server implementation that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

[!NOTE] This repository is provided as a preview version. While we offer it for experimental purposes, please be aware that it may not include complete functionality or comprehensive support.

Tools

  1. push_text_message
    • Push a simple text message to a user via LINE.
    • Inputs:
      • userId (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either userId or DESTINATION_USER_ID must be set.
      • message.text (string): The plain text content to send to the user.
  2. push_flex_message
    • Push a highly customizable flex message to a user via LINE.
    • Inputs:
      • userId (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either userId or DESTINATION_USER_ID must be set.
      • message.altText (string): Alternative text shown when flex message cannot be displayed.
      • message.contents (any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.
      • message.contents.type (enum): Type of the container. ‘bubble’ for single container, ‘carousel’ for multiple swipeable bubbles.
  3. broadcast_text_message
    • Broadcast a simple text message via LINE to all users who have followed your LINE Official Account.
    • Inputs:
      • message.text (string): The plain text content to send to the users.
  4. broadcast_flex_message
    • Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.
    • Inputs:
      • message.altText (string): Alternative text shown when flex message cannot be displayed.
      • message.contents (any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.
      • message.contents.type (enum): Type of the container. ‘bubble’ for single container, ‘carousel’ for multiple swipeable bubbles.
  5. get_profile
    • Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.
    • Inputs:
      • userId (string?): The ID of the user whose profile you want to retrieve. Defaults to DESTINATION_USER_ID.
  6. get_message_quota
    • Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.
    • Inputs:
      • None
  7. get_rich_menu_list
    • Get the list of rich menus associated with your LINE Official Account.
    • Inputs:
      • None
  8. delete_rich_menu
    • Delete a rich menu from your LINE Official Account.
Открыть полный README на GitHub

Установка

npx @line/line-bot-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "line-bot": { "command": "npx", "args": [ "@line/line-bot-mcp-server" ], "env": { "NPM_CONFIG_IGNORE_SCRIPTS": "true", "CHANNEL_ACCESS_TOKEN" : "FILL_HERE", "DESTINATION_USER_ID" : "FILL_HERE" } } } }