MCP design question: should a render tool return a link or the file bytes?
Mkhere · reddit · 2026-12-04
Docspout's author (a PDF-generation API with a hosted MCP server) solicits opinions on two design decisions before wider adoption:
- renderpdf returns a link plus page count, not file bytes: most clients can't do much with binary PDFs in context, and links pass easily to email/Drive — but some clients now support embedded resources.
- Validation errors as isError naming the field path (e.g. customer.email), so the model asks the user instead of inventing data; the community seems split between tool errors and normal results with a message.
Also asks about auth conventions: bearer key in header works directly in Cursor and Claude Code, but Claude Desktop needs the mcp-remote bridge — is OAuth the expected standard now? The server exposes four tools with template-owned layouts for consistent output; free test keys stamp TEST on PDFs.
More from coding & agent
- Building a read-only post-deploy MCP server: untrusted content fencing and OAuth 2.1 lessons — CorchesRares2804 · 2026-12-04
- Multi-Agent Swarms Match But Don't Beat Single Agents, New Replication Finds — rosstaylor90 · 2026-12-04
- First-time animator uses Opus 5.5 and Blender to make 3-minute Kyoto/Tokyo short film — Pleasant-Internal168 · 2026-12-04
- Reliable Message Delivery: Offline Storage and the Sent→Read State Machine — goyalshaliniuk · 2026-12-04
- How to Design WhatsApp at Scale: Core Architecture Explained — goyalshaliniuk · 2026-12-04
- Agent Evals 101: a 7-step playbook for testing AI agents before production — Solid-Target-530 · 2026-12-04