"Embedded Resource Handling Causes Claude MCP Prompt Execution Crash"
Status Fixed / completed
Maintainer reply None cached
Activity 3 comments · opened Mar 29, 2025 · closed Apr 2, 2025
Bug Description
When using embedded resources in an MCP prompt, claude permenantly crashes. Here is the MCP server code to test https://gist.github.com/whynotavailable/dcb8580dc5381c7c5946b5f9c5450e1b , I confirmed with claude desktop that the correct response happens, but when trying to execute the prompt in claude code is fails, and all future prompts fail.
Environment Info
- Platform: macos
- Terminal: ghostty
- Version: 0.2.56
- Feedback ID: c3951fdf-7d66-4b51-9406-43762938652f
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0.content.0.image.source.base64.media_type: Field required\"}}\n at H6.generate (file:///Users/josephdotson/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1054:10176)\n at $6.makeStatusError (file:///Users/josephdotson/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1058:7207)\n at $6.makeRequest (file:///Users/josephdotson/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1058:8149)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-03-29T18:19:33.666Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