feat: add aliases for gitea_whoami identity lookup (fixes #9)

Issue #9 requested getAuthenticatedUser and getCurrentUser in addition to whoami.
This adds the two aliased MCP tools and their corresponding unit tests.
This commit is contained in:
2026-07-02 06:15:36 -04:00
parent 3a246ab553
commit 642adf4705
2 changed files with 46 additions and 0 deletions
+18
View File
@@ -1384,6 +1384,24 @@ def gitea_whoami(
}
@mcp.tool()
def gitea_get_authenticated_user(
remote: str = "dadeschools",
host: str | None = None,
) -> dict:
"""Alias for gitea_whoami. Look up the authenticated Gitea account."""
return gitea_whoami(remote=remote, host=host)
@mcp.tool()
def gitea_get_current_user(
remote: str = "dadeschools",
host: str | None = None,
) -> dict:
"""Alias for gitea_whoami. Look up the authenticated Gitea account."""
return gitea_whoami(remote=remote, host=host)
@mcp.tool()
def gitea_get_profile(
remote: str = "dadeschools",