-
Notifications
You must be signed in to change notification settings - Fork 52
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
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
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 7 commits
- 10 files changed
- 3 contributors
Commits on Jun 26, 2025
-
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 committedJun 26, 2025 Configuration menu - View commit details
-
Copy full SHA for 03eb934 - Browse repository at this point
Copy the full SHA 03eb934View commit details
Commits on Jul 3, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a5d6d32 - Browse repository at this point
Copy the full SHA a5d6d32View commit details
Commits on Jul 7, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 141b017 - Browse repository at this point
Copy the full SHA 141b017View commit details
Commits on Jul 11, 2025
-
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 committedJul 11, 2025 Configuration menu - View commit details
-
Copy full SHA for 73a0767 - Browse repository at this point
Copy the full SHA 73a0767View commit details -
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 committedJul 11, 2025 Configuration menu - View commit details
-
Copy full SHA for 4e1ffdc - Browse repository at this point
Copy the full SHA 4e1ffdcView commit details -
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 committedJul 11, 2025 Configuration menu - View commit details
-
Copy full SHA for 5115290 - Browse repository at this point
Copy the full SHA 5115290View commit details -
johnhuang316 committed
Jul 11, 2025 Configuration menu - View commit details
-
Copy full SHA for d01ca51 - Browse repository at this point
Copy the full SHA d01ca51View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3.0...v0.3.1