Skip to content

Conversation

@YishenTu
Copy link

Summary

  • Fix API key replacement to preserve original condition check in server.py
  • Add virtual environment detection and proper Python path handling
  • Use appropriate pip command based on environment context
  • Improve setup script reliability and flexibility for different environments

Changes

  • Modified setup.sh to detect virtual environments and use appropriate Python/pip commands
  • Fixed sed command to properly replace API key while preserving the conditional check structure
  • Added better error handling and user feedback

Test plan

  • Test setup in virtual environment
  • Test setup without virtual environment
  • Verify API key is properly replaced
  • Confirm MCP server registration works correctly

🤖 Generated with Claude Code

- Fix API key replacement to preserve original condition check
- Add virtual environment detection and proper Python path handling
- Use appropriate pip command based on environment
- Improve setup script reliability and flexibility

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

Co-Authored-By: Claude <[email protected]>
@MichaelAnckaert
Copy link

Confirmed this works, invaluable change that's needed IMO.

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