Files
gitea-mcp/BUILDING.md
Nassim Amar bdd9fb1816 Milestone addition and Windows build support (#104)
## Milestone Implementation

The `milestone.go` file adds comprehensive milestone functionality to the Gitea MCP server with the following MCP tools:

### Tools Added:

1. __`get_milestone`__ - Retrieves a specific milestone by ID
2. __`list_milestones`__ - Lists repository milestones with filtering options
3. __`create_milestone`__ - Creates new milestones with title, description, and due dates
4. __`edit_milestone`__ - Modifies existing milestones including state changes
5. __`delete_milestone`__ - Removes milestones from repositories

### Integration with Other Components:

__Issue Management__:

- Issues can be associated with milestones through the `edit_issue` tool
- The `milestone` parameter (number) links issues to specific milestones
- This creates traceability between development tasks and project milestones

__Pull Request Filtering__:

- Pull requests can be filtered by milestone using the `milestone` parameter
- This enables viewing all PRs related to a specific milestone

### Key Features:

- __State Management__: Milestones support "open" and "closed" states
- __Due Dates__: Optional due dates for milestone tracking
- __Pagination__: List operations support pagination for large datasets
- __Full CRUD Operations__: Complete create, read, update, delete capabilities

### Workflow Integration:

While there's no direct commit message integration shown in the current implementation, milestones provide project planning capabilities that integrate with:

- Issue tracking (linking issues to milestones)
- Development workflow (filtering PRs by milestone)
- Project management (due dates, state tracking)

This addition enables project management capabilities within the Gitea MCP server, allowing users to organize work into milestones and track progress across issues and pull requests.

----------------------
feat: add Windows build support with PowerShell and batch scripts

Add comprehensive Windows build support including PowerShell script (build.ps1) and batch wrapper (build.bat) that replicate Makefile functionality. The scripts provide targets for building, installing, cleaning, and development with hot reload support. Also includes detailed BUILDING.md documentation for Windows users.

Co-authored-by: hiifong <i@hiif.ong>
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/104
Reviewed-by: hiifong <i@hiif.ong>
Co-authored-by: Nassim Amar <namar0x0309@pm.me>
Co-committed-by: Nassim Amar <namar0x0309@pm.me>
2025-11-02 03:18:57 +00:00

1.3 KiB

Building gitea-mcp on Windows

This project includes PowerShell and batch scripts to build the gitea-mcp application on Windows systems.

Prerequisites

  • Go 1.24 or later
  • Git (for version information)
  • PowerShell 5.1 or later (included with Windows 10/11)

Build Scripts

PowerShell Script (build.ps1)

The main build script that replicates all Makefile functionality:

# Show help
.\build.ps1 help

# Build the application
.\build.ps1 build

# Install the application
.\build.ps1 install

# Clean build artifacts
.\build.ps1 clean

# Run in development mode (hot reload)
.\build.ps1 dev

# Update vendor dependencies
.\build.ps1 vendor

Batch File Wrapper (build.bat)

A simple wrapper to run the PowerShell script:

# Run with default help target
build.bat

# Run specific target
build.bat build
build.bat install

Available Targets

  • help - Print help message
  • build - Build the application executable
  • install - Build and install to GOPATH/bin
  • uninstall - Remove executable from GOPATH/bin
  • clean - Remove build artifacts
  • air - Install air for hot reload development
  • dev - Run with hot reload development
  • vendor - Tidy and verify Go module dependencies

Output

The build process creates gitea-mcp.exe in the project directory.