Skip to main content
Glama
config.py1.29 kB
from __future__ import annotations import os from pathlib import Path try: import tomllib except ModuleNotFoundError: import tomli as tomllib # type: ignore def _get_version() -> str: """Read version from pyproject.toml""" try: pyproject_path = Path(__file__).parent.parent / "pyproject.toml" with open(pyproject_path, "rb") as f: pyproject_data = tomllib.load(f) return pyproject_data["project"]["version"] except (FileNotFoundError, KeyError): return "1.0.0" # Fallback version API_TITLE = "Marketfiyat MCP API" API_DESCRIPTION = ( "Marketfiyat MCP API provides access to Turkish market product prices from " "marketfiyati.org.tr, allowing you to search products by categories, keywords, " "and location, and compare prices across different markets." ) API_VERSION = _get_version() MARKETFIYAT_BASE_URL = "https://api.marketfiyati.org.tr" DEFAULT_CACHE_SECONDS = 300 # 5 minutes cache for price data ALLOWED_ORIGINS = ["*"] # Proxy configuration # Set SOCKS_PROXY environment variable to use a SOCKS proxy # Examples: # SOCKS_PROXY=socks5://localhost:1080 # SOCKS_PROXY=socks5://username:password@proxy-server:1080 # SOCKS_PROXY=socks4://localhost:1080 SOCKS_PROXY = os.environ.get("SOCKS_PROXY")

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/yibudak/marketfiyati_mcp'

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