Skip to main content
Glama
http_entry.py518 B
"""Production HTTP entry point for Smithery and other container hosts.""" from __future__ import annotations import os from .server import create_server def main() -> None: server = create_server() # Ensure runtime overrides are respected if Smithery injects a different port/host. server.settings.host = os.getenv("HOST", server.settings.host) server.settings.port = int(os.getenv("PORT", server.settings.port)) server.run(transport="streamable-http") if __name__ == "__main__": main()

Latest Blog Posts

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/mem0ai/mem0-mcp'

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