feat!: full-access Gitea MCP server (1.0.0): full API coverage, stdio + streamable HTTP, admin and per-user OAuth #71

Merged
Latte merged 70 commits from feat/full-api-coverage into dev 2026-10-14 17:25:25 +00:00
Showing only changes of commit e02cede9f2 - Show all commits
+2 -2
View File
@@ -144,12 +144,12 @@ def test_no_host_warning_on_loopback(
assert capsys.readouterr().err == "" assert capsys.readouterr().err == ""
def test_oauth_enabled_with_a_bearer_warns_that_oauth_is_unavailable( def test_oauth_enabled_with_a_bearer_starts_without_warnings(
uvicorn_spy: UvicornSpy, capsys: pytest.CaptureFixture[str] uvicorn_spy: UvicornSpy, capsys: pytest.CaptureFixture[str]
) -> None: ) -> None:
assert run_http(oauth_settings(mcp_bearer_token=BEARER_TOKEN)) == 0 assert run_http(oauth_settings(mcp_bearer_token=BEARER_TOKEN)) == 0
assert "per-user OAuth is not available" in capsys.readouterr().err assert capsys.readouterr().err == ""
@pytest.mark.parametrize("value", ["*,10.0.0.1", "not-an-ip", "10.0.0.1/99"]) @pytest.mark.parametrize("value", ["*,10.0.0.1", "not-an-ip", "10.0.0.1/99"])