-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart_server.py
More file actions
executable file
·36 lines (30 loc) · 905 Bytes
/
start_server.py
File metadata and controls
executable file
·36 lines (30 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python3
"""
Helper script to start the ORLY MCP server
"""
import subprocess
import sys
import os
def main():
"""Start the ORLY MCP server"""
# Get the directory containing this script
script_dir = os.path.dirname(os.path.abspath(__file__))
# Change to the project root directory
os.chdir(script_dir)
print("🚀 Starting ORLY MCP Server...")
print(f"Working directory: {os.getcwd()}")
print("Press Ctrl+C to stop the server")
print("-" * 50)
try:
# Run the server
subprocess.run([
"uv", "run", "python", "orly_mcp/server.py"
], check=True)
except KeyboardInterrupt:
print("\n\n🛑 Server stopped by user")
sys.exit(0)
except subprocess.CalledProcessError as e:
print(f"\n❌ Error starting server: {e}")
sys.exit(1)
if __name__ == "__main__":
main()