Commit Graph

41 Commits

Author SHA1 Message Date
402f068470 feat: add cookie-based authentication support for enterprise GitLab (#101)
* feat: add cookie-based authentication support for GitLab instances 🍪

- Add GITLAB_AUTH_COOKIE_PATH environment variable support
- Handle #HttpOnly_ prefix in cookie files properly
- Enable redirect following when cookies are present
- Maintain compatibility with existing token-based auth

* chore: prepare fork for npm publishing as @mattweg/gitlab-mcp

- Update package name to @mattweg/gitlab-mcp
- Bump version to 1.0.63-fork.1
- Add attribution to original author zereight
- Add deprecation notice referencing upstream PR #100
- Add repository and homepage URLs for fork

* fix: remove duplicate documentation line

 - removed the duplicate GITLAB_AUTH_COOKIE_PATH from README.md

* fix: move cookie header outside conditional block for universal auth support

- Move cookie header setting outside if/else block to ensure it applies
  to both old (Private-Token) and new (Bearer) GitLab authentication
- Fixes issue where cookies were only set for Bearer token auth
- Maintains backward compatibility with existing authentication methods
- Enables cookie-based authentication for all GitLab instance types

Resolves authentication failures when using GITLAB_AUTH_COOKIE_PATH
with GitLab instances that require cookie-based authentication.

* 1.0.63

* fix: add support for macOS cookie format in auth cookie parsing 🍪

- Add fallback parsing for macOS cookie format
- Handle cookie files with different structure than standard Netscape format
- Maintain compatibility with existing Linux cookie parsing
- Extract cookie name and value from space-separated format

Resolves authentication failures when using GITLAB_AUTH_COOKIE_PATH on macOS systems.

* 1.0.64

* chore: update version to 1.0.63-fork.3

* fix: implement proper cookie jar authentication for macOS

- Replace static cookie string with fetch-cookie + tough-cookie
- Add proper Netscape cookie format parsing with domain context
- Enable automatic cookie handling during OAuth2 redirects
- Fixes authentication issues on macOS with enterprise SSO

* chore: update version to 1.0.63-fork.4

* feat: add cookie-based authentication support for enterprise GitLab instances

Add support for Netscape cookie file authentication to enable access to
enterprise GitLab instances that use SSO/OAuth2 redirects.

- Add GITLAB_AUTH_COOKIE_PATH environment variable
- Implement cookie jar with proper domain handling for redirects
- Use conditional fetch assignment: cookie-enabled when path configured
- Maintains backward compatibility: no cookies = original behavior
- Zero changes to existing fetch() calls throughout codebase

Enables authentication flows like: curl -L -b ~/.midway/cookie
Useful for enterprise environments with federated authentication.

* chore: update to fork version 1.0.63-fork.5 with cookie auth support

* feat: add cookie-based authentication support for enterprise GitLab instances

Add support for Netscape cookie file authentication to enable access to
enterprise GitLab instances that use SSO/OAuth2 redirects.

- Add GITLAB_AUTH_COOKIE_PATH environment variable
- Implement cookie jar with proper domain handling for redirects
- Use conditional fetch assignment: cookie-enabled when path configured
- Maintains backward compatibility: no cookies = original behavior
- Zero changes to existing fetch() calls throughout codebase

Enables authentication flows like: curl -L -b ~/.midway/cookie
Useful for enterprise environments with federated authentication.

* feat: implement robust cookie-based authentication with hybrid parsing

- Add support for Netscape cookie file format with #HttpOnly_ prefix handling
- Implement hybrid approach using tough-cookie's parse() for robust cookie parsing
- Add automatic session establishment for enterprise GitLab authentication
- Support cookie file path via GITLAB_AUTH_COOKIE_PATH environment variable
- Integrate with fetch-cookie for automatic redirect handling and session persistence
- Ensure compatibility with Midway enterprise authentication flow

This enables seamless authentication with enterprise GitLab instances that require
cookie-based authentication while maintaining clean, maintainable code using
widely-supported packages (tough-cookie + fetch-cookie).

* chore: bump version to 1.0.63-fork.6 with ultra-clean cookie auth

* fix: correct package name to @mattweg/gitlab-mcp for proper npx dependency resolution

- Fix package name mismatch that prevented npx from installing dependencies
- Bump version to 1.0.63-fork.7
- This resolves cookie authentication issues by ensuring fetch-cookie and tough-cookie are properly installed

* Improve cookie authentication with robust session establishment

* feat: add cookie-based authentication support

This feature adds support for cookie-based authentication with GitLab instances by:
- Adding a new GITLAB_AUTH_COOKIE_PATH environment variable to specify the path to a Netscape-format cookie file
- Implementing a cookie jar parser that handles standard Netscape cookie format
- Adding session establishment logic that checks for GitLab session cookies
- Ensuring all API requests use the authenticated session

This allows the MCP server to authenticate with GitLab instances that use cookie-based authentication, which is particularly useful for instances that require SSO or other authentication methods that don't support personal access tokens.

---------

Co-authored-by: Moon (mattweg's AI assistant) <moon+ai-assistant@mattweg.dev>
Co-authored-by: Matt Weg <mattweg@amazon.com>
2025-06-16 12:38:14 +09:00
f3854126ac DOC: readme docker image 2025-06-03 14:40:34 +09:00
e23739bb38 DOC 2025-06-02 20:06:08 +09:00
82a944427d FEAT: MCP SSE 2025-06-02 17:47:52 +09:00
6bc13794c8 fix: remove duplicate entry for get_branch_diffs in tools list 2025-05-30 11:30:00 +01:00
de0b138d80 [feat/pipeline-support] feat: add USE_PIPELINE environment variable for conditional pipeline feature activation
 Breaking Changes:
- Pipeline features are now opt-in via USE_PIPELINE environment variable

📝 Details:
- Pipeline 관련 도구들을 USE_PIPELINE 환경 변수로 제어 가능하도록 변경
- USE_GITLAB_WIKI, USE_MILESTONE과 동일한 패턴으로 구현
- 기본값은 false로 설정되어 pipeline 기능은 명시적으로 활성화해야 함
- README에 USE_PIPELINE 환경 변수 설명 추가
2025-05-30 00:48:53 +09:00
353638f5d7 [feat/pipeline-support] feat: add pipeline management commands
- Add create_pipeline command to trigger new pipelines
- Add retry_pipeline command to retry failed pipelines
- Add cancel_pipeline command to cancel running pipelines
- Add pipeline tests to validate-api.js
- Update README with new pipeline commands

Closes #46
2025-05-30 00:38:53 +09:00
1762a5851c [main] docs: update README with comments on GITLAB configuration options
📝 Details:
- Added comments for USE_GITLAB_WIKI and USE_MILESTONE options for clarity.
2025-05-30 00:16:39 +09:00
37203bae5a [main] docs: update README to remove automated testing section 📝
🚀 Breaking Changes:
- Removed details about automated testing setup and GitHub Actions.
2025-05-29 23:25:50 +09:00
5b35bc163c feat: add configuration files and scripts for project setup
🚀 Breaking Changes:
- Introduced new environment variables for GitLab API integration
- Added validation script for PR checks
- Updated package.json with new scripts for testing and formatting

📝 Details:
- Added .prettierrc and .eslintrc.json for code formatting and linting
- Created .env.example for environment variable setup
- Updated CHANGELOG.md with recent changes
- Added documentation for GitHub secrets setup
2025-05-29 23:24:46 +09:00
5762b32a69 feat: add milestone management commands to README
🚀 Breaking Changes:
- Introduced new commands for milestone management in GitLab.

📝 Details:
- Added commands: list_milestones, get_milestone, create_milestone, edit_milestone, delete_milestone, get_milestone_issue, get_milestone_merge_requests, promote_milestone, get_milestone_burndown_events.
2025-05-29 19:53:19 +09:00
0b876ebff6 FEAT: docker image push script 2025-05-29 16:46:53 +09:00
cc847772f1 feat: implement list_merge_requests functionality
- Add ListMergeRequestsSchema with comprehensive filtering options
- Implement listMergeRequests function following GitLab API
- Add tool definition and switch case handler
- Include in readOnlyTools array
- Update README.md with new tool documentation
2025-05-28 17:22:40 +02:00
ea06c21f29 feat(release): 1.0.44 adds pipeline jobs tool 2025-05-24 13:31:47 +02:00
dc6cc59434 feat: add support for creating and updating issue notes
- Added create_issue_note to add a new note to an existing issue thread
- Added update_issue_note to modify an existing issue thread note
- Similar to existing merge request note functions but for issues
2025-05-22 13:25:31 +02:00
f4b265bf2e fix: fix README 2025-05-21 14:35:37 +09:30
4c57c37888 feat: add issue discussions support
Added `list_issue_discussions` tool to support GitLab issue discussions
similar to merge request discussions.
2025-05-20 15:45:23 +02:00
6f789692be feat: add docker image and push to dockerhub 2025-05-20 16:04:37 +09:30
353e62a401 refactor: rename add_merge_request_thread_note to create_merge_request_note for consistency 2025-05-13 16:52:17 -06:00
3f2b35535e feat: Implement add_merge_request_thread_note function for adding notes to existing MR threads 2025-05-13 16:20:21 -06:00
026dd58887 feat: Add create_merge_request_thread tool for diff notes
- Implement new tool for creating MR threads with positioning support
- Create schemas to handle diff notes with file and line number positions
- Support optional created_at timestamp parameter
- Update README with the new tool information
2025-05-13 15:45:43 -06:00
3a25e7c5e8 [main] docs: update README with detailed descriptions for merge request functions
📝 Details:
- Added clarifications for `get_merge_request`, `get_merge_request_diffs`, and `update_merge_request` functions.
- Introduced `get_repository_tree` function to the documentation.
2025-05-07 21:46:35 +09:00
95d8118ea5 [main] feat: README.md 도구 섹션 자동 업데이트 기능 추가
🚀 Breaking Changes:
- README.md의 도구 섹션이 자동으로 업데이트됩니다.

📝 Details:
- index.ts에서 도구 정보를 추출하여 README.md의 특정 섹션을 업데이트하는 스크립트 추가
- package.json에 도구 생성 스크립트 명령어 추가
2025-04-25 00:11:34 +09:00
340a5ffdc8 [main] feat: GitLab 위키 기능 활성화 설정 추가
🚀 Breaking Changes:
- GITLAB_READ_ONLY_MODE을 'false'로 변경
- USE_GITLAB_WIKI를 추가하여 위키 관련 도구 활성화

📝 Details:
- README.md에 새로운 환경 변수 설명 추가
2025-04-24 23:57:58 +09:00
e3300f099b docs: update README to include Cursor in usage section and clarify GITLAB_READ_ONLY_MODE environment variable details. Enhance security documentation for read-only mode. 2025-04-01 16:58:29 -04:00
43fe8308ce Merge pull request #25 from thomasleveil/list_group_projects
 Add `list_group_projects tool`
2025-03-31 18:00:44 +09:00
6b8d40bea2 Add list_group_projects tool
- Implemented `list_group_projects` function to list all projects in a GitLab group with various filtering options.
- Updated package dependencies, including `@modelcontextprotocol/sdk` to version 1.8.0 and `zod` to version 3.24.2.
2025-03-29 20:08:27 +01:00
8ab4227b69 Update README.md
fix descriptions of tools
2025-03-29 19:05:40 +01:00
044f443e20 Add Labels API support for GitLab projects 2025-03-18 15:13:40 -07:00
f54b815e23 Improve README documentation with more detailed tool descriptions 2025-03-18 03:03:45 -07:00
34c9d58fc6 Reformat README with beautiful table for MCP tools reference 2025-03-18 02:57:55 -07:00
782e0d2c2d README.md에서 기능 섹션 제거: 불필요한 정보 삭제 및 문서 간소화 2025-02-21 09:33:30 +09:00
db35efff4b README.md 및 index.ts 업데이트: 버그 수정 및 개선 사항 포함, 서버 이름 변경 2025-02-21 09:25:21 +09:00
f143ca0023 README.md 업데이트: 새로운 create_note 함수 추가 및 관련 스키마 정의 2025-02-20 05:52:20 +09:00
3629949627 README.md 업데이트: 기능 및 도구 섹션 추가, 설치 및 사용법 개선 2025-02-20 05:47:04 +09:00
e65ddc246f Merge pull request #2 from smithery-ai/smithery/config-fy90
Deployment: Dockerfile and Smithery config
2025-02-13 05:53:00 +09:00
61d0649781 Merge pull request #1 from punkpeye/patch-1
add MCP server badge
2025-02-13 05:52:46 +09:00
92e55595fd README.md 업데이트: Claude App 사용법에 Cline 및 Roo Code 추가, GitLab 서버 명령어 수정 2025-02-13 05:48:30 +09:00
0f9b84dcdf Update README 2025-02-13 00:02:14 +08:00
04733ba2ab add MCP server badge
This PR adds a badge for the [gitlab mcp](https://glama.ai/mcp/servers/7jwbk4r6d7) server listing in Glama MCP server directory.

<a href="https://glama.ai/mcp/servers/7jwbk4r6d7"><img width="380" height="200" src="https://glama.ai/mcp/servers/7jwbk4r6d7/badge" alt="gitlab mcp MCP server" /></a>

Glama performs regular codebase and documentation checks to:

* Confirm that the MCP server is working as expected
* Confirm that there are no obvious security issues with dependencies of the server
* Extract server characteristics such as tools, resources, prompts, and required parameters.

This badge helps your users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
2025-02-11 00:52:08 -06:00
d686f4e2d7 초기 설정 파일 추가: .gitignore, tsconfig.json, package.json 및 README.md 생성
Generated by Copilot
2025-02-11 10:36:57 +09:00