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 mcp file creation error: Failed to call tool create_or_update_file: Error: MCP error 32604: #428

Open
Mahshadn opened this issue Dec 27, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Mahshadn
Copy link

I get this error when Claude Desktop is trying to create files to my repo. I created this private repo in the same chat earlier.
Claude can access the repo, however, when asking to create files (json, yaml, etc.) it doesn't work and returns below error:

Failed to call tool create_or_update_file: Error: MCP error -32604: Invalid arguments: content.encoding: Required, content.content: Required

@Mahshadn Mahshadn added the bug Something isn't working label Dec 27, 2024
@txbm
Copy link

txbm commented Dec 28, 2024

I get this quite frequently as well. The only thing that works currently is when it uses push_files

@Rehcywgnaf
Copy link

did you try to use create_or_update_file instead of push_files ? maybe a turnaround ?
I get the same 32603 or 32604 error but for now waiting for my claude to comeback

@txbm
Copy link

txbm commented Jan 7, 2025

Oh forgot to update here but I think I fixed this and many other problems w/ Github MCP server in this PR #434

@Rehcywgnaf
Copy link

I get this error :
MCP error -32603: Invalid arguments: content.encoding: Required, content.content: Required
I dont know if this PR can help me, does it ?

@KTreePortfolio
Copy link

I have the same error while I am able to push files. Using windows and Claude Desktop.
I suspect an error in the permissions github side or problems with the new type of token.
I am testing the old one now. With the new type it failed to call create_or_update due to -32603 content.content error

@txbm
Copy link

txbm commented Jan 7, 2025

Yes I am using a classic token. Not sure about the new fine grained ones

@txbm
Copy link

txbm commented Jan 7, 2025

I get this error :

MCP error -32603: Invalid arguments: content.encoding: Required, content.content: Required

I dont know if this PR can help me, does it ?

Try cloning my fork locally and install it into Claude using NPX pointed at the local copy of my fork, it should work but if it doesn't just post the error and I'll fix it!

@staff0rd
Copy link

staff0rd commented Jan 8, 2025

I was also getting this error, can confirm #434 fixes it. Thanks @txbm.

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

5 participants