Skip to content

issue_write tool ignore parameters set to default values (e.g. empty array) #2596

@anna-kogai

Description

@anna-kogai

Describe the bug

When issue_write is called with 'assignees' set to empty array, the tool behaves as if the parameter was not provided at all (ignores it). This results in inability to e.g. unassign an issue from user.

Same issue is observed when trying to set 'labels' to empty array.

Affected version

Latest, connected to remote GitHub MCP server via MCP inspector.

Steps to reproduce the behavior

  1. Create an issue.
  2. Assign issue to user by calling issue_write with 'assignees' parameter set to [ 'anna-kogai' ]
  3. Unassign issue from user by calling issue_write with 'assignees' parameter set to []
  4. Observe tool reporting success

Expected vs actual behavior

Expected behavior: The list of assignees is empty.
Actual behavior: Assignees is still set to [ 'anna-kogai' ]

Logs

Paste any available logs. Redact if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions