refactor: Rename package to gitea_mcp_remote and update configuration

Issue #19 - Foundation for Sprint 01: Core Architecture Correction

Changes:
- Renamed package directory: gitea_http_wrapper -> gitea_mcp_remote
- Updated config/settings.py:
  - Made gitea_repo optional (allow None)
  - Added mcp_auth_mode field (default: "optional")
  - Changed HTTP defaults: 0.0.0.0:8080 (was 127.0.0.1:8000)
  - Removed get_gitea_mcp_env() method (no longer needed)
- Updated all import paths throughout codebase
- Updated filtering/filter.py: Changed ValueError to warning when both
  enabled_tools and disabled_tools are specified
- Updated test files with new import paths
- Updated test_filtering.py to test warning instead of ValueError
- Updated pyproject.toml, pytest.ini, and README.md references

All modules preserved - only import paths and configuration updated.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 17:59:57 -05:00
parent 16436c847a
commit 5075139841
17 changed files with 46 additions and 44 deletions

View File

@@ -143,7 +143,7 @@ cp .env.example .env
nano .env
# Run the server
gitea-http-wrapper
gitea-mcp-remote
```
The server will start on the configured host/port (default: `http://127.0.0.1:8000`).
@@ -237,10 +237,10 @@ pip install -e ".[dev]"
pytest
# Run with coverage
pytest --cov=gitea_http_wrapper
pytest --cov=gitea_mcp_remote
# Run specific test file
pytest src/gitea_http_wrapper/tests/test_config.py
pytest src/gitea_mcp_remote/tests/test_config.py
```
### Project Structure
@@ -248,7 +248,7 @@ pytest src/gitea_http_wrapper/tests/test_config.py
```
gitea-mcp-remote/
├── src/
│ └── gitea_http_wrapper/
│ └── gitea_mcp_remote/
│ ├── __init__.py
│ ├── server.py # Main HTTP server
│ ├── config/