Commit Graph

753 Commits

Author SHA1 Message Date
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
OhMyApps
453f921df6 Merge branch 'main' into feat-dockerisation 2025-06-25 18:10:26 +02:00
OhMyApps
f2722b5796 Merge branch 'feat-dockerisation' of https://github.com/GiGiDKR/zen-mcp-server into feat-dockerisation 2025-06-25 17:58:47 +02:00
OhMyApps
3a945b077b refactor: Delete unnecessary .env file 2025-06-25 17:57:18 +02:00
OhMyApps
db470dec7d Merge branch 'BeehiveInnovations:main' into feat-dockerisation 2025-06-25 17:55:50 +02:00
OhMyApps
331706af21 refactor: Simplify Dockerfile requirements and enhance health check script with API key validation and connectivity checks 2025-06-25 17:54:04 +02:00
OhMyApps
8ff8e06bf9 refactor: Update environment and Docker configuration files; remove unused MCP configuration tests 2025-06-25 17:42:58 +02:00
Fahad
2bed3a0774 Lint 2025-06-25 19:40:46 +04:00
Fahad
3ce0f93e5b Lint 2025-06-25 19:37:25 +04:00
Fahad
6d0bafa81d Support for Gemini CLI (setup instructions) - WIP 2025-06-25 19:36:09 +04:00
OhMyApps
b181f051ac Merge pull request #2 from GiGiDKR/feat-dockerisation
Feat: Add comprehensive Docker support and documentation for Zen MCP Server
2025-06-25 16:38:52 +02:00
OhMyApps
aef412fb30 Merge pull request #1 from GiGiDKR/feat-local_support_with_UTF-8_encoding
Feat: Local support with utf 8 encoding
2025-06-25 16:36:26 +02:00
OhMyApps
e4c2b36cb3 refactor: Remove unused mcp.json configuration test from Docker tests 2025-06-25 16:32:33 +02:00
OhMyApps
ec49c8f0c7 refactor: Delete unused validation script test 2025-06-25 16:11:42 +02:00
OhMyApps
2f9f989e52 Merge branch 'BeehiveInnovations:main' into feat-dockerisation 2025-06-25 16:01:35 +02:00
OhMyApps
2de9839096 Add Docker scripts and validation tests for Zen MCP Server
- Created build.sh script for building the Docker image with environment variable checks.
- Added deploy.sh script for deploying the Zen MCP Server with health checks and logging.
- Implemented healthcheck.py to verify server process, Python imports, log directory, and environment variables.
- Developed comprehensive tests for Docker configuration, environment validation, and integration with MCP.
- Included performance tests for Docker image size and startup time.
- Added validation script tests to ensure proper Docker and MCP setup.
2025-06-25 16:00:48 +02:00
Sebastiangmz
9c1503faac Add comprehensive WSL setup guide for Windows users (#136) 2025-06-24 19:40:05 -07:00
OhMyApps
e22fff27c9 refactor: remove obsolete localization test files and update UTF-8 tests for improved mock handling 2025-06-24 18:48:31 +02:00
Ming
8b7620b262 feat: Enhance run-server.sh with uv-first Python environment setup (#129)
* feat: Enhance run-server.sh with uv-first Python environment setup

- Implement uv-first approach for faster environment setup when available
- Add automatic WSL environment detection using wslvar for better Windows integration
- Improve system package installation by using bash -c for better command execution
- Add comprehensive environment validation and fallback mechanisms
- Optimize dependency installation with uv when environment supports it
- Enhance configuration display workflow for better user experience
- Add environment markers to track uv-created environments
- Improve error handling and user messaging throughout setup process

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

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: Add .claude/settings.local.json to .gitignore

Personal Claude Code settings should not be tracked in source control.

Reference: https://docs.anthropic.com/en/docs/claude-code/settings

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

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: Add shared Claude Code settings.json for team defaults

- Add .claude/settings.json with default permissions for team use
- Remove .claude/settings.local.json from git tracking (now personal config)

Reference: https://docs.anthropic.com/en/docs/claude-code/settings

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

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: Address Gemini Code Assist review issues in run-server.sh

- Fix hardcoded Unix paths (lines 563 & 568) with cross-platform detection
- Improve error handling by capturing uv stderr instead of /dev/null
- Fix uv environment detection logic to check uv_created marker file

Resolves three issues identified in PR review:
1. High Priority: Replace hardcoded $VENV_PATH/bin/python with detection
2. Medium Priority: Capture and display uv command errors for debugging
3. Medium Priority: Use marker file instead of path matching for uv detection

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

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: Address additional Gemini Code Assist feedback

- Enhance WSL warning message with more helpful guidance
- Add security comment explaining bash -c usage over eval
- Add get_venv_python_path helper function for cleaner cross-platform detection
- Improve path resolution error handling with proper error checking

Addresses 4 additional review points from gemini-code-assist to improve
user experience, code clarity, and error handling robustness.

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

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-06-24 11:31:50 +04:00
OhMyApps
c2342d341b fix: improve UTF-8 integration tests and response handling by adding details and fixes in mocks 2025-06-24 00:10:00 +02:00
OhMyApps
9cb992e780 fix: improve UTF-8 integration tests and response handling by adding details and fixes in mocks 2025-06-24 00:09:19 +02:00
OhMyApps
bf628f23ec fix: format error handling 2025-06-23 23:56:30 +02:00
OhMyApps
a46f8c2fad feat: add localization tests and improve locale handling in tools 2025-06-23 23:35:02 +02:00
OhMyApps
3368830f05 fix: remove unused imports and clean up code in various files 2025-06-23 23:24:38 +02:00
OhMyApps
f8e559ebb2 style: format code for consistency and readability across multiple files 2025-06-23 23:17:56 +02:00
OhMyApps
9945135a07 fix: correct import name for CodeReviewTool in UTF-8 tests 2025-06-23 23:09:52 +02:00
OhMyApps
0c7ac4fffd fix: sync fork 2025-06-23 22:38:40 +02:00
OhMyApps
29746f796b Merge branch 'BeehiveInnovations:main' into feat-local_support_with_UTF-8_encoding-update 2025-06-23 22:35:40 +02:00
OhMyApps
1fd48f034f Merge branch 'feat-local_support_with_UTF-8_encoding-update' of https://github.com/GiGiDKR/zen-mcp-server into feat-local_support_with_UTF-8_encoding-update 2025-06-23 22:24:47 +02:00
Fahad
4faa661c6d Updated guides 2025-06-23 19:44:01 +04:00
Illya Havsiyevych
a355b80afc feat: Add DISABLED_TOOLS environment variable for selective tool disabling (#127)
## Description

This PR adds support for selectively disabling tools via the DISABLED_TOOLS environment variable, allowing users to customize which MCP tools are available in their Zen server instance. This feature enables better control over tool availability for security,  performance, or organizational requirements.

## Changes Made

- [x] Added `DISABLED_TOOLS` environment variable support to selectively disable tools
- [x] Implemented tool filtering logic with protection for essential tools (version, listmodels)
- [x] Added comprehensive validation with warnings for unknown tools and attempts to disable essential tools
- [x] Updated `.env.example` with DISABLED_TOOLS documentation and examples
- [x] Added comprehensive test suite (16 tests) covering all edge cases
- [x] No breaking changes - feature is opt-in with default behavior unchanged

## Configuration

Add to `.env` file:
```bash
# Optional: Tool Selection
# Comma-separated list of tools to disable. If not set, all tools are enabled.
# Essential tools (version, listmodels) cannot be disabled.
# Available tools: chat, thinkdeep, planner, consensus, codereview, precommit,
#                  debug, docgen, analyze, refactor, tracer, testgen
# Examples:
# DISABLED_TOOLS=                    # All tools enabled (default)
# DISABLED_TOOLS=debug,tracer        # Disable debug and tracer tools
# DISABLED_TOOLS=planner,consensus   # Disable planning tools
2025-06-23 19:07:40 +04:00
Fahad
3b250c95df Quick test mode for simulation tests
Fixed o4-mini name, OpenAI removed o4-mini-high
Add max_output_tokens property to ModelCapabilities
Fixed tests after refactor
2025-06-23 18:56:47 +04:00