Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Created June 25, 2025 17:20
Show Gist options
  • Save ajeetraina/d1312f2936729e9f06451ba9dc91f742 to your computer and use it in GitHub Desktop.
Save ajeetraina/d1312f2936729e9f06451ba9dc91f742 to your computer and use it in GitHub Desktop.

Revisions

  1. ajeetraina created this gist Jun 25, 2025.
    33 changes: 33 additions & 0 deletions debug-mcp-tools.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    #!/bin/bash

    echo "🔍 Debugging Docker MCP Tools"
    echo "============================="

    # Check what tools are available
    echo "1. Listing available MCP tools..."
    echo "docker mcp tools list:"
    docker mcp tools list 2>&1

    echo ""
    echo "2. Testing basic GitHub connection..."
    echo "docker mcp tools call get_me:"
    docker mcp tools call get_me 2>&1

    echo ""
    echo "3. Testing repository creation directly..."
    echo "docker mcp tools call create_repository:"
    docker mcp tools call create_repository '{"name":"test-debug-repo","description":"Debug test","private":false,"autoInit":true}' 2>&1

    echo ""
    echo "4. Check what repositories you already have..."
    echo "Let's see your existing repositories first:"
    # Try to list repositories to see what tools are actually available
    docker mcp tools call list_repositories '{}' 2>&1 || echo "list_repositories not available"

    echo ""
    echo "5. Check if we can get repository info..."
    docker mcp tools call get_repository '{"owner":"ajeetraina","repo":"docker-mcp-entropy-management"}' 2>&1 || echo "get_repository not available"

    echo ""
    echo "6. List all available GitHub MCP tools..."
    docker mcp tools list | grep -E "(create|repo|github)" || echo "No repository-related tools found"