modelcontextprotocol / modelcontextprotocol/servers
mcp-server-time: Default Time Zone
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 90.5k
- Forks
- 11.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
I feel like forcing specification of a timezone is wasteful, and --local-timezone should be the default when unspecified via tool request.
When mcp-server-time is provided --local-timezone, the LLM should not have to specify the time.
- Wasteful, error-prone with previous behavior
- The LLM could learn the TZ simply by looking up the time with this behavior
I am wasting too much context enforcing LLMs to specify the timezone. It doesn't make sense to them, and it doesn't make sense to me either.
{
"error": "HTTP error 422: {\"detail\":[{\"type\":\"missing\",\"loc\":[\"body\",\"timezone\"],\"msg\":\"Field required\",\"input\":{}}]}"
}
"error": "500: {'message': 'Error processing mcp-server-time query: Missing required argument: timezone'}"
{
"detail": [
{
"type": "missing",
"loc": [
"body",
"timezone"
],
"msg": "Field required",
"input": {}
}
]
}
Is this behavior already available and I am missing something?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the mcp-server-time implementation and the handling for the timezone argument and --local-timezone option. Check existing tests for time requests, if present. Done means a request that omits timezone uses the local timezone when --local-timezone is supplied, without producing the reported validation errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100