{"id":26648615,"url":"https://github.com/oschina/mcp-gitee","last_synced_at":"2025-10-28T07:03:29.543Z","repository":{"id":282358274,"uuid":"947190076","full_name":"oschina/mcp-gitee","owner":"oschina","description":"mcp-gitee is a Model Context Protocol (MCP) server implementation for Gitee. It provides a set of tools that interact with Gitee's API, allowing AI assistants to manage repository, issues, pull requests, etc.","archived":false,"fork":false,"pushed_at":"2025-08-22T03:24:43.000Z","size":3551,"stargazers_count":36,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-22T05:32:06.623Z","etag":null,"topics":["gitee","mcp","mcp-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oschina.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-12T09:46:56.000Z","updated_at":"2025-08-22T03:24:46.000Z","dependencies_parsed_at":"2025-07-24T04:31:23.641Z","dependency_job_id":"04aaa6ad-d126-4069-99f4-8750268fe512","html_url":"https://github.com/oschina/mcp-gitee","commit_stats":null,"previous_names":["oschina/mcp-gitee"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/oschina/mcp-gitee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschina%2Fmcp-gitee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschina%2Fmcp-gitee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschina%2Fmcp-gitee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschina%2Fmcp-gitee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oschina","download_url":"https://codeload.github.com/oschina/mcp-gitee/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oschina%2Fmcp-gitee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275160031,"owners_count":25415764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gitee","mcp","mcp-server"],"created_at":"2025-03-25T00:02:12.329Z","updated_at":"2025-10-28T07:03:24.522Z","avatar_url":"https://github.com/oschina.png","language":"Go","funding_links":[],"categories":["Developer Tools","Repository \u0026 Code Analysis Mcp Servers","MCP 服务器精选列表","📚 Projects (1974 total)","Production-Ready Servers","⚙️ DevOps","Version Control","Table of Contents","Official Servers","官方 MCP 服务器列表","Other"],"sub_categories":["Version Control","🔄 版本控制 (Git / GitHub / GitLab)","MCP Servers","How to Submit"],"readme":"# Gitee MCP Server\n\nGitee MCP Server is a Model Context Protocol (MCP) server implementation for Gitee. It provides a set of tools for interacting with Gitee's API, allowing AI assistants to manage repositories, issues, pull requests, and more.\n\n[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en/install-mcp?name=gitee\u0026config=eyJ1cmwiOiJodHRwczovL2FwaS5naXRlZS5jb20vbWNwIiwiaGVhZGVycyI6eyJBdXRob3JpemF0aW9uIjoiQmVhcmVyIDx5b3VyIHBlcnNvbmFsIGFjY2VzcyB0b2tlbj4ifX0%3D)\n\n## Features\n\n- Interact with Gitee repositories, issues, pull requests, and notifications\n- Configurable API base URL to support different Gitee instances\n- Command-line flags for easy configuration\n- Supports both personal, organization, and enterprise operations\n- Dynamic toolset enable/disable\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003ePractical scenario: Obtain Issue from the repository, implement and create a Pull Request\u003c/b\u003e\u003c/summary\u003e\n\n1. Get repository Issues\n![get_repo_issues](./docs/images/get_repo_issues.jpg)\n2. Implement coding \u0026 create Pull Request based on Issue details\n![implement_issue](./docs/images/implement_issue.jpg)\n3. Comment \u0026 Close Issue\n![comment_and_close_issue](./docs/images/comment_and_close_issue.jpg)\n\u003c/details\u003e\n\n## Installation(This step can be skipped directly when starting npx)\n\n### Prerequisites\n\n- Go 1.23.0 or higher\n- Gitee account with an access token, [Go to get](https://gitee.com/profile/personal_access_tokens)\n\n### Building from Source\n\n1. Clone the repository:\n   ```bash\n   git clone https://gitee.com/oschina/mcp-gitee.git\n   cd mcp-gitee\n   ```\n\n2. Build the project:\n   ```bash\n   make build\n   ```\n   Move ./bin/mcp-gitee PATH env\n\n### Use go install\n   ```bash\n   go install gitee.com/oschina/mcp-gitee@latest\n   ```\n\n## Usage\n\nCheck mcp-gitee version:\n\n```bash\nmcp-gitee --version\n```\n\n## MCP Hosts Configuration\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"docs/install/claude.md\" title=\"Claude\"\u003e\u003cimg src=\"docs/install/logos/Claude.png\" width=80 height=80\u003e\u003c/a\u003e\n  \u003ca href=\"docs/install/cursor.md\" title=\"Cursor\"\u003e\u003cimg src=\"docs/install/logos/Cursor.png\" width=80 height=80\u003e\u003c/a\u003e\n  \u003ca href=\"docs/install/trae.md\" title=\"Trae\"\u003e\u003cimg src=\"docs/install/logos/Trae.png\" width=80 height=80\u003e\u003c/a\u003e\n  \u003ca href=\"docs/install/cline.md\" title=\"Cline\"\u003e\u003cimg src=\"docs/install/logos/Cline.png\" width=80 height=80\u003e\u003c/a\u003e\n  \u003ca href=\"docs/install/windsurf.md\" title=\"Windsurf\"\u003e\u003cimg src=\"docs/install/logos/Windsurf.png\" width=80 height=80\u003e\u003c/a\u003e\n\u003c/div\u003e\n\nconfig example: [Click to view more application configuration](./docs/install/)\n- Connect to the official remote mcp-gitee server (no installation required)\n```json\n{\n  \"mcpServers\": {\n    \"gitee\": {\n      \"url\": \"https://api.gitee.com/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer \u003cyour personal access token\u003e\"\n      }\n    }\n  }\n}\n```\n\n- npx\n```json\n{\n  \"mcpServers\": {\n    \"gitee\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@gitee/mcp-gitee@latest\"\n      ],\n      \"env\": {\n        \"GITEE_API_BASE\": \"https://gitee.com/api/v5\",\n        \"GITEE_ACCESS_TOKEN\": \"\u003cyour personal access token\u003e\"\n      }\n    }\n  }\n}\n```\n- executable\n```json\n{\n  \"mcpServers\": {\n    \"gitee\": {\n      \"command\": \"mcp-gitee\",\n      \"env\": {\n        \"GITEE_API_BASE\": \"https://gitee.com/api/v5\",\n        \"GITEE_ACCESS_TOKEN\": \"\u003cyour personal access token\u003e\"\n      }\n    }\n  }\n}\n```\n\n### Command-line Options\n\n- `--token`: Gitee access token\n- `--api-base`: Gitee API base URL (default: https://gitee.com/api/v5)\n- `--version`: Show version information\n- `--transport`: Transport type (stdio、sse or http, default: stdio)\n- `--address`: The host and port to start the server on (default: localhost:8000)\n- `--enabled-toolsets`: Comma-separated list of tools to enable (if specified, only these tools will be enabled)\n- `--disabled-toolsets`: Comma-separated list of tools to disable\n\n### Environment Variables\n\nYou can also configure the server using environment variables:\n\n- `GITEE_ACCESS_TOKEN`: Gitee access token\n- `GITEE_API_BASE`: Gitee API base URL\n- `ENABLED_TOOLSETS`: Comma-separated list of tools to enable\n- `DISABLED_TOOLSETS`: Comma-separated list of tools to disable\n\n### Toolset Management\n\nToolset management supports two modes:\n\n1. Enable specified tools (whitelist mode):\n   - Use `--enabled-toolsets` parameter or `ENABLED_TOOLSETS` environment variable\n   - Specify after, only listed tools will be enabled, others will be disabled\n   - Example: `--enabled-toolsets=\"list_user_repos,get_file_content\"`\n\n2. Disable specified tools (blacklist mode):\n   - Use `--disabled-toolsets` parameter or `DISABLED_TOOLSETS` environment variable\n   - Specify after, listed tools will be disabled, others will be enabled\n   - Example: `--disabled-toolsets=\"list_user_repos,get_file_content\"`\n\nNote:\n- If both `enabled-toolsets` and `disabled-toolsets` are specified, `enabled-toolsets` takes precedence\n- Tool names are case-sensitive\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Available Tools\n\nThe server provides various tools for interacting with Gitee:\n\n| Tool                                | Category | Description |\n|-------------------------------------|----------|-------------|\n| **list_user_repos**                 | Repository | List user authorized repositories |\n| **get_file_content**                | Repository | Get the content of a file in a repository |\n| **create_user_repo**                | Repository | Create a user repository |\n| **create_org_repo**                 | Repository | Create an organization repository |\n| **create_enter_repo**               | Repository | Create an enterprise repository |\n| **fork_repository**                 | Repository | Fork a repository |\n| **create_release**                  | Repository | Create a release for a repository |\n| **list_releases**                   | Repository | List repository releases |\n| **search_open_source_repositories** | Repository | Search open source repositories on Gitee |\n| **list_repo_pulls**                 | Pull Request | List pull requests in a repository |\n| **merge_pull**                      | Pull Request | Merge a pull request |\n| **create_pull**                     | Pull Request | Create a pull request |\n| **update_pull**                     | Pull Request | Update a pull request |\n| **get_pull_detail**                 | Pull Request | Get details of a pull request |\n| **comment_pull**                    | Pull Request | Comment on a pull request |\n| **list_pull_comments**              | Pull Request | List all comments for a pull request |\n| **get_diff_files**                  | Pull Request | Get a pull request diff files |\n| **create_issue**                    | Issue | Create an issue |\n| **update_issue**                    | Issue | Update an issue |\n| **get_repo_issue_detail**           | Issue | Get details of a repository issue |\n| **list_repo_issues**                | Issue | List repository issues |\n| **comment_issue**                   | Issue | Comment on an issue |\n| **list_issue_comments**             | Issue | List comments on an issue |\n| **get_user_info**                   | User | Get current authenticated user information |\n| **search_users**                    | User | Search for users |\n| **list_user_notifications**         | Notification | List user notifications |\n\n## Contribution\n\nWe welcome contributions from the open-source community! If you'd like to contribute to this project, please follow these guidelines:\n\n1. Fork the repository.\n2. Create a new branch for your feature or bug fix.\n3. Make your changes and ensure the code is well-documented.\n4. Submit a pull request with a clear description of your changes.\n\nFor more information, please refer to the [CONTRIBUTING](CONTRIBUTING.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foschina%2Fmcp-gitee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foschina%2Fmcp-gitee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foschina%2Fmcp-gitee/lists"}