Skip to main content
Glama
security.py330 B
import re class DataSanitizer: PATTERNS = [ r"(?i)(token|key|secret|password)", r"\b\d{4}-\d{4}-\d{4}-\d{4}\b", # CC-like numbers ] @classmethod def sanitize(cls, text: str) -> str: for pattern in cls.PATTERNS: text = re.sub(pattern, "[REDACTED]", text) return text

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/enesbol/gcp-mcp'

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