Follow these steps to run an MCP server as a Meshagent cloud service and use its tools in a Meshagent room.

  1. Install Meshagent Python SDK

    pip install "meshagent[all]"
    
  2. Sign Up and Authenticate

  3. Run the MCP Server in a Meshagent Room

    meshagent service test --room=test --role=agent --image=meshagent/mcp-time:latest --env MESHAGENT_PORT=8001  --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" --name=mcp-time-service
    
    • This command starts a Meshagent room named test with the MCP time server available as a tool. Rooms will close if they go inactive.
  4. Start a Chatbot Connected to the Room with the Time Toolkit

    meshagent chatbot join --room=test --agent-name=sample --name=sample --toolkit=mcp-time
    
    • This command launches a chatbot agent in the test room with the mcp-time toolkit enabled.
    • Multiple toolkits can be specified and used by the same agent in a single room.
    • A room link will be provided in the command output, which you can use to interact with the agent and the available tools.

Tools Available

This MCP server exposes time and timezone conversion capabilities via the following tools.

Tools provided by this ServerShort Description
convert_timeConvert time between timezones
get_current_timeGet current time in a specific timezone

Tools Details

Tool: convert_time

Convert time between timezones

ParametersTypeDescription
source_timezonestringSource IANA timezone name (e.g., ‘America/New_York’, ‘Europe/London’). Use ‘UTC’ as local timezone if no source timezone provided by the user.
target_timezonestringTarget IANA timezone name (e.g., ‘Asia/Tokyo’, ‘America/San_Francisco’). Use ‘UTC’ as local timezone if no target timezone provided by the user.
timestringTime to convert in 24-hour format (HH:MM)

Tool: get_current_time

Get current time in a specific timezone

ParametersTypeDescription
timezonestringIANA timezone name (e.g., ‘America/New_York’, ‘Europe/London’). Use ‘UTC’ as local timezone if no timezone provided by the user.

References and Links