modelcontextprotocol / modelcontextprotocol/servers

mcp-server-time: Default Time Zone

Open
#2,853 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement server-time
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.

  1. Wasteful, error-prone with previous behavior
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.