Skip to main content
Glama

AI Tutoring RAG System

utils.pyโ€ข470 B
import json from typing import Dict, Any def sanitize_pinecone_metadata(metadata: Dict[str, Any]) -> Dict[str, Any]: """Remove None values and serialize complex types for Pinecone.""" clean = {} for k, v in metadata.items(): if v is None: continue if isinstance(v, (list, dict)): v = json.dumps(v) elif not isinstance(v, (str, int, float, bool)): v = str(v) clean[k] = v return clean

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/Chukwuebuka-2003/ebuka_mcps'

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