We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jeffreytsai1004/maya-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
maya-mcp-server•1.1 KiB
#!/usr/bin/env python
"""
Maya MCP Server - npx entry point
Executable script for starting the Maya MCP Server via npx
"""
import sys
import os
import subprocess
from pathlib import Path
def main():
"""Main entry point for npx execution"""
# Get the directory where this script is located
script_dir = Path(__file__).parent.absolute()
project_root = script_dir.parent
# Path to the main server script
server_script = project_root / "src" / "server.py"
if not server_script.exists():
print(f"Error: Server script not found at {server_script}")
sys.exit(1)
# Pass all command line arguments to the server
cmd = [sys.executable, str(server_script)] + sys.argv[1:]
try:
# Execute the server with the same environment
result = subprocess.run(cmd, cwd=project_root)
sys.exit(result.returncode)
except KeyboardInterrupt:
print("\nMaya MCP Server stopped by user")
sys.exit(0)
except Exception as e:
print(f"Error starting Maya MCP Server: {e}")
sys.exit(1)
if __name__ == "__main__":
main()