Files
github--github-mcp-server/pkg/github/__toolsnaps__/issue_read.snap
Sam Morrow af42b98a71
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
Build and Test Go Project / build (windows-latest) (push) Has been cancelled
License Check / license-check (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
feat(issue_graph): Add issue_graph tool for visualizing issue/PR relationships
Adds the issue_graph tool that provides a comprehensive view of issue and PR
relationships in a GitHub repository. This is designed to be the primary tool
for understanding project status, work hierarchy, and issue dependencies.

Key features:
- Focus parameter: Auto-shift focus to epic/batch parent issues
- Cross-repo support: Discover parent issues via GraphQL and sub-issues via REST
- Status extraction: Parse milestone due dates and status keywords from body/comments
- State reason: Show why issues/PRs are in their current state (completed, merged, etc.)
- Project info: Fetch project name and status for the focus node
- Issue Types: Detect GitHub's native Epic issue type for classification
- Tasklist items: Extract legacy markdown checkbox items from issue body

The tool returns a text-formatted graph showing:
- Node types: epic, batch, task, pr
- Full hierarchy across repositories
- Sub-issues and closes/fixes references
- Cross-references and related work
- Open/closed/merged state of all related items

Closes: #1510
2025-12-07 01:34:18 +01:00

52 lines
1.4 KiB
Plaintext

{
"annotations": {
"readOnlyHint": true,
"title": "Get issue details"
},
"description": "Get detailed information about a single issue in a GitHub repository, including body, comments, sub-issues, or labels.",
"inputSchema": {
"type": "object",
"required": [
"method",
"owner",
"repo",
"issue_number"
],
"properties": {
"issue_number": {
"type": "number",
"description": "The number of the issue"
},
"method": {
"type": "string",
"description": "The read operation to perform on a single issue.\nOptions are:\n1. get - Get details of a specific issue.\n2. get_comments - Get issue comments.\n3. get_sub_issues - Get sub-issues of the issue.\n4. get_labels - Get labels assigned to the issue.\n",
"enum": [
"get",
"get_comments",
"get_sub_issues",
"get_labels"
]
},
"owner": {
"type": "string",
"description": "The owner of the repository"
},
"page": {
"type": "number",
"description": "Page number for pagination (min 1)",
"minimum": 1
},
"perPage": {
"type": "number",
"description": "Results per page for pagination (min 1, max 100)",
"minimum": 1,
"maximum": 100
},
"repo": {
"type": "string",
"description": "The name of the repository"
}
}
},
"name": "issue_read"
}