In agent development or operations scenarios, handling cross-time-zone time is a common requirement. The xby-time-zone plugin in the DSH ecosystem encapsulates global time zone management and time conversion capabilities into MCP server interfaces, making them easy for developers to call directly.

What is it

xby-time-zone is a plugin maintained by xby-skill and belongs to the online tool category. It is a comprehensive time zone management service that primarily solves time processing challenges in global business coordination, travel planning, and development operations.

Core Features

This plugin provides the following three core capabilities:

  • set_xby_apikey: Sets an API key in chat.
  • get_current_time: Gets the current time in a specified time zone.
  • convert_time: Converts time between different time zones.

Installation and Enablement

Use the DSH command-line tool to install it.

dsh plugin --profile web add github:xby_skill/xby-time-zone

The command above adds the plugin to the web profile. After installation, the plugin runs with the permissions of the current DSH process.

Typical Usage

  1. Set the key: Call set_xby_apikey in chat. The system automatically persists the key, so it remains valid after restart.
  2. Get the time: Call get_current_time and pass the target time zone to get the current time in that location.
  3. Convert time: Call convert_time to perform time conversion between different time zones.

Applicable Scenarios and Precautions

  • Applicable scenarios: Suitable for developers, operations engineers, and agents that need frequent handling of international time differences or travel planning.
  • Precautions: To use this plugin, you must first register on the Xiaobenyang official website and obtain an API key. The plugin runs with the permissions of the current DSH process. It is recommended to check the source code and license before installation.

Conclusion

xby-time-zone encapsulates time zone logic and provides DSH users with standardized time processing capabilities. For more details, refer to the community catalog or the source repository.