- Create labels.py with gitea_list_labels and gitea_create_label tools
- Integrate milestone tools from milestones.py into server
- Update tools/__init__.py with all tool exports
- Update server.py to handle label and milestone tool calls
Closes#4, Closes#5
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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>
Implement Gitea issue operations tools with the following features:
- gitea_list_issues: List issues with filters (state, labels, milestone)
- gitea_get_issue: Get single issue by number
- gitea_create_issue: Create new issue with title, body, labels, milestone
- gitea_update_issue: Update issue state, title, body, labels, assignees
Files added:
- src/gitea_mcp/tools/issues.py: Issue operation tool handlers
Files modified:
- src/gitea_mcp/server.py: Register issue tools in MCP server
- src/gitea_mcp/tools/__init__.py: Export issue tool functions
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Create pyproject.toml with project metadata
- Add dependencies: mcp, httpx, python-dotenv
- Set up src/gitea_mcp package structure with __init__.py files
- Create placeholder server.py for MCP server implementation
- Add tools subdirectory for future tool implementations
- Create tests directory structure
- Update .gitignore with comprehensive Python exclusions
- Add README.md with project overview
Uses modern src-layout with pyproject.toml (no setup.py).
Project is ready for MCP server implementation.
Closes#1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>