Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: johnhuang316/code-index-mcp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: johnhuang316/code-index-mcp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.1
Choose a head ref
  • 7 commits
  • 10 files changed
  • 3 contributors

Commits on Jun 26, 2025

  1. docs: Refine README for clarity and accuracy

    Overhauled the README files (en and zh) to improve user experience based on a detailed analysis of the project's functionality and MCP best practices.
    
    Key changes include:
    - **Clarified Tooling**: Removed non-existent `search_code` tool and renamed `search_code_advanced` to `search_code` for simplicity. Added the `refresh_search_tools` utility.
    - **Improved Setup Instructions**: Restructured the setup guide to provide clear, use-case-driven instructions for general users, local developers, and manual installers.
    - **Logical Workflow**: Re-wrote the usage examples into a step-by-step workflow, introducing the concept of indexing and refreshing for better user understanding.
    johnhuang316 committed Jun 26, 2025
    Configuration menu
    Copy the full SHA
    03eb934 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2025

  1. Update README.md

    Add detail for Claude Code
    topiaruss authored Jul 3, 2025
    Configuration menu
    Copy the full SHA
    a5d6d32 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2025

  1. Merge pull request #8 from topiaruss/patch-1

    Update README.md
    johnhuang316 authored Jul 7, 2025
    Configuration menu
    Copy the full SHA
    141b017 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2025

  1. Refactor: Improve file_index structure to prevent KeyError

    This commit refactors the internal `file_index` data structure to be more explicit and robust, preventing a `KeyError` crash in the `find_files` tool.
    
    Previously, the `file_index` was inconsistent: file entries were marked with "type": "file", but directory entries were implicitly represented by a plain dictionary, lacking a `type` key. This led to errors in functions like `_get_all_files` that incorrectly assumed the `type` key would always be present.
    
    This has been resolved by:
    - Modifying `_index_project` to explicitly add {"type": "directory", "children": {}} for all directory entries.
    - Updating the helper functions (`_get_all_files`, `_count_files`) to correctly parse this new, consistent structure.
    - Adding backward-compatibility in `set_project_path` to handle old-format index files by gracefully triggering a re-index if loading fails.
    
    This change makes the indexing logic more maintainable and less prone to errors.
    
    Fixes the first part of #10.
    johnhuang316 committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    73a0767 View commit details
    Browse the repository at this point in the history
  2. fix: improve file pattern handling across search strategies

    This commit addresses the file_pattern issues reported in GitHub issue #10
    regarding inconsistent behavior across different search strategies.
    
    Changes:
    - Fix UgrepStrategy: Use -g option instead of incorrect --include format
    - Fix BasicSearchStrategy: Add proper glob pattern matching with fnmatch
    - Fix BasicSearchStrategy: Correct newline stripping (use '\n' not '\\n')
    - Improve BasicSearchStrategy error handling with specific exception types
    - Enhance search_code_advanced docstring with detailed tool behavior documentation
    
    The search_code_advanced tool now provides comprehensive documentation
    about how different search tools handle file patterns and fuzzy matching,
    helping LLMs understand the differences between:
    - ugrep: Native glob support and fuzzy search
    - ripgrep: Good glob and regex support
    - ag: Converts globs to regex (may have limitations)
    - grep: Standard glob support
    - basic: Fallback with full glob support via fnmatch
    
    This ensures file_pattern parameters like "src/*.py" work consistently
    across all available search strategies.
    
    Related to #10
    johnhuang316 committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    4e1ffdc View commit details
    Browse the repository at this point in the history
  3. fix: improve file pattern handling across search strategies

    This commit addresses the file_pattern issues reported in GitHub issue #10
    regarding inconsistent behavior across different search strategies.
    
    Changes:
    - Fix UgrepStrategy: Use -g option instead of incorrect --include format
    - Fix BasicSearchStrategy: Add proper glob pattern matching with fnmatch
    - Fix BasicSearchStrategy: Correct newline stripping (use '\n' not '\\n')
    - Improve BasicSearchStrategy error handling with specific exception types
    - Enhance search_code_advanced docstring with detailed tool behavior documentation
    
    The search_code_advanced tool now provides comprehensive documentation
    about how different search tools handle file patterns and fuzzy matching,
    helping LLMs understand the differences between:
    - ugrep: Native glob support and fuzzy search
    - ripgrep: Good glob and regex support  
    - ag: Converts globs to regex (may have limitations)
    - grep: Standard glob support
    - basic: Fallback with full glob support via fnmatch
    
    This ensures file_pattern parameters like "src/*.py" work consistently
    across all available search strategies.
    
    Related to #10
    johnhuang316 committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    5115290 View commit details
    Browse the repository at this point in the history
  4. bump version to 0.3.1

    johnhuang316 committed Jul 11, 2025
    Configuration menu
    Copy the full SHA
    d01ca51 View commit details
    Browse the repository at this point in the history
Loading