You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tool results are always a single text block; no resource or artifact content #57
There is no ImageContent, AudioContent, EmbeddedResource, or resource_link path. A media-producing module can only return a path inside a text block (or a multi-megabyte base64 string), which clients cannot stream or hand off.
Environment
apcore-mcp 0.23.4 (main @ 2887706)
Evidence
src/apcore_mcp/server/router.py:337, 415, 557 — text-only content construction
factory.py:423 — outputSchema advertised only for object schemas
Impact
AI clients receive media as text, not as files, so they cannot preview, save, or pass artifacts to another tool.
Large binary results inflate model context and may be truncated by the client.
Every media pipeline must invent a path convention rather than using the MCP resource mechanism.
Proposed fix
Support an artifact convention: a declared output field (e.g. x-mcp-artifact: true) becomes an MCP resource_link (or EmbeddedResource for small files) instead of being embedded in text.
Keep the text summary separate from the artifact link.
Add a documented cap/threshold for embedding.
Do not require base64 for large files.
Acceptance criteria
A module returning { "summary": "...", "artifact": "/path/final.mp4" } yields a text summary plus a resource link, and no base64 payload.
Tests cover the resource-link path and client compatibility.
Workaround
Return absolute paths and keep artifacts on a shared filesystem; clients read them out of band.
Cross-language follow-up: TypeScript and Rust are also text-only, and the shared SRS FR-EXEC-002 currently requires JSON text. This is a spec-change proposal, filed centrally as #123.
Activity
tercel commentedon Nov 23, 2026
Cross-language follow-up: TypeScript and Rust are also text-only, and the shared SRS FR-EXEC-002 currently requires JSON text. This is a spec-change proposal, filed centrally as #123.
tercel commentedon Nov 29, 2026
Duplicate of #123. The gated resource-link pilot landed in #130.