
line/line-bot-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
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.
[! ПРИМЕЧАНИЕ] Этот репозиторий предоставляется в виде предварительной версии. Хотя мы предлагаем его для экспериментальных целей, обратите внимание, что он может не включать полную функциональность или полную поддержку.
Инструменты
- push_text_message
- Отправить простое текстовое сообщение пользователю через LINE.
- Входы:
userId(строка?): ID пользователя для получения сообщения. По умолчанию DESTINATION_USER_ID. Должны быть установлены либоuserId, либоDESTINATION_USER_ID.message.text(строка): Обычный текстовый контент для отправки пользователю.
- push_flex_message
- Отправить высоконастраиваемое flex-сообщение пользователю через LINE.
- Входы:
userId(строка?): Идентификатор пользователя для получения сообщения. По умолчанию DESTINATION_USER_ID. Должны быть установлены либоuserId, либоDESTINATION_USER_ID.message.altText(строка): Альтернативный текст, отображаемый при невозможности отображения flex-сообщения.message.contents(любой): Содержимое flex-сообщения. Это JSON-объект, который определяет расположение и компоненты сообщения.- Сообщение.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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
- 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. EitheruserIdorDESTINATION_USER_IDmust be set.message.text(string): The plain text content to send to the user.
- 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. EitheruserIdorDESTINATION_USER_IDmust 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.
- 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.
- 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.
- 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.
- 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
- get_rich_menu_list
- Get the list of rich menus associated with your LINE Official Account.
- Inputs:
- None
- delete_rich_menu
- Delete a rich menu from your LINE Official Account.
Установка
npx @line/line-bot-mcp-serverКонфигурация
{
"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"
}
}
}
}