Commit Graph

634 Commits

Author SHA1 Message Date
Josh Vera
3db49413ff fix: Resolve o3-pro response parsing and test execution issues
- Fix lint errors: trailing whitespace and deprecated typing imports
- Update test mock for o3-pro response format (output.content[] → output_text)
- Implement robust test isolation with monkeypatch fixture
- Clear provider registry cache to prevent test interference
- Ensure o3-pro tests pass in both individual and full suite execution

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 20:24:34 -06:00
Josh Vera
ae5e43b792 test: Add o3-pro test cassette and remove unused cassette
- Add o3_pro_basic_math.json cassette for test_o3_pro_output_text_fix.py
- Remove unused o3_pro_content_capture.json cassette
- This allows tests to run without API keys in CI/CD

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:45:49 -06:00
Josh Vera
8eef4b6722 refactor: Simplify PIISanitizer class by 27%
- Consolidate patterns: GitHub tokens (3→1), phone numbers (2→1)
- Remove duplicate Bearer token patterns (saved 18 lines)
- Simplify sanitize_headers method (30→15 lines)
- Remove unnecessary base64 handling methods
- Clean up unused imports (base64, json, Tuple)
- Reduce total patterns from 24 to 14
- All tests pass, functionality preserved

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:40:04 -06:00
Josh Vera
69f7a79804 chore: Remove unused test_replay.json cassette file
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:31:26 -06:00
Josh Vera
840b3deee4 chore: Remove simplified PR template from version control
Accidentally added it back with git add .

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:28:43 -06:00
Josh Vera
224d039250 chore: Remove PR template files from version control
PR templates should not be committed to the repository

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:27:12 -06:00
Josh Vera
a1451befd2 refactor: Clean up test files and simplify documentation
- Remove unused cassette files with incomplete recordings
- Delete broken respx test files (test_o3_pro_respx_simple.py, test_o3_pro_http_recording.py)
- Fix respx references in docstrings to mention HTTP transport recorder
- Simplify vcr-testing.md documentation (60% reduction, more task-oriented)
- Add simplified PR template with better test instructions
- Fix cassette path consistency in examples
- Add security note about reviewing cassettes before committing

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:24:51 -06:00
Josh Vera
7f92085c70 feat: Fix o3-pro response parsing and implement HTTP transport recorder
- Fix o3-pro response parsing to use output_text convenience field
- Replace respx with custom httpx transport solution for better reliability
- Implement comprehensive PII sanitization to prevent secret exposure
- Add HTTP request/response recording with cassette format for testing
- Sanitize all existing cassettes to remove exposed API keys
- Update documentation to reflect new HTTP transport recorder
- Add test suite for PII sanitization and HTTP recording

This change:
1. Fixes timeout issues with o3-pro API calls (was 2+ minutes, now ~15-22 seconds)
2. Properly captures response content without httpx.ResponseNotRead exceptions
3. Preserves original HTTP response format including gzip compression
4. Prevents future secret exposure with automatic PII sanitization
5. Enables reliable replay testing for o3-pro interactions

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 18:47:17 -06:00
Fahad
ad6b216265 Updated description 2025-06-30 13:51:10 +04:00
Fahad
e091c6d40a Updated with screenshots 2025-06-30 13:49:32 +04:00
Beehive Innovations
7d3f43aaf5 Update README.md
Screenshots with and without zen for Challenge tool
2025-06-30 13:47:38 +04:00
Fahad
a70dcbe4d1 Lint
Fixed challenge expectation
2025-06-30 13:35:40 +04:00
Fahad
268df43858 Improved auto-challenge invocation
Automatically determine MCP client's name
2025-06-30 13:31:04 +04:00
Fahad
a1793a6028 Cleanup 2025-06-30 01:41:07 +04:00
Fahad
8bd06efe1f More examples 2025-06-29 20:35:39 +04:00
Fahad
a54343dc79 Improved challenge prompt and instructions 2025-06-29 17:52:00 +04:00
Fahad
26170efa65 Typo 2025-06-29 15:55:55 +04:00
Fahad
6b495cea0b New tool! "challenge" with confidence and stop Claude from agreeing with you blindly and undoing the _correct_ strategy because you were wrong
Fixed run script to ensure pip is installed
2025-06-29 15:50:45 +04:00
Fahad
4972e7c281 Added tips 2025-06-29 14:04:28 +04:00
Fahad
4d0a41b12c Updated instructions for uvx 2025-06-29 13:12:35 +04:00
Fahad
df5e8e6793 Merge remote-tracking branch 'origin/main' 2025-06-29 13:01:17 +04:00
Beehive Innovations
c82026941a Merge pull request #150 from SamDc73/main
Add uvx support
2025-06-29 01:56:53 -07:00
Beehive Innovations
242806080b Merge pull request #151 from GiGiDKR/feat-cross-plateform_compatibility
Feat: Cross-Plateform Compatibily
2025-06-29 01:53:12 -07:00
Beehive Innovations
b3d16d581f Merge pull request #142 from GiGiDKR/feat-dockerisation
feat: Add Docker support and documentation
2025-06-29 01:52:48 -07:00
OhMyApps
1793449cf8 fix: enhance Windows path validation and detection in base_tool.py 2025-06-29 04:50:51 +02:00
OhMyApps
479f556535 Merge branch 'BeehiveInnovations:main' into feat-dockerisation 2025-06-29 02:07:06 +02:00
OhMyApps
6ae3892d85 Merge branch 'BeehiveInnovations:main' into feat-cross-plateform_compatibility 2025-06-29 02:06:39 +02:00
OhMyApps
3d12a7cb70 feat: Add comprehensive tests for Docker integration, security, and volume persistence
- Introduced tests for Docker deployment scripts to ensure existence, permissions, and proper command usage.
- Added tests for Docker integration with Claude Desktop, validating MCP configuration and command formats.
- Implemented health check tests for Docker, ensuring script functionality and proper configuration in Docker setup.
- Created tests for Docker MCP validation, focusing on command validation and security configurations.
- Developed security tests for Docker configurations, checking for non-root user setups, privilege restrictions, and sensitive data handling.
- Added volume persistence tests to ensure configuration and logs are correctly managed across container runs.
- Updated .dockerignore to exclude sensitive files and added relevant tests for Docker secrets handling.
2025-06-29 00:01:35 +02:00
OhMyApps
fd2b14028a feat: add timezone synchronization volume and update deployment scripts for health checks
Update the Docker README and create a Docker Deployment guide in the docs folder
2025-06-29 00:00:47 +02:00
Fahad
26169ae827 Disable auto mode for consensus 2025-06-28 22:40:19 +04:00
Fahad
b9c2e4f5e6 Tweaks to prompts to prevent Claude from becoming overconfident 2025-06-28 22:30:58 +04:00
OhMyApps
180a350f6d fix: improve the Python path detection in mock tests and ensures logger initialization order is correct.
Fix run-server.ps1 to handle PowerShell script creation correctly and ensure pip is installed in the uv environment.
2025-06-27 23:58:13 +02:00
Fahad
adbc4af4a9 Update confidence enum values across workflow tools
Added new confidence values (very_high, almost_certain) to all workflow tools
to provide more granular confidence tracking. Updated enum declarations in:
- analyze.py, codereview.py, debug.py, precommit.py, secaudit.py, testgen.py
- Updated debug.py's get_required_actions to handle new confidence values
- All tools now use consistent 7-value confidence scale
- refactor.py kept its unique scale (exploring/incomplete/partial/complete)

