import json
import subprocess
import sys

# Try to invoke MCP tool via claude's internal mechanisms
# This is a test to see if we can call mcp__trello__get_card

# Since we don't have direct MCP access via bash, we need to work with what we have
# The task says to use mcp__trello__get_card, but without proper auth it won't work

# Let's check if there's a cached card data or a way to get it
card_id = "6a1d6962593638cba328f461"
print(f"Card ID: {card_id}")
print("Attempting to fetch via MCP...")

# Option 1: Check if there's a recent cache
import glob
cache_files = glob.glob('/tmp/trello_cache_*.json')
if cache_files:
    print(f"Found cache files: {cache_files}")

# Option 2: Try environment check
import os
print(f"TRELLO_KEY set: {bool(os.environ.get('TRELLO_KEY'))}")
print(f"TRELLO_TOKEN set: {bool(os.environ.get('TRELLO_TOKEN'))}")

