import os from pmcp.mcp_server.trello_server.utils.trello_api import TrelloClient trello_client = None def initialize_trello_client(api_key: str = None, token:str = None) -> None: try: if not api_key: raise ValueError( "api_key and tokne required" ) global trello_client trello_client = TrelloClient(api_key=api_key, token=token) except Exception as e: raise # Add a prompt for common Trello operations def trello_help() -> str: """Provides help information about available Trello operations.""" return """ Available Trello Operations: 1. Board Operations: - Get a specific board - List all boards 2. List Operations: - Get a specific list - List all lists in a board - Create a new list - Update a list's name - Archive a list 3. Card Operations: - Get a specific card - List all cards in a list - Create a new card - Update a card's attributes - Delete a card 4. Checklist Operations: - Get a specific checklist - List all checklists in a card - Create a new checklist - Update a checklist - Delete a checklist - Add checkitem to checklist - Update checkitem - Delete checkitem """