Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCP server-time does not work on non-English system #231

Open
kurtthomas opened this issue Dec 4, 2024 · 2 comments
Open

MCP server-time does not work on non-English system #231

kurtthomas opened this issue Dec 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kurtthomas
Copy link

Describe the bug
Thank you for server-time.

Attempting to run the server-time MCP fails on a system where time zone names are not in English.

To Reproduce
Steps to reproduce the behavior:

  1. Be on a Windows system where English is not the primary OS language.
  2. Set local Windows time zone to (name of MET in local language).
    Either:
    3A Start Claud AI Desktop Agent ==> Cannot connect to MCP server.
    /Or/
    3A Start mcp-server time with uvx ==> Error (see below)

Expected behavior
MCP works.

Logs
uvx command:
uvx mcp-server-time
Command error output:
Traceback (most recent call last):
File "C:\Users\Kurt\AppData\Local\Programs\Python\Python311\Lib\zoneinfo_common.py", line 12, in load_tzdata
return resources.files(package_name).joinpath(resource_name).open("rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Kurt\AppData\Local\Programs\Python\Python311\Lib\pathlib.py", line 1044, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Kurt\AppData\Local\uv\cache\archive-v0\ImCvLqiPqR99S_aUJhnZd\Lib\site-packages\tzdata\zoneinfo\Mitteleuropäische Zeit'

(Emphasis added)

Additional context
Mitteleuropäische Zeit is the German / Windows name for "MET".
Workaround is to find the MET file and copy it to .

@kurtthomas kurtthomas added the bug Something isn't working label Dec 4, 2024
@jspahrsummers
Copy link
Member

This seems like it might be a bug in Python's zoneinfo module, as the server doesn't do this part itself.

@Ranteck
Copy link

Ranteck commented Jan 2, 2025

still the issue, having the same trouble but in my case i'm using

"time": { "command": "uvx", "args": [ "mcp_server_time" ] },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants