sysadmin
b7e195e426
feat: add MCP server + shared auth module ( #7 , #1 )
...
- New: mcp_server.py — FastMCP stdio server exposing 7 tools:
gitea_create_issue, gitea_create_pr, gitea_close_issue,
gitea_list_issues, gitea_view_issue, gitea_mark_issue,
gitea_mirror_refs
- New: auth.py — shared authentication and API helpers
(get_credentials, get_auth_header, api_request, repo_api_url)
- Refactored: create_pr.py, create_issue.py, manage_labels.py
to use shared auth module (eliminates credential duplication)
- New: tests/test_mcp_server.py — 17 tests for all MCP tools
- Updated: tests/test_credentials.py — now tests auth.py directly
- Updated: tests/test_create_issue.py — adapted for refactored imports
- New: requirements.txt — frozen venv deps (mcp[cli], pytest)
- Updated: README.md — MCP server as primary interface
- Config: added gitea-tools to mcp_config.json
Closes #1 . Resolves #2 , #5 . Relates to #7 .
2026-06-21 20:08:07 -04:00
sysadmin
dd6f1308c1
feat: add mirror_refs.sh for bidirectional ref syncing
...
- mirror_refs.sh: additive branch+tag mirroring between dadeschools (HTTPS)
and prgs (SSH:2222). Dry-run default, --apply to execute, --force for
diverged branches. Uses bare repo cache for isolation.
- test_mirror_refs.py: flag parsing, safety defaults, brace-delimited refspec
validation, and local bare-repo integration tests (FF detection, branch/tag
comparison).
- README.md: document mirror_refs.sh, test suite, and multi-instance auth.
2026-06-21 18:08:53 -04:00
sysadmin
7404f768d3
chore: improve tooling quality and docs
...
- close_issue.sh: add set -euo pipefail, argument validation, confirmation output
- mark_issue.sh: track previously untracked claim/release script
- create_pr.sh: remove hardcoded one-off (use create_pr.py instead)
- README.md: reflect current toolset with usage examples
- .gitignore: ignore venv/ and __pycache__/
2026-06-21 17:11:44 -04:00