Skip to content

create_branch branch tool fails with generic message when rule is violated oppose to the Github UI #3080

Description

@emilk-port

Describe the bug

create_branch branch tool fails with generic message when rule is violated oppose to the Github UI

Affected version

github-mcp-server/remote-639e169e86264c0ee9704f141ec6bc5615266486

Steps to reproduce the behavior

  1. set rule for branch naming
  2. try to create an invalid branch name from the UI -> see detailed error about the rules violation
Image
  1. try to create the same branch name from mcp -> see generic 422 error
Image

Expected vs actual behavior

expecting to see the same errors like we see in the website, and in general more descriptive errors
detailed errors helps the LLM to recover from failed tool calls

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions