Lets agents work with Gitee repositories, files, branches, issues and pull requests.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add gitee --env GITEE_PERSONAL_ACCESS_TOKEN='<GITEE_PERSONAL_ACCESS_TOKEN>' -- npx -y gitee-mcp-server~/.codex/config.toml
[mcp_servers.gitee]
command = "npx"
args = ["-y", "gitee-mcp-server"]
env = { GITEE_PERSONAL_ACCESS_TOKEN = "<GITEE_PERSONAL_ACCESS_TOKEN>" }
# codex mcp add gitee --env GITEE_PERSONAL_ACCESS_TOKEN='<GITEE_PERSONAL_ACCESS_TOKEN>' -- npx -y gitee-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<GITEE_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"gitee": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<GITEE_PERSONAL_ACCESS_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<GITEE_PERSONAL_ACCESS_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<GITEE_PERSONAL_ACCESS_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<GITEE_PERSONAL_ACCESS_TOKEN>"
}
}
}
}Environment variables
GITEE_PERSONAL_ACCESS_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.