mirror of
https://github.com/haris-musa/excel-mcp-server.git
synced 2025-12-17 19:26:39 +08:00
Initial commit
This commit is contained in:
21
src/excel_mcp/__main__.py
Normal file
21
src/excel_mcp/__main__.py
Normal file
@ -0,0 +1,21 @@
|
||||
import asyncio
|
||||
from .server import run_server
|
||||
|
||||
def main():
|
||||
"""Start the Excel MCP server."""
|
||||
try:
|
||||
print("Excel MCP Server")
|
||||
print("---------------")
|
||||
print("Starting server... Press Ctrl+C to exit")
|
||||
asyncio.run(run_server())
|
||||
except KeyboardInterrupt:
|
||||
print("\nShutting down server...")
|
||||
except Exception as e:
|
||||
print(f"\nError: {e}")
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
finally:
|
||||
print("Server stopped.")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user