Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/time/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ A Model Context Protocol server that provides time and timezone conversion capab

### Available Tools

- `get_current_time` - Get current time in a specific timezone or system timezone.
- `time_get_current` - Get current time in a specific timezone or system timezone.
- Required arguments:
- `timezone` (string): IANA timezone name (e.g., 'America/New_York', 'Europe/London')

- `convert_time` - Convert time between timezones.
- `time_convert` - Convert time between timezones.
- Required arguments:
- `source_timezone` (string): Source IANA timezone name
- `time` (string): Time in 24-hour format (HH:MM)
Expand Down Expand Up @@ -201,7 +201,7 @@ Example:
1. Get current time:
```json
{
"name": "get_current_time",
"name": "time_get_current",
"arguments": {
"timezone": "Europe/Warsaw"
}
Expand All @@ -219,7 +219,7 @@ Response:
2. Convert time between timezones:
```json
{
"name": "convert_time",
"name": "time_convert",
"arguments": {
"source_timezone": "America/New_York",
"time": "16:30",
Expand Down
4 changes: 2 additions & 2 deletions src/time/src/mcp_server_time/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@


class TimeTools(str, Enum):
GET_CURRENT_TIME = "get_current_time"
CONVERT_TIME = "convert_time"
GET_CURRENT_TIME = "time_get_current"
CONVERT_TIME = "time_convert"


class TimeResult(BaseModel):
Expand Down