Commit graph

14 commits

Author SHA1 Message Date
pdogra1299
f602840c97 feat: Add code snippet support and suggestions to add_comment tool
- Added code_snippet parameter to find line numbers automatically using code text
- Added search_context parameter with before/after arrays for disambiguation
- Added match_strategy parameter (strict/best) for handling multiple matches
- Added suggestion and suggestion_end_line parameters for code suggestions
- Created suggestion-formatter utility for formatting suggestion comments
- Enhanced tool definitions with clearer descriptions and examples
- Updated README with comprehensive usage guide and decision flow
- Removed all debug information from responses for production readiness
- Added detailed error responses when multiple code matches are found
- Improved type definitions and guards for new parameters

This makes the add_comment tool more intelligent and user-friendly, especially for AI-powered code review scenarios.
2025-06-27 02:26:08 +05:30
pdogra1299
d649a116fe feat(diff): add filtering capabilities to get_pull_request_diff
- Add include_patterns, exclude_patterns, and file_path parameters to get_pull_request_diff
- Implement a diff parser to filter the diff based on the provided patterns
- Add minimatch dependency for glob pattern matching
- Update documentation and changelog
2025-06-26 20:17:33 +05:30
pdogra1299
793355bdaa feat: Add support for nested comment replies in Bitbucket Server (v0.6.1)
- Enhanced FormattedComment interface with replies field for nested threads
- Updated comment fetching to recursively process nested structure
- Fixed comment counting to include all nested replies
- Updated documentation to explain reply handling differences
- Maintained backward compatibility with existing tools
2025-06-26 18:42:08 +05:30
pdogra1299
c6d5b0a6f5 feat: add file and directory handling tools
- Added list_directory_content tool for browsing repository files/directories
- Added get_file_content tool with smart truncation for large files
- Smart defaults by file type (config: 200, docs: 300, code: 500 lines)
- Pagination support with start_line and line_count parameters
- Tail functionality using negative start_line values
- Auto-truncation for files >50KB, explicit approval needed for >1MB files
- Returns metadata including size, encoding, and last modified info
- Added FileHandlers class following modular architecture
- Added TypeScript interfaces and type guards
- Updated version to 0.5.0 and CHANGELOG
2025-06-21 17:25:00 +05:30
pdogra1299
b1a25d2a05 chore: Bump version to 0.4.0 for release
- Updated package.json version to 0.4.0
- Updated CHANGELOG.md with new release notes
- Updated version in index.ts
2025-06-21 16:24:08 +05:30
pdogra1299
5d38645127 feat: Add get_branch tool for comprehensive branch information
- Added new tool to get detailed branch information including associated PRs
- Supports both Bitbucket Server and Cloud APIs
- Returns branch details, open PRs, optionally merged PRs, and statistics
- Useful for checking PR status before branch deletion and branch management
- Added TypeScript interfaces for branch responses
- Added comprehensive documentation in README
2025-06-21 16:20:15 +05:30
pdogra1299
75c4192815 fix: Fix GET request parameter passing for all handlers
- Fixed API parameter passing for GET requests (was passing config as third parameter instead of fourth)
- Branch filtering now works correctly with filterText parameter for Bitbucket Server
- All GET requests with query parameters now functioning properly across all handlers
- Updated CHANGELOG.md to reflect the fixes
2025-06-05 14:49:51 +05:30
pdogra1299
c72336b460 feat: Added NPX support 2025-06-04 21:14:35 +05:30
pdogra1299
6abca3e7d0 feat: Add remaining PR lifecycle and code review tools
- Added create_pull_request, update_pull_request, merge_pull_request tools
- Added list_branches and delete_branch tools (fixed delete to handle 204 response)
- Enhanced add_comment to support inline comments on specific code lines
- Added all code review tools: approve/unapprove, request/remove changes, get diff
- Updated package version to 0.2.0
- Comprehensive documentation for all tools in README
2025-06-04 19:33:16 +05:30
Parth Dogra
66c28c421e
Merge pull request #1 from pdogra1299/feature/add-more-tools
Feature/add more tools
2025-06-04 18:01:06 +05:30
pdogra1299
5a2b31ac71 docs: update README with author filter notes for Bitbucket Server
- Add note that Bitbucket Server requires email address for author filter
- Clarify difference between Cloud (username) and Server (email) for author parameter
2025-06-04 17:57:13 +05:30
pdogra1299
a9278419f2 fix: correct author filter for Bitbucket Server using role.1 and username.1 parameters 2025-06-04 17:54:42 +05:30
pdogra1299
208366f9f5 feat: add list_pull_requests tool with filtering and pagination support 2025-06-04 17:42:51 +05:30
pdogra1299
b1d758646c Initial commit: Bitbucket MCP server with get_pull_request tool 2025-06-04 17:24:37 +05:30