lmiranda 38dd315dd5 feat(tools): implement milestone operations
Implemented MCP tools for Gitea milestone operations:

- Created src/gitea_mcp/tools/milestones.py with milestone tools
  - gitea_list_milestones: List milestones with state filter (open/closed/all)
  - gitea_create_milestone: Create milestone with title, description, due date
  - Error handling via GiteaClientError
  - Helper functions _list_milestones and _create_milestone

- Updated src/gitea_mcp/tools/__init__.py
  - Exported get_milestone_tools and handle_milestone_tool

- Updated src/gitea_mcp/server.py
  - Imported milestone tool functions
  - Added milestone tools to list_tools()
  - Added milestone handler to call_tool() dispatcher

API endpoints implemented:
- GET /repos/{owner}/{repo}/milestones (list with state filter)
- POST /repos/{owner}/{repo}/milestones (create)

All acceptance criteria met:
- tools/milestones.py created with MCP tool handlers
- gitea_list_milestones with state filter implemented
- gitea_create_milestone with title, description, due_on implemented
- Tools registered in server.py
- tools/__init__.py exports updated

Closes #5

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 15:19:24 -05:00

Gitea MCP Remote

MCP server for Gitea API integration.

Overview

This project provides a Model Context Protocol (MCP) server that enables AI assistants to interact with Gitea through its API.

Project Status

Currently in initial development. Project structure has been initialized.

Requirements

  • Python >= 3.10
  • Gitea instance with API access

Installation

pip install -e .

Development

Install with development dependencies:

pip install -e ".[dev]"

Run tests:

pytest

License

MIT

Description
Standalone dockerized application to provide Gitea MCP server to Claude.ai
Readme 210 KiB
Languages
Python 93.8%
Shell 3.2%
Dockerfile 3%