# ๐ Codex Bridge v1.2.1 Release Notes
**Release Date:** September 4, 2025
**Version:** 1.2.1
**Previous Version:** 1.2.0
## ๐ Release Summary
Codex Bridge v1.2.1 is a **quality and testing improvement release** that enhances the robustness and maintainability of the MCP server while fixing critical error handling inconsistencies.
## โจ What's New
### ๐ Bug Fixes
- **Fixed Error Handling Consistency**: Invalid format parameters now consistently return JSON instead of plain text
- Affects both `consult_codex` and `consult_codex_with_stdin` functions
- Ensures all API responses maintain structured format
- Resolves inconsistent error response types
### ๐งช Comprehensive Testing Suite
- **New `tests/` Directory Structure**:
```
tests/
โโโ README.md # Testing documentation
โโโ test_mcp_tools.py # Complete test suite
โโโ TEST_RESULTS.md # Detailed test results
```
- **100% Functionality Verification**:
- โ
All three MCP tools tested and working
- โ
All output formats validated (text, JSON, code)
- โ
Error handling verified with edge cases
- โ
Environment variables tested (CODEX_SKIP_GIT_CHECK)
- โ
Performance benchmarks documented
### ๐ Documentation Improvements
- **Enhanced Testing Guidelines**: Updated CONTRIBUTING.md with comprehensive testing procedures
- **Test Documentation**: Detailed testing instructions and troubleshooting
- **Code Quality**: Resolved linting warnings and unused imports
## ๐ง Technical Changes
### Files Modified
- `src/__init__.py` โ Version bumped to 1.2.1
- `src/mcp_server.py` โ Error handling fixes, version update
- `pyproject.toml` โ Package version update
- `CHANGELOG.md` โ Added v1.2.1 entry with detailed changes
- `CONTRIBUTING.md` โ Enhanced testing guidelines
- `tests/test_mcp_tools.py` โ Reorganized with proper imports
### Files Added
- `tests/README.md` โ Testing documentation and guidelines
- `tests/TEST_RESULTS.md` โ Comprehensive test execution results
- `RELEASE_NOTES_v1.2.1.md` โ This release notes file
### Project Structure Changes
```diff
codex-bridge/
โโโ src/ # Core MCP server code
โโโ tests/ # โ NEW: Organized testing suite
โ โโโ README.md # โ NEW: Testing documentation
โ โโโ test_mcp_tools.py # โ MOVED: From root directory
โ โโโ TEST_RESULTS.md # โ MOVED: From root directory
โโโ CHANGELOG.md # โ UPDATED: v1.2.1 entry
โโโ CONTRIBUTING.md # โ UPDATED: Enhanced testing
โโโ pyproject.toml # โ UPDATED: Version bump
```
## ๐ Test Results Summary
**All Tests Passing โ
**
- **Core Functionality**: 100% working
- **Output Formats**: Text, JSON, Code - all validated
- **Error Handling**: Consistent JSON responses verified
- **Environment Variables**: CODEX_SKIP_GIT_CHECK working
- **Performance**: 4-30 second response times (normal)
- **Code Quality**: Linting warnings resolved
## โก Performance Metrics
| Feature | Response Time | Status |
|---------|---------------|--------|
| Basic Queries | 4-15 seconds | โ
Normal |
| Code Generation | 10-20 seconds | โ
Normal |
| File Analysis | 15-30 seconds | โ
Normal |
| Batch Processing | 30-60 seconds | โ
Normal |
## ๐ Security & Compatibility
- **โ
No Breaking Changes**: Full backward compatibility maintained
- **โ
Security**: All existing security features preserved
- **โ
Compatibility**: Python 3.10+ support unchanged
- **โ
Dependencies**: No new dependencies added
## ๐ Upgrade Instructions
### For Development/Testing:
```bash
# Update local installation
git pull origin main
python -m src # Test the server
# Run the new test suite
python tests/test_mcp_tools.py
```
### For Production (uvx):
```bash
# Update will be available from PyPI
pip install --upgrade codex-bridge==1.2.1
# Or with uvx
claude mcp add codex-bridge -s user -- uvx codex-bridge==1.2.1
```
## ๐ฏ Migration Notes
**โ
No Migration Required** - This is a patch release with full backward compatibility.
### What Changed:
- Error responses for invalid formats now return JSON instead of plain text
- Test files moved to `tests/` directory
- Enhanced documentation
### What Stayed The Same:
- All MCP tool signatures and functionality
- Environment variable behavior
- Configuration options
- Performance characteristics
## ๐ Testing Your Installation
After upgrading, verify everything works:
```bash
# Quick functionality test
python tests/test_mcp_tools.py
# Should see output like:
# ๐ Starting Codex Bridge MCP Tools Test Suite
# โ
All tests passing...
# ๐ Test suite completed!
```
## ๐ Next Steps
### Upcoming in v1.3.0 (Future):
- Expanded MCP client compatibility testing
- Performance optimizations
- Additional output format options
- Enhanced error diagnostics
### Community:
- Submit issues: https://github.com/shelakh/codex-bridge/issues
- Contribute: See updated CONTRIBUTING.md guidelines
- Documentation: Enhanced testing procedures available
## ๐ Acknowledgments
This release focuses on **quality assurance** and **developer experience**, ensuring that Codex Bridge remains reliable and easy to test for contributors and users.
Special thanks to the testing that identified the error handling inconsistency, leading to this important bug fix.
---
## ๐ฆ Installation Commands
**New Installation:**
```bash
pip install codex-bridge==1.2.1
```
**Claude Code Integration:**
```bash
claude mcp add codex-bridge -s user -- uvx codex-bridge
```
**Development Mode:**
```bash
git clone https://github.com/shelakh/codex-bridge.git
cd codex-bridge
pip install -e .
python tests/test_mcp_tools.py # Run tests
```
---
**Happy Coding with Codex Bridge v1.2.1! ๐**