Add reply message tools #287
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
With the rapid evolution of AI Agents and workflow automation tools, there's an increasing demand for seamless integration between AI systems and messaging platforms.
Modern AI Agent platforms like Mastra, n8n, and other workflow automation tools are becoming more sophisticated and require the ability to interact with users through various channels.
Currently, the LINE Bot MCP Server only supports push and broadcast messaging, which are paid features in LINE's pricing model.
However, reply messages are free, making them a more cost-effective solution for AI Agent interactions. Additionally, reply functionality enables immediate responses to user messages through webhook events, creating more natural conversational experiences.
Summary
This PR adds reply message functionality to the LINE Bot MCP Server, enabling webhook-based message responses that AI Agents can utilize for cost-effective, real-time user interactions.
Changes
New Tools Added
Technical Changes
src/tools/replyTextMessage.tsandsrc/tools/replyFlexMessage.tsNO_REPLY_TOKEN_ERRORconstant for error handlingsrc/index.tsto register new reply toolsreplyTokenparameter for webhook-based responsesDocumentation Updates
README.mdandREADME.ja.mdto include new reply toolsUse Case
These reply tools enable AI Agents to: