I've been banging my head against the wall for a while now so I'm curious if others have figured this out. I assumed this would be straightforward: passing an image uploaded to Claude Desktop to a Node.js-based MCP server running locally.
I've defined my server as requiring a file path to the image. I've tried both server.setRequestHandler and server.tool approaches, like so:
server.tool(
"upload-statement",
"Upload and process an image of a bank statement",
{
imageUrl: z.string().url("Image URL must be a valid URL")
},
async ({ imageUrl }: { imageUrl: string }) => {
// process file
}
I assumed Claude would know how t