- Add gitea-mcp-server git dependency from marketplace
- Update version to 0.2.0
- Update entry point to server_http:main
- Add MCP and Caddy environment variables to .env.example
- Update uvicorn and starlette versions
- Add pyjwt for authentication
- Regenerate requirements.txt with all dependencies
Closes#22
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit implements a robust configuration loader using Pydantic Settings that handles:
Features:
- Environment variable loading with .env file support
- Type validation and field constraints
- Gitea configuration (URL, token, owner, repo)
- HTTP server configuration (host, port)
- Optional HTTP authentication token
- Optional tool filtering (enabled/disabled tool lists)
Implementation:
- GiteaSettings class with Pydantic validation
- URL validation ensuring http:// or https:// prefix
- Helper properties for parsing comma-separated tool lists
- get_gitea_mcp_env() method to pass config to wrapped MCP server
- load_settings() factory function with optional env_file path
Documentation:
- .env.example template with all configuration options
- Comprehensive docstrings and type hints
This module unblocks both the tool filtering (#12) and HTTP authentication middleware (#13) implementations.
Closes#11
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>