Follow these steps to run the Meshagent MCP Line agent and toolkit in the cloud.

️🔒 Required Environment Variables

Set the following environment variables (replace values as needed):

  • DESTINATION_USER_ID: (string) The LINE user ID to receive messages.
  • CHANNEL_ACCESS_TOKEN: (string) Channel access token for your LINE Official Account.

🚀 Run in the Cloud

  1. Install Meshagent:

    pip install "meshagent[all]"
    
  2. Sign up & Authenticate:

  3. Deploy MCP Server as a Meshagent Room Callable:

    meshagent service test \
      --room=test \
      --role=agent \
      --image=meshagent/mcp-line:latest \
      --env MESHAGENT_PORT=8001 \
      --env DESTINATION_USER_ID=FILL_HERE \
      --env CHANNEL_ACCESS_TOKEN=FILL_HERE \
      --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" \
      --name=mcp-line-service
    
    • Note: This command starts the Meshagent room and deploys the MCP Line server as a callable agent tool. Rooms close if inactive.
  4. Join with a Meshagent Chatbot Using the Toolkit:

    meshagent chatbot join \
      --room=test \
      --agent-name=sample \
      --name=sample \
      --toolkit=mcp-line
    
    • This starts a chatbot in your Meshagent room that can use the LINE toolkit.
    • Multiple toolkits can be attached to the same agent in the same room.
    • The output of this command will include a link to your Meshagent room for interactive testing.

Tools Available

This Meshagent MCP server provides the following capabilities for use in Meshagent Rooms:

Tool Summary

Tool NameShort Description
broadcast_flex_messageBroadcast a customizable flex message via LINE to all users who have added your Official Account.
broadcast_text_messageBroadcast a simple text message via LINE to all users who follow your Official Account.
get_message_quotaGet the message quota and consumption of your LINE Official Account.
get_profileGet profile info (name, photo, status, language) for a LINE user.
push_flex_messagePush a flex message to an individual user via LINE.
push_text_messagePush a simple text message to a specific user via LINE.

Tools Details

Tool: broadcast_flex_message

Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts. Please be aware that this message will be sent to all users.

Parameters

NameTypeDescription
messageobject

Tool: broadcast_text_message

Broadcast a simple text message via LINE to all users who have followed your LINE Official Account. Use this for sending plain text messages without formatting. Please be aware that this message will be sent to all users.

Parameters

NameTypeDescription
messageobject

Tool: get_message_quota

Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.


Tool: get_profile

Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.

Parameters

NameTypeDescription
userIdstring*LINE user ID (optional). Defaults to DESTINATION_USER_ID.

Tool: push_flex_message

Push a highly customizable flex message to a user via LINE. Supports both bubble (single container) and carousel (multiple swipeable bubbles) layouts.

Parameters

NameTypeDescription
messageobject
userIdstring*LINE user ID (optional). Defaults to DESTINATION_USER_ID.

Tool: push_text_message

Push a simple text message to a user via LINE. Use this for sending plain text messages without formatting.

Parameters

NameTypeDescription
messageobject
userIdstring*LINE user ID (optional). Defaults to DESTINATION_USER_ID.

Meshagent & MCP Server Resources

For issues or contributions, please refer to each tool’s linked repository or documentation.