We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/VinnyCarter05/investing-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
run_server.py•1.21 KiB
#!/usr/bin/env python
"""Entry point script for running the MCP server.
Cross-platform entry point that auto-configures paths based on the script location.
Works on both Mac and WSL without needing different configurations.
"""
import os
import sys
from pathlib import Path
# Add the project root to Python path
project_root = Path(__file__).parent.parent
sys.path.insert(0, str(project_root))
# Auto-configure paths relative to project root if not explicitly set
# Project structure: investments/investing-mcp/ (code), investments/data/, investments/db/
investments_root = project_root.parent
if not os.getenv("SQLITE_PATH"):
os.environ["SQLITE_PATH"] = str(investments_root / "db" / "statements.db")
if not os.getenv("LANCEDB_PATH"):
os.environ["LANCEDB_PATH"] = str(investments_root / "db" / "lancedb")
if not os.getenv("PDF_ARCHIVE_PATH"):
os.environ["PDF_ARCHIVE_PATH"] = str(investments_root / "data" / "pdfs")
if not os.getenv("CSV_ARCHIVE_PATH"):
os.environ["CSV_ARCHIVE_PATH"] = str(investments_root / "data" / "csvs")
if not os.getenv("JSON_ARCHIVE_PATH"):
os.environ["JSON_ARCHIVE_PATH"] = str(investments_root / "data" / "json")
from src.server import mcp
if __name__ == "__main__":
mcp.run()