added all mcp

This commit is contained in:
liph22
2025-12-19 23:59:54 +01:00
parent edfffd76e1
commit 14bc398915
6240 changed files with 2421602 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import logging
from typing import Any, Dict
logger = logging.getLogger("mealie-mcp")
class UserMixin:
"""Mixin class for user-related API endpoints"""
def get_current_user(self) -> Dict[str, Any]:
"""Get information about the currently logged in user.
Returns:
Dictionary containing user details such as id, username, email, and other profile information.
"""
logger.info({"message": "Retrieving current user information"})
return self._handle_request("GET", "/api/users/self")