#!/usr/bin/env python3
import sys
import json

# List the available tools that have been loaded
# The mcp__trello__get_card tool should be in the loaded schema

# Since we're in Claude Code, the tools are managed by the harness
# We can try to see what's available via environment inspection

import os
print("Available in environment:", file=sys.stderr)
for key in sorted(os.environ.keys()):
    if 'TOOL' in key.upper() or 'MCP' in key.upper():
        print(f"  {key}={os.environ[key][:100]}", file=sys.stderr)

# Check if there's a tool registry or config
config_paths = [
    "/home/dev/.claude/settings.json",
    "/home/dev/.claude/settings.local.json",
    "/opt/claude-code/config.json",
]

for path in config_paths:
    if os.path.exists(path):
        print(f"Found config: {path}", file=sys.stderr)
        try:
            with open(path) as f:
                config = json.load(f)
                print(f"  {json.dumps(config, indent=2)[:500]}", file=sys.stderr)
        except:
            pass

