A PHP sample implementation of an MCP (Model Context Protocol) server for retrieving time information.
Overview
What is Time MCP Server by PHP?
Time MCP Server by PHP is a sample implementation of an MCP (Model Context Protocol) server that provides time information and timezone conversion functionalities.
How to use Time MCP Server by PHP?
To use the server, clone the repository from GitHub, install dependencies using Composer, and configure it to work with your application. You can retrieve the current time or convert time between different timezones using the provided commands.
Key features of Time MCP Server by PHP?
- Retrieve current time in a specified timezone.
- Convert time between different timezones.
- Automatically detect system timezone.
Use cases of Time MCP Server by PHP?
- Getting the current time for various IANA timezone names.
- Converting time from one timezone to another for scheduling applications.
- Integrating with applications that require accurate time data across different regions.
FAQ from Time MCP Server by PHP?
- Can I use this server for any timezone?
Yes! The server supports all IANA timezone names.
- Is there a way to customize the default timezone detection?
Yes! You can override the default system timezone by adding the
--local-timezoneargument in the configuration.
- How do I test the server?
You can run PHPUnit tests after setting up the dependencies with Composer.