Also fixed model thinking configuration:
- Added very_high and almost_certain to MODEL_THINKING_PREFERENCES
- Set medium thinking for very_high, high thinking for almost_certain
- Updated prompts to clarify certain means 100% local confidence

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-28 00:04:35 +04:00
OhMyApps
c2c8d3de1e docs: Add PowerShell commands reference to README.md 2025-06-27 21:55:53 +02:00
Fahad
bc447d4bcd Generic naming to work with Gemini CLI / Claude Code 2025-06-27 23:41:20 +04:00
OhMyApps
70196d680d Add PowerShell scripts for server setup and integration testing
- Implemented `run-server.ps1` for setting up the Zen MCP server environment, including virtual environment creation, dependency installation, and Docker cleanup.
- Added logging and error handling throughout the setup process.
- Included functions for validating API keys and configuring integration with Claude Desktop and Gemini CLI.
- Created `run_integration_tests.ps1` to execute integration tests with real API calls, including checks for API key availability and environment setup.
- Enhanced output with color-coded messages for better user experience.

Patch directory added for cross-platform patching support (`patch_crossplatform.py`).
2025-06-27 21:37:11 +02:00
OhMyApps
9291739672 Merge branch 'BeehiveInnovations:main' into feat-dockerisation 2025-06-27 20:48:57 +02:00
OhMyApps
308d42becf feat: add PowerShell scripts for building and deploying Zen MCP Server; update .dockerignore and README. Fix error in API key detection in Docker deployment script. 2025-06-27 20:47:15 +02:00
Husam Alshehadat
5a4262ce89 docs: uvx installation guide 2025-06-27 11:09:44 -07:00
Husam Alshehadat
e3e9e4eb55 fix: Handle tomllib import for Python 3.10 compatibility in uvx tests 2025-06-27 10:37:32 -07:00
Husam Alshehadat
36bba89325 style: Fix formatting after sync 2025-06-27 10:35:16 -07:00
Husam Alshehadat
05f1844a82 Merge branch 'BeehiveInnovations:main' into main 2025-06-27 10:15:36 -07:00
Husam Alshehadat
707e6507ed feat: Add uvx support 2025-06-27 10:14:26 -07:00
Fahad
75dc724ecd Fixes https://github.com/BeehiveInnovations/zen-mcp-server/issues/134
Fixes https://github.com/BeehiveInnovations/zen-mcp-server/issues/144
2025-06-27 20:56:35 +04:00
OhMyApps
62178aa073 Merge branch 'BeehiveInnovations:main' into feat-dockerisation 2025-06-27 18:45:41 +02:00
Fahad
71cbff539e Bump 2025-06-27 19:04:22 +04:00
Beehive Innovations
7f6a37a7b9 Merge pull request #131 from GiGiDKR/feat-local_support_with_UTF-8_encoding-update
feat: local support with utf 8 encoding
2025-06-27 08:02:14 -07:00
Fahad
ca8479acc1 Fixed https://github.com/BeehiveInnovations/zen-mcp-server/issues/147 2025-06-27 18:33:21 +04:00
Fahad
090931d7cf Fixed linebreaks
Cleanup
Pass excluded fields to the schema builder directly
2025-06-27 14:29:10 +04:00
Fahad
0237fb3419 Set read-only annotation hints on each tool for security 2025-06-26 13:16:00 +04:00