fix: add back the __init__.py in mcp_server_tim
This commit is contained in:
parent
f3e14698c9
commit
f35f57c333
1 changed files with 19 additions and 0 deletions
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()
|
||||||
Loading…
Reference in a new issue