Skip to main content
Glama
Yang-Charles

Amap (Gaode Maps) MCP Server

by Yang-Charles
config.py661 B
import os import yaml def load_config(config_file="config.yaml") -> dict: """ 加载配置文件。 Args: config_file (str): 配置文件的名称,默认为 "config.yaml"。 Returns: dict: 返回配置文件的内容。 Example: config = load_config("config.yaml") print(config) """ # 找到根目录(config.yaml 就放根目录) base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) config_path = os.path.join(base_dir, config_file) with open(config_path, "r", encoding="utf-8") as f: config = yaml.safe_load(f) return config

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/Yang-Charles/build-mcp'

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