Skip to content

Conversation

@chuk-uzowihe
Copy link

Summary

  • Add environment variable checks to prevent MCP server connection failures
  • Display runtime warnings when required environment variables are missing
  • Implement changes in both claude-mcp and claude-mcp-local scripts
  • Maintain original script structure while adding conditional checks for API-dependent servers

Test plan

  • Test running the scripts with various environment variables unset
  • Verify warnings are displayed for missing variables
  • Confirm that API-independent servers still register correctly
  • Check that Claude Code starts without connection failure errors

🤖 Generated with Claude Code

This change ensures that API-dependent MCP servers are only registered when their required environment variables are set, displaying runtime warnings instead of connection failures.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@chuk-uzowihe chuk-uzowihe force-pushed the feature/mcp-env-warnings branch from b5a85f2 to 93c53e9 Compare March 15, 2025 01:02
@willccbb
Copy link
Owner

not really planning on actively maintaining this, my personal version has already diverged pretty significantly. feel free to use as a starting point for your own forked version

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.

2 participants