Skip to content

Conversation

lgallard
Copy link
Owner

@lgallard lgallard commented Sep 1, 2025

🔧 Fix MCP Server Connectivity Issues

Problem

The AWS Backup Feature Discovery workflow was failing due to MCP server connectivity issues:

  • Using non-existent npm package @modelcontextprotocol/server-terraform@latest
  • Terraform MCP server status: failed
  • Only Context7 MCP server was working

Solution

  • ✅ Replace with official HashiCorp Terraform MCP server
  • ✅ Use Docker-based deployment: hashicorp/terraform-mcp-server
  • ✅ Keep working Context7 MCP server unchanged
  • ✅ Validated Docker support in GitHub Actions

Validation Results

  • MCP Server Connectivity: Fixed - Terraform server now connects successfully
  • Feature Discovery: Working - Claude Code executed successfully for 3+ minutes
  • Docker Support: Confirmed available in GitHub Actions (Docker 28.3.2)
  • Workflow Execution: Main discovery step now succeeds

Testing

  • Workflow run #17364625038 shows:
    • ✅ "Run Claude Code Feature Discovery": SUCCESS (3+ minutes execution)
    • ✅ MCP servers connected properly
    • ✅ Feature tracker updated successfully

Remaining Minor Issue

  • Git push permission issue (separate from MCP connectivity)
  • Will be resolved when merged to master

Resolves: #224

Files Changed

  • .github/workflows/feature-discovery.yml: Updated MCP server configuration

Phase 1 of systematic MCP connectivity fix:
- Environment snapshot (Node, NPM, disk, memory, network)
- Complete cache clearing (NPM, NPX caches)
- MCP package accessibility tests
- Network connectivity validation

This will help identify if cache corruption or environment differences
are causing the Terraform MCP server to fail while Context7 works.
- Replace non-existent @modelcontextprotocol/server-terraform package
- Use docker-based HashiCorp terraform-mcp-server
- Keep Context7 MCP server as npx package (working)
- Docker validated and working in GitHub Actions environment
- This fixes MCP server connectivity issues in feature discovery

Resolves: #224
@lgallard lgallard self-assigned this Sep 1, 2025
@lgallard lgallard merged commit 8c9ff3b into master Sep 1, 2025
36 of 37 checks passed
@lgallard lgallard deleted the fix/terraform-mcp-server branch September 1, 2025 01:12
@github-actions github-actions bot mentioned this pull request Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add id-token: write to workflow permissions to fix OIDC error

1 participant