Skip to main content
Glama

Knowledge Graph Memory Server

by AgentWong
"""Input sanitization utilities for SQLite backend.""" from typing import Optional, Union def sanitize_input(value: Optional[Union[str, bytes]]) -> str: """Sanitize input to prevent SQL injection. Args: value: Input string or bytes to sanitize Returns: str: Sanitized string safe for SQLite Raises: TypeError: If value is not a string/bytes or is None """ if value is None: raise TypeError("Cannot sanitize None value") if isinstance(value, bytes): value = value.decode('utf-8') if not isinstance(value, str): raise TypeError(f"Expected string or bytes, got {type(value)}") return value.replace("'", "''").replace('"', '""')

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/AgentWong/optimized-memory-mcp-server'

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