22 lines
369 B
Python
22 lines
369 B
Python
"""Entry point for javis-slave-mcp."""
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from .server import main
|
|
|
|
|
|
def __main__() -> int:
|
|
try:
|
|
main()
|
|
return 0
|
|
except KeyboardInterrupt:
|
|
return 0
|
|
except Exception as e:
|
|
print(f"Error: {e}", file=sys.stderr)
|
|
return 1
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(__main__())
|