Skip to main content
Glama

Scribe MCP Server

by paxocial
search.py820 B
"""Shared helpers for log searching and filtering.""" from __future__ import annotations import re from typing import Optional def message_matches( text: Optional[str], needle: Optional[str], *, mode: str = "substring", case_sensitive: bool = False, ) -> bool: """Return True when `needle` is found in `text` according to the mode.""" if not needle: return True haystack = text or "" if mode == "regex": flags = 0 if case_sensitive else re.IGNORECASE try: pattern = re.compile(needle, flags) except re.error: return False return bool(pattern.search(haystack)) candidate = needle if case_sensitive else needle.lower() target = haystack if case_sensitive else haystack.lower() return candidate in target

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/paxocial/scribe_mcp'

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