Skip to content

Conversation

@taylorleese
Copy link
Contributor

Summary

This PR fixes inconsistencies in the environment variable naming between the documentation and the actual code implementation.

Problem

The README.md and .env.example files had incorrect names for SSL-related environment variables. The documentation was using shortened names while the actual code in src/common/config.py uses the full names with SSL_ prefix.

Changes

Updated the following environment variable names to match the actual implementation:

  • REDIS_CA_PATHREDIS_SSL_CA_PATH
  • REDIS_CERT_REQSREDIS_SSL_CERT_REQS
  • REDIS_CA_CERTSREDIS_SSL_CA_CERTS

Files Modified

  • README.md: Updated environment variable table and example configuration
  • .env.example: Updated environment variable names to match actual usage

This ensures users following the documentation will use the correct environment variable names that the server actually reads.

@codecov-commenter
Copy link

codecov-commenter commented Sep 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@a81d2fe). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #55   +/-   ##
=======================================
  Coverage        ?   88.03%           
=======================================
  Files           ?       17           
  Lines           ?      660           
  Branches        ?        0           
=======================================
  Hits            ?      581           
  Misses          ?       79           
  Partials        ?        0           
Flag Coverage Δ
unittests 88.03% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tishun
Copy link
Contributor

tishun commented Sep 15, 2025

Hey, thanks for the contribution!

Could you also address the ones in the smithery.yaml file?

@vchomakov
Copy link
Member

Thanks for the contribution, @taylorleese !
Change looks good but pipeline fails due to an uv cache issue that is fixed here: 20882ce

Can you please cherry-pick commit 20882ce from main into this branch? It disables the UV cache to prevent CI pipeline stalls on Windows. Once pushed, the workflow will rerun with the fix.

The README.md and .env.example files had inconsistent naming for SSL-related
environment variables. The actual code uses:
- REDIS_SSL_CA_PATH (not REDIS_CA_PATH)
- REDIS_SSL_CERT_REQS (not REDIS_CERT_REQS)
- REDIS_SSL_CA_CERTS (not REDIS_CA_CERTS)

This commit updates the documentation to match the actual variable names
used in src/common/config.py.
Update smithery.yaml to use consistent SSL environment variable names that match the actual implementation in src/common/config.py:
- redisCAPath → redisSSLCAPath (maps to REDIS_SSL_CA_PATH)
- redisCertReqs → redisSSLCertReqs (maps to REDIS_SSL_CERT_REQS)
- redisCACerts → redisSSLCACerts (maps to REDIS_SSL_CA_CERTS)

This ensures the Smithery configuration uses the correct environment variable names that the server actually reads.
@taylorleese
Copy link
Contributor Author

@vchomakov I rebased to keep the PR cleaner, rather than cherry pick.

@vchomakov
Copy link
Member

Thank you, @taylorleese, for addressing the comments and contributing to MCP Redis!

@vchomakov vchomakov merged commit 01cea8d into redis:main Oct 16, 2025
18 checks passed
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.

4 participants