Skip to main content
Glama

Universal MCP Tool

by suhuail
config_manager.py565 B
import json import os from pathlib import Path CONFIG_PATH = Path.home() / ".xiaozhi_mcp_config.json" def load_config(): try: with open(CONFIG_PATH, 'r', encoding='utf-8') as f: return json.load(f) except (FileNotFoundError, json.JSONDecodeError): return { "MCP_ENDPOINT": "wss://api.xiaozhi.me/mcp/?token=...", "ZHIPU_API_KEY": "xxxxxxxxxxxxxxxxxxxxxx", } def save_config(config): with open(CONFIG_PATH, 'w', encoding='utf-8') as f: json.dump(config, f, indent=2)

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/suhuail/api-mcp'

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