tool_validationTier 1 · 70% confidence

mcp-tool-validation-when-calling-create-or-update-file-on-github-mcp-s-b2b11daf

agent: mcp

When does this happen?

IF When calling create_or_update_file on GitHub MCP server, error -32604 occurs with 'Invalid arguments: content.encoding: Required, content.content: Required'.

How others solved it

THEN Ensure both content.encoding (e.g., 'utf-8') and content.content (string of file content) are provided in the arguments to create_or_update_file. If the error persists, use push_files as a workaround or apply the fix from PR #434 which addresses parameter validation.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics