We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ErikNguyen20/ScholarScope-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
utils.py•254 B
import re
def sanitize_search_text(s: str) -> str:
"""Remove commas and collapse whitespace for API search terms for OpenAlex to work"""
if not s:
return s
s = s.replace(",", " ")
s = re.sub(r"\s+", " ", s).strip()
return s