Skip to main content
Glama

Semantic Scholar MCP Server

errors.py721 B
""" Error handling utilities for the Semantic Scholar API Server. """ from typing import Dict, Optional from ..config import ErrorType def create_error_response( error_type: ErrorType, message: str, details: Optional[Dict] = None ) -> Dict: """ Create a standardized error response. Args: error_type: The type of error that occurred. message: A human-readable message describing the error. details: Optional additional details about the error. Returns: A dictionary with the error information. """ return { "error": { "type": error_type.value, "message": message, "details": details or {} } }

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/zongmin-yu/semantic-scholar-fastmcp-mcp-server'

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