Thanks to visit codestin.com
Credit goes to github.com

Skip to content

collapse docs from readme #580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 49 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,18 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description

## Tools

### Users
<details>

<summary>Context</summary>

- **get_me** - Get details of the authenticated user
- No parameters required

### Issues
</details>

<details>

<summary>Issues</summary>

- **get_issue** - Gets the contents of an issue within a repository

Expand Down Expand Up @@ -499,8 +505,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `issueNumber`: Issue number (number, required)
- _Note_: This tool can help with creating a Pull Request with source code changes to resolve the issue. More information can be found at [GitHub Copilot documentation](https://docs.github.com/en/copilot/using-github-copilot/using-copilot-coding-agent-to-work-on-tasks/about-assigning-tasks-to-copilot)

</details>

### Pull Requests
<details>

<summary>Pull Requests</summary>

- **get_pull_request** - Get details of a specific pull request

Expand Down Expand Up @@ -667,7 +676,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `pullNumber`: Pull request number (number, required)
- _Note_: Currently, this tool will only work for github.com

### Repositories
</details>

<details>

<summary>Repositories</summary>

- **create_or_update_file** - Create or update a single file in a repository
- `owner`: Repository owner (string, required)
Expand Down Expand Up @@ -761,7 +774,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `page`: Page number (number, optional)
- `perPage`: Results per page (number, optional)

### Users
</details>

<details>

<summary>Users</summary>
Copy link
Preview

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User tools (get_me and search_users) are split into two separate collapsible sections. Consider merging them into a single Users block to avoid duplication and improve organization.

Copilot uses AI. Check for mistakes.


- **search_users** - Search for GitHub users
- `q`: Search query (string, required)
Expand All @@ -770,7 +787,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `page`: Page number (number, optional)
- `perPage`: Results per page (number, optional)

### Actions
</details>

<details>

<summary>Actions</summary>

- **list_workflows** - List workflows in a repository

Expand Down Expand Up @@ -874,7 +895,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `repo`: Repository name (string, required)
- `run_id`: Workflow run ID (number, required)

### Code Scanning
</details>

<details>

<summary>Code Scanning</summary>

- **get_code_scanning_alert** - Get a code scanning alert

Expand All @@ -890,7 +915,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `severity`: Alert severity (string, optional)
- `tool_name`: The name of the tool used for code scanning (string, optional)

### Secret Scanning
</details>

<details>

<summary>Secret Scanning</summary>

- **get_secret_scanning_alert** - Get a secret scanning alert

Expand All @@ -905,7 +934,11 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `secret_type`: The secret types to be filtered for in a comma-separated list (string, optional)
- `resolution`: The resolution status (string, optional)

### Notifications
</details>

<details>

<summary>Notifications</summary>

- **list_notifications** – List notifications for a GitHub user
- `filter`: Filter to apply to the response (`default`, `include_read_notifications`, `only_participating`)
Expand Down Expand Up @@ -937,9 +970,13 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `repo`: The name of the repository (string, required)
- `action`: Action to perform: `ignore`, `watch`, or `delete` (string, required)

</details>

## Resources

### Repository Content
<details>

<summary>Repository Content</summary>

- **Get Repository Content**
Retrieves the content of a repository at a specific path.
Expand Down Expand Up @@ -990,6 +1027,8 @@ export GITHUB_MCP_TOOL_ADD_ISSUE_COMMENT_DESCRIPTION="an alternative description
- `prNumber`: Pull request number (string, required)
- `path`: File or directory path (string, optional)

</details>

## Library Usage

The exported Go API of this module should currently be considered unstable, and subject to breaking changes. In the future, we may offer stability; please file an issue if there is a use case where this would be valuable.
Expand Down