mcp_server
Class info¶
🛈 DocStrings¶
GitHarbor MCP Server - Expose GitHarbor functionality through MCP.
get_commit_history
async
¶
Get the commit history for a repository.
Source code in src/githarbor/mcp_server.py
get_file_content
async
¶
Get the content of a file from a repository.
Source code in src/githarbor/mcp_server.py
get_issues_list
async
¶
Get a list of issues for a repository filtered by state.
State can be one of "open", "closed", or "all".
Source code in src/githarbor/mcp_server.py
get_pull_requests_list
async
¶
Get a list of pull requests for a repository filtered by state.
Source code in src/githarbor/mcp_server.py
gh_add_pull_request_comment
async
¶
Add a comment to a pull request.
Source code in src/githarbor/mcp_server.py
gh_create_branch
async
¶
Create a new branch in a repository.
gh_create_issue
async
¶
gh_create_issue(
repo_url: str,
title: str,
body: str,
labels: list[str] | None = None,
assignees: list[str] | None = None,
) -> dict
Create a new issue in a repository.
Source code in src/githarbor/mcp_server.py
gh_create_pull_request
async
¶
gh_create_pull_request(
repo_url: str, title: str, body: str, head_branch: str, base_branch: str, draft: bool = False
) -> dict
Create a new pull request in a repository.
Source code in src/githarbor/mcp_server.py
gh_get_branch
async
¶
Get information about a specific branch in a repository.
gh_get_commit
async
¶
gh_get_contributors
async
¶
gh_get_contributors(
repo_url: str, sort_by: Literal["commits", "name", "date"] = "commits", limit: int | None = None
) -> list[dict]
Get contributors to a repository.
Source code in src/githarbor/mcp_server.py
gh_get_issue
async
¶
gh_get_languages
async
¶
gh_get_latest_release
async
¶
gh_get_latest_release(
repo_url: str, include_drafts: bool = False, include_prereleases: bool = False
) -> dict
Get the latest release from a repository.
Source code in src/githarbor/mcp_server.py
gh_get_pull_request
async
¶
Get details about a specific pull request.
gh_get_release
async
¶
gh_get_repo_user
async
¶
gh_get_tag
async
¶
gh_list_branches
async
¶
List all branches in a repository.
gh_list_commits
async
¶
gh_list_commits(
repo_url: str, branch: str | None = None, max_results: int | None = None
) -> list[dict]
List commits in a repository with optional branch and limit.
Source code in src/githarbor/mcp_server.py
gh_list_issues
async
¶
List issues in a repository with optional state filter.
Source code in src/githarbor/mcp_server.py
gh_list_pull_requests
async
¶
gh_list_pull_requests(
repo_url: str, state: Literal["open", "closed", "all"] = "open"
) -> list[dict]
List pull requests in a repository with optional state filter.
Source code in src/githarbor/mcp_server.py
gh_list_releases
async
¶
gh_list_releases(
repo_url: str,
include_drafts: bool = False,
include_prereleases: bool = False,
limit: int | None = None,
) -> list[dict]
List releases from a repository.