added all mcp
This commit is contained in:
17
mealie-mcp-bundle/server/mealie/user.py
Normal file
17
mealie-mcp-bundle/server/mealie/user.py
Normal 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")
|
||||
Reference in New Issue
Block a user