We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e1469 commit f35f57cCopy full SHA for f35f57c
1 file changed
src/time/src/mcp_server_time/__init__.py
@@ -0,0 +1,19 @@
1
+from .server import serve
2
+
3
4
+def main():
5
+ """MCP Time Server - Time and timezone conversion functionality for MCP"""
6
+ import argparse
7
+ import asyncio
8
9
+ parser = argparse.ArgumentParser(
10
+ description="give a model the ability to handle time queries and timezone conversions"
11
+ )
12
+ parser.add_argument("--local-timezone", type=str, help="Override local timezone")
13
14
+ args = parser.parse_args()
15
+ asyncio.run(serve(args.local_timezone))
16
17
18
+if __name__ == "__main__":
19
+ main()
0 commit comments