We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/stickerdaniel/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
exceptions.py•853 B
# src/linkedin_mcp_server/exceptions.py
"""
Custom exceptions for LinkedIn MCP Server with specific error categorization.
Defines hierarchical exception types for different error scenarios including
authentication failures and MCP client reporting.
"""
class LinkedInMCPError(Exception):
"""Base exception for LinkedIn MCP Server."""
pass
class CredentialsNotFoundError(LinkedInMCPError):
"""No credentials available in non-interactive mode."""
pass
class SessionExpiredError(LinkedInMCPError):
"""Session has expired and needs to be refreshed."""
def __init__(self, message: str | None = None):
default_msg = (
"LinkedIn session has expired.\n\n"
"To fix this:\n"
" Run with --get-session to create a new session"
)
super().__init__(message or default_msg)