File size: 1,345 Bytes
7360460 a65e06d 7360460 9ad58d0 7360460 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
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
"""
|