diff --git a/README.md b/README.md index dff62321b8..84f3d3db0e 100644 --- a/README.md +++ b/README.md @@ -826,7 +826,7 @@ The following sets of tools are available: issue-opened Issues -- **add_issue_comment** - Add comment to issue +- **add_issue_comment** - Add comment to issue or pull request - **Required OAuth Scopes**: `repo` - `body`: Comment content (string, required) - `issue_number`: Issue number to comment on (number, required) @@ -854,7 +854,7 @@ The following sets of tools are available: - `perPage`: Results per page for pagination (min 1, max 100) (number, optional) - `repo`: The name of the repository (string, required) -- **issue_write** - Create or update issue +- **issue_write** - Create or update issue/pull request - **Required OAuth Scopes**: `repo` - `assignees`: Usernames to assign to this issue (string[], optional) - `body`: Issue body content (string, optional) diff --git a/docs/feature-flags.md b/docs/feature-flags.md index 63fb28dc44..4f98b934ba 100644 --- a/docs/feature-flags.md +++ b/docs/feature-flags.md @@ -50,7 +50,7 @@ runtime behavior (such as output formatting) won't appear here. - **MCP App UI**: `ui://github-mcp-server/get-me` - No parameters required -- **issue_write** - Create or update issue +- **issue_write** - Create or update issue/pull request - **Required OAuth Scopes**: `repo` - **MCP App UI**: `ui://github-mcp-server/issue-write` - `assignees`: Usernames to assign to this issue (string[], optional) @@ -73,7 +73,7 @@ runtime behavior (such as output formatting) won't appear here. ### `remote_mcp_issue_fields` -- **issue_write** - Create or update issue +- **issue_write** - Create or update issue/pull request - **Required OAuth Scopes**: `repo` - `assignees`: Usernames to assign to this issue (string[], optional) - `body`: Issue body content (string, optional) diff --git a/docs/insiders-features.md b/docs/insiders-features.md index 881030f020..d5013a6dc2 100644 --- a/docs/insiders-features.md +++ b/docs/insiders-features.md @@ -44,7 +44,7 @@ The list below is generated from the Go source. It covers tool **inventory and s - **MCP App UI**: `ui://github-mcp-server/get-me` - No parameters required -- **issue_write** - Create or update issue +- **issue_write** - Create or update issue/pull request - **Required OAuth Scopes**: `repo` - **MCP App UI**: `ui://github-mcp-server/issue-write` - `assignees`: Usernames to assign to this issue (string[], optional) @@ -67,7 +67,7 @@ The list below is generated from the Go source. It covers tool **inventory and s ### `remote_mcp_issue_fields` -- **issue_write** - Create or update issue +- **issue_write** - Create or update issue/pull request - **Required OAuth Scopes**: `repo` - `assignees`: Usernames to assign to this issue (string[], optional) - `body`: Issue body content (string, optional) diff --git a/pkg/github/__toolsnaps__/add_issue_comment.snap b/pkg/github/__toolsnaps__/add_issue_comment.snap index d273a582d6..5479a16a60 100644 --- a/pkg/github/__toolsnaps__/add_issue_comment.snap +++ b/pkg/github/__toolsnaps__/add_issue_comment.snap @@ -1,6 +1,6 @@ { "annotations": { - "title": "Add comment to issue" + "title": "Add comment to issue or pull request" }, "description": "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments.", "inputSchema": { diff --git a/pkg/github/__toolsnaps__/issue_write.snap b/pkg/github/__toolsnaps__/issue_write.snap index a125864f04..88b01f08f1 100644 --- a/pkg/github/__toolsnaps__/issue_write.snap +++ b/pkg/github/__toolsnaps__/issue_write.snap @@ -9,7 +9,7 @@ } }, "annotations": { - "title": "Create or update issue" + "title": "Create or update issue/pull request" }, "description": "Create a new or update an existing issue in a GitHub repository.", "inputSchema": { diff --git a/pkg/github/__toolsnaps__/issue_write_ff_remote_mcp_issue_fields.snap b/pkg/github/__toolsnaps__/issue_write_ff_remote_mcp_issue_fields.snap index 6fb00d2490..332a4de3e1 100644 --- a/pkg/github/__toolsnaps__/issue_write_ff_remote_mcp_issue_fields.snap +++ b/pkg/github/__toolsnaps__/issue_write_ff_remote_mcp_issue_fields.snap @@ -9,7 +9,7 @@ } }, "annotations": { - "title": "Create or update issue" + "title": "Create or update issue/pull request" }, "description": "Create a new or update an existing issue in a GitHub repository.", "inputSchema": { diff --git a/pkg/github/issues.go b/pkg/github/issues.go index ef9bbc4305..69b66393aa 100644 --- a/pkg/github/issues.go +++ b/pkg/github/issues.go @@ -1144,7 +1144,7 @@ func AddIssueComment(t translations.TranslationHelperFunc) inventory.ServerTool Name: "add_issue_comment", Description: t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment to a specific issue in a GitHub repository. Use this tool to add comments to pull requests as well (in this case pass pull request number as issue_number), but only if user is not asking specifically to add review comments."), Annotations: &mcp.ToolAnnotations{ - Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue"), + Title: t("TOOL_ADD_ISSUE_COMMENT_USER_TITLE", "Add comment to issue or pull request"), ReadOnlyHint: false, }, InputSchema: &jsonschema.Schema{ @@ -1806,7 +1806,7 @@ func IssueWrite(t translations.TranslationHelperFunc) inventory.ServerTool { Name: "issue_write", Description: t("TOOL_ISSUE_WRITE_DESCRIPTION", "Create a new or update an existing issue in a GitHub repository."), Annotations: &mcp.ToolAnnotations{ - Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue"), + Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue/pull request"), ReadOnlyHint: false, }, Meta: mcp.Meta{ @@ -2080,7 +2080,7 @@ func LegacyIssueWrite(t translations.TranslationHelperFunc) inventory.ServerTool Name: "issue_write", Description: t("TOOL_ISSUE_WRITE_DESCRIPTION", "Create a new or update an existing issue in a GitHub repository."), Annotations: &mcp.ToolAnnotations{ - Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue"), + Title: t("TOOL_ISSUE_WRITE_USER_TITLE", "Create or update issue/pull request"), ReadOnlyHint: false, }, Meta: mcp.Meta{