Skip to main content
Glama

Substrate

by ivan-saorin
main.py840 B
"""Main entry point for substrate server""" import logging import os import sys # Add src to path before imports sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) from substrate.server import SubstrateServer def main(): """Run the substrate server""" # Configure logging to stderr (CRITICAL: never stdout for MCP!) logging.basicConfig( level=os.getenv("LOG_LEVEL", "INFO"), format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', stream=sys.stderr ) # Create and run server server = SubstrateServer() try: server.run() except KeyboardInterrupt: logging.info("Server stopped by user") except Exception as e: logging.error(f"Server error: {e}", exc_info=True) sys.exit(1) if __name__ == "__main__": main()

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivan-saorin/substrate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server