mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-17 23:53:24 +02:00
fix: add back the __init__.py in mcp_server_tim
This commit is contained in:
19
src/time/src/mcp_server_time/__init__.py
Normal file
19
src/time/src/mcp_server_time/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from .server import serve
|
||||
|
||||
|
||||
def main():
|
||||
"""MCP Time Server - Time and timezone conversion functionality for MCP"""
|
||||
import argparse
|
||||
import asyncio
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
description="give a model the ability to handle time queries and timezone conversions"
|
||||
)
|
||||
parser.add_argument("--local-timezone", type=str, help="Override local timezone")
|
||||
|
||||
args = parser.parse_args()
|
||||
asyncio.run(serve(args.local_timezone))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user