Skip to main content
Glama

MemOS-MCP

by qinshu1109
utils.py582 B
import json from pathlib import Path import yaml def extract_json_dict(text: str): text = text.strip() patterns_to_remove = ["json'''", "latex'''", "'''"] for pattern in patterns_to_remove: text = text.replace(pattern, "") res = json.loads(text) return res def parse_yaml(yaml_file): yaml_path = Path(yaml_file) yaml_path = Path(yaml_file) if not yaml_path.is_file(): raise FileNotFoundError(f"No such file: {yaml_file}") with yaml_path.open("r", encoding="utf-8") as fr: data = yaml.safe_load(fr) return data

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/qinshu1109/memos-MCP'

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