Skip to content
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

GitHub API error: Unprocessable Entity #488

Open
mikhailshilkov opened this issue Jan 6, 2025 · 4 comments
Open

GitHub API error: Unprocessable Entity #488

mikhailshilkov opened this issue Jan 6, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@mikhailshilkov
Copy link

Describe the bug
I'm trying to use the GitHub MCP server to list/search issues. However, it fails with

Error executing code: MCP error -32603: GitHub API error: Unprocessable Entity

To Reproduce
Steps to reproduce the behavior:

  1. Add a GitHub MCP (pointing to its Docker image)
  2. Ask Claude to search for issues in a repo.

Expected behavior
Claude finds issues.

Logs

{"jsonrpc":"2.0","id":4989,"error":{"code":-32603,"message":"GitHub API error: Unprocessable Entity"}}
{"jsonrpc":"2.0","id":5002,"error":{"code":-32603,"message":"Invalid arguments: 2.labels.1.description: Expected string, received null, 3.labels.1.description: Expected string, received null, 5.labels.1.description: Expected string, received null, 6.labels.1.description: Expected string, received null, 7.labels.1.description: Expected string, received null, 8.labels.1.description: Expected string, received null, 9.labels.1.description: Expected string, received null, 10.labels.1.description: Expected string, received null, 12.labels.1.description: Expected string, received null, 16.labels.2.description: Expected string, received null, 17.labels.1.description: Expected string, received null, 23.labels.1.description: Expected string, received null, 28.labels.1.description: Expected string, received null, 29.labels.1.description: Expected string, received null"}}

Additional context
It seems to be complaining about empty label descriptions. I tried adding descriptions to all labels but it didn't immediately solve the problem, got a similar one with a milestone:

{"jsonrpc":"2.0","id":5568,"error":{"code":-32603,"message":"Invalid arguments: 28.milestone.description: Expected string, received null"}}
@mikhailshilkov mikhailshilkov added the bug Something isn't working label Jan 6, 2025
@txbm
Copy link

txbm commented Jan 7, 2025

Can you try it again without Docker on this branch: #434 ? Let me know if it's still happening.

Screenshot 2025-01-07 at 2 59 21 AM

@mikhailshilkov
Copy link
Author

@txbm Yes, it seems to work on your fork!

@txbm
Copy link

txbm commented Jan 7, 2025

Okay that's great news because I think this issue is being reported in several places so now I can be sure my fix works thank you! Hopefully it will get merged soon

@apappascs
Copy link

there is a bug in a few methods of github server for: list_issues, update_issue, add_issue_comment, and get_issue tools where their return schema is not following the specification https://github.com/modelcontextprotocol/specification/blob/main/schema/schema.json#L80
this PR is fixing those issues #396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants