RF

raohwork/forgejo-mcp

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

70 stars 19 forks 质量 67 趋势 14MPL-2.0

raohwork/forgejo-mcp 是从 https://github.com/raohwork/forgejo-mcp. 导入的 MCP 服务器候选

概览

raohwork/forgejo-mcp 是从 https://github.com/raohwork/forgejo-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

将AI变成你的代码仓库管理助手

一个模型上下文协议(MCP)服务器,允许你通过 Claude、Gemini 和 Copilot 等 AI 助手管理 Gitea/Forgejo 仓库。

🚀 为什么要用Forgejo MCP服务器?

如果你想:

  • 智能进度跟踪:让AI帮助你跟踪项目进度并分析瓶颈
  • 自动期刊分类:自动标记期刊标签并根据内容设置里程碑
  • 优先排序:让AI分析问题内容,帮助优先排序任务
  • 代码审查协助:在拉取请求中获取AI建议和洞察
  • 项目文档组织:自动组织维基文档和发布说明

那么这个工具就是为你量身打造的!

✨ 支持的功能

议题管理

  • 创建、编辑和查看期刊
  • 添加、删除和替换标签
  • 管理议题评论和附件
  • 集合发射依赖关系

项目组织

  • 管理标签(创建、编辑、删除)
  • 管理里程碑(创建、编辑、删除)
  • 仓库搜索与列表

发行管理

  • 管理版本发布
  • 管理释放附件

其他特色

  • 查看拉取请求

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Gitea/Forgejo MCP Server

Turn AI into your code repository management assistant

A Model Context Protocol (MCP) server that enables you to manage Gitea/Forgejo repositories through AI assistants like Claude, Gemini, and Copilot.

🚀 Why Use Forgejo MCP Server?

If you want to:

  • Smart progress tracking: Let AI help you track project progress and analyze bottlenecks
  • Automated issue categorization: Automatically tag issue labels and set milestones based on content
  • Priority sorting: Let AI analyze issue content to help prioritize tasks
  • Code review assistance: Get AI suggestions and insights in Pull Requests
  • Project documentation organization: Automatically organize Wiki documents and release notes

Then this tool is made for you!

✨ Supported Features

Issue Management

  • Create, edit, and view issues
  • Add, remove, and replace labels
  • Manage issue comments and attachments
  • Set issue dependencies

Project Organization

  • Manage labels (create, edit, delete)
  • Manage milestones (create, edit, delete)
  • Repository search and listing

Release Management

  • Manage version releases
  • Manage release attachments

Other Features

  • View Pull Requests
  • Manage Wiki pages
  • View Forgejo/Gitea Actions tasks

📦 Installation

For STDIO mode, you can skip to Usage section.

For SSE/Streamable HTTP mode, you should run forgejo-mcp as server before configuring your MCP client.

docker run -p 8080:8080 -e FORGEJOMCP_TOKEN="my-forgejo-api-token" ronmi/forgejo-mcp http --address :8080 --server https://git.example.com

Method 2: Install from source

go install github.com/raohwork/forgejo-mcp@latest

Method 3: Download Pre-compiled Binaries

Download the appropriate version for your operating system from the Releases page.

🖥️ Usage

This tool provides two primary modes of operation: stdio for local integration and http for remote access.

Before actually setup you MCP client, you have to create an access token on the Forgejo/Gitea server.

  1. Log in to your Forgejo/Gitea instance
  2. Go to Settings → Applications → Access Tokens
  3. Click Generate New Token
  4. Select appropriate permission scopes (recommend at least repository and issue write permissions)
  5. Copy the generated token

💡 Tip: For security, consider setting environment variables instead of using tokens directly in config:

export FORGEJOMCP_SERVER="https://your-forgejo-instance.com"
export FORGEJOMCP_TOKEN="your_access_token"

Stdio Mode (for Local Clients)

This is the recommended mode for integrating with local AI assistant clients like Claude Desktop or Gemini CLI. It uses standard input/output for direct communication.

Configure Your AI Client

Using docker:

{
  "mcpServers": {
    "forgejo": {
      "command": "docker",
在 GitHub 查看完整 README

安装

docker run -p 8080:8080 -e FORGEJOMCP_TOKEN="my-forgejo-api-token" ronmi/forgejo-mcp http --address :8080 --server https://git.example.com
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "forgejo": { "command": "docker", "args": [ "--rm", "ronmi/forgejo-mcp", "stdio", "--server", "https://your-forgejo-instance.com", "--token", "your_access_token" ] } } }