Repository navigation
Description
The problem
When an MCP tool returns content richer than plain text — most concretely when the github MCP's get_file (or get_file_contents) returns a resource — mecatl has no way to fetch, download, or even surface that resource. The model sees a bare placeholder and the user sees nothing. This is the symptom the operator hit, and digging in revealed a broader gap: mecatl collapses every MCP CallToolResult to a single string, discarding most of the typed content the MCP spec defines.
What gets thrown away today
The choke point is flattenContent (internal/adapter/mcp/tool.go:167-186):
case *mcpsdk.TextContent: b.WriteString(c.Text)
case *mcpsdk.ImageContent: fmt.Fprintf(&b, "[image content: %s]", c.MIMEType)
case *mcpsdk.AudioContent: fmt.Fprintf(&b, "[audio content: %s]", c.MIMEType)
case *mcpsdk.ResourceLink: fmt.Fprintf(&b, "[resource link: %s]", c.URI)
case *mcpsdk.EmbeddedResource: b.WriteString("[embedded resource]")Discarded:
ResourceLink(resource_link): keeps only the URI as[resource link: <uri>]. LosesName,Title,Description,MIMEType,Size,Icons, and theAnnotationsblock (incl.audience). The model gets a useless bare URI it often cannot fetch; the client never learns a resource was intended for it.EmbeddedResource(resource): collapses to the literal string[embedded resource]— the entire inlineResourceContentsbody (text or blob) the server deliberately shipped is dropped.ImageContent/AudioContent: rawDatabytes discarded; only the MIME type survives as a bracket note.res.StructuredContent: completely ignored (tool.go:143-147reads onlyres.Content). The spec's structured-output channel never reaches the model or any client.outputSchema: never read from the remote*mcpsdk.Tool(tool.go:39-63captures onlyName/Description/InputSchema). mecatl can't advertise an output schema to the model and can't validate structured results.
The ironic evidence: our own server proves the pattern, our client breaks it
mecatl's own MCP server (internal/adapter/mcpperf) deliberately emits user-audience ResourceLink content (mcpperf/tools.go:218,367,400) so a human-facing client can render a downloadable link while the model-facing text omits the raw path. ADR 0018 (docs/adr/0018-perf-observability.md:127,337) and the perf-mcp-interpretation skill document this as the intended pattern. The mcpperf tests (mcpperf_test.go:491-520, 610-632) assert the ResourceLink with Annotations.Audience=["user"] is on the wire.
When mecatl-the-client consumes that same server, flattenContent flattens it to [resource link: perf://pprof/heap] — stripping the audience annotation and giving the model a bare URI it cannot resolve (perf:// is not a scheme the harness fetches). The round-trip is broken: our server emits the spec-correct pattern, our client discards it.
The architectural root cause
session.ToolResult (engine/session/toolcall.go:71-79) is a single Content string + IsError bool. There is no structured-content field and no content-block-level metadata channel in the domain. The gRPC ToolResult proto (contracts/proto/mecatl/v1/mecatl.proto:964-971) mirrors this — call_id, content (string), is_error. By the time a tool result reaches the loop, the relay, or any client, everything has been flattened to a string. The TUI's MCP tool card (cmd/mecatui/ui/mcp.go, goldens tool_mcp_card_*) renders that flattened string.
This was a defensible simplification when MCP tool results were "text in, text out." With the 2025-06-18 spec revision, tool results are a typed, audience-aware content array plus an optional structured payload — and mecatl's model loses both axes.
How other harnesses handle this (the gap is industry-wide; mecatl is on the wrong side)
| Client | resource_link |
EmbeddedResource |
structuredContent |
audience split |
outputSchema |
|---|---|---|---|---|---|
| Spec | render/fetch | surface as artifact | validate + expose | user vs assistant | validate |
| Claude Code | URI only, metadata dropped | dropped | ignored | not processed | ignored |
| Claude Desktop | partial | dropped to LLM context, no UI | ignored | partial | ignored |
| Codex | dropped when structured present | dropped when structured present | kept (bug: drops blocks) | not processed | partial |
| ChatGPT Desktop | ignores | base64-as-text | partial | ignored (leaks image to model) | ignored |
| mecatl | URI only, all metadata + audience dropped | [embedded resource] placeholder |
ignored | not processed | ignored |
Evidence:
- anthropics/claude-ai-mcp#287: Claude Desktop/Code "does not process the separate
Annotationsschema that applies to Resources, Resource Templates, and Content blocks"; embedded resources are "silently consumed into the LLM context — no clickable artifact, no downloadable file." - openai/codex#10334: Codex drops
content[]blocks whenstructuredContentis present (mirror-image bug of mecatl's). - patent.dev "MCP Has an Image Problem": ChatGPT Desktop ignores
audience:["user"], leaking image base64 into model context; "a specification only matters when implementations follow it."
What the spec says (2025-06-18, authoritative)
CallToolResult carries content[] (heterogeneous typed blocks: text, image, audio, resource/embedded, resource_link), structuredContent (optional JSON object, returned alongside content; a tool SHOULD also mirror it into a TextContent block for backward compat), isError, and the Tool definition may carry outputSchema (servers MUST conform, clients SHOULD validate). Every content block supports optional Annotations — distinct from ToolAnnotations — with audience (["user"]/["assistant"]/both), priority (0.0–1.0), lastModified (ISO 8601). resource_link is a reference (URI+metadata) the client may fetch/render; resource (EmbeddedResource) is inline content. https:// URIs are client-fetched; file:// and custom schemes are server-readonly. Resources also support subscribe + notifications/resources/updated and resource templates (URI templates).
Panel review (pre-implementation design review)
A panel of specialist reviewers (software-architect, secure-code-reviewer, devops-expert, library-reuse-reviewer, devex-reviewer, plus Spec-axis and Standards-axis passes) reviewed the proposed direction before implementation. Findings below shape the design. Full transcripts available on request.
Design correction (see comment): the panel's original decisions #1 (keep
session.ToolResultstring-only) and #8 (relay-owned sidecar) were an over-rotation and are withdrawn. The domain gets typed content of its own provider-neutral type (not MCP types) directly onsession.ToolResult; it ridesEvToolResultandFoldreconstructs it — no sidecar. The corrected decisions are below; the anti-corruption-layer rule (nomcpsdk.*inengine/) still holds.
Converged design decisions (corrected)
-
Add typed content blocks to
session.ToolResultof the DOMAIN'S OWN neutral type — NOT MCP types, NOT a relay sidecar.session.Content(engine/session/content.go:51) already exists as a provider-neutral content model carried onMessage.Parts(conversation.go:61) for user messages, validated viaNewContent/ValidateMediaParts. Generalize it (or add a sibling) to cover tool-result blocks: text, image, audio, resource-link (a reference: URI + name/description/MIME, not a fetch), embedded-resource (inline text or summarized blob). The MCP adapter mapsmcpsdk.Content→session.Content(neutral) — the same posture the ACP adapter already uses (internal/adapter/acp/agent.go:815-857). Nomcpsdk.*type crosses intoengine/(the anti-corruption-layer rule; theSkillSource/AgentDefSourceprecedent). The field is additive with a zero value (legacy string-only).NewToolMessage(conversation.go:94) already builds the tool-roleMessagecarrying*ToolResult; tool-role messages gainPartsparity with user-role messages. -
Typed content rides the domain event —
Fold/rehydration reconstructs it, NO sidecar.EvToolResult.ToolResult(event.go:860) already carries*ToolResult; the typed blocks ride it for free.engine/adapter/eventsource.Fold(ADR 0038) reconstructs them naturally because it already readsEvToolResult— no second store, no relay join. The loop stays storage-agnostic (it only emitssession.Event; persistence is stillService.appendEventat the relay). Backward-compat: old persisted sessions Load/Fold with zero-valuedParts= string-only; no migration shim, just aTestLoadLegacySessionWithFlatToolResultround-trip assertion. -
Audience-splitting and capability-gating live in COMPOSITION, not the MCP adapter. (software-architect HIGH; standards ACP: replay prior events on session/load #4).
flattenContentcannot know the provider's modalities — that's the SINGLE composition-computed intersection (internal/app/capability.gomodelCapabilityoverService.ProviderCapabilities()). The MCP adapter produces a neutral structured payload + a default model-facing string; composition decides per-result whether to upgrade to typedsession.Contentparts for the request. Mirrors the ACP gate (internal/adapter/acp/agent.go:486) — same seam, opposite verdict (ACP rejects resource_link in prompts because inbound is untrusted; tool results from operator-wired MCP servers are trusted provenance — preserve and route). -
audienceis an untrusted-server self-attestation — NEVER a security control. (secure-code-reviewer HIGH, CWE-345/OWASP LLM01; Spec-axis W1). The server is the threat actor. Trustingaudience:["user"]to suppress model-facing content inverts the trust model (a server hides an injection payload, or routes a secret into model context). Decision: treataudienceas advisory display routing only — a["user"]block may render an additional human-facing copy but must NEVER delete the model copy. Default every block to model-visible (TextContent parity). Still run untrusted-fencing/redaction regardless of audience. -
Do NOT dereference server-returned
resource_linkURIs automatically. (secure-code-reviewer HIGH, CWE-918/OWASP A10+API7; Spec-axis W2).ValidateClientURLis scheme/host-shape only and applies to client-PROVIDED URLs, not server-returned URIs. A server pointing athttp://169.254.169.254/...is SSRF;headerRoundTripperscopes MCP creds to the configured server origin, not a resource URI. Decision: v1 surfaces the URI as a string reference (URI + name + description + MIME) for the model/user to act on; onlyhttps://may ever be client-fetched, and even then throughValidateMediaURL-grade SSRF IP-deny + redirect re-validation + no cross-origin credential attachment. Non-httpsschemes stay server-readonly. -
Land the size bound FIRST (issue MCP tool results are not truncated to MaxOutputBytes (unlike every built-in tool) #178), then extend it to the new fields. (devops-expert H1; standards ACP: accept image/audio prompt content blocks #5). Built-in tools cap at
MaxOutputBytes(25KiB); MCP results don't (open issue MCP tool results are not truncated to MaxOutputBytes (unlike every built-in tool) #178). Widening to carry typed blocks + StructuredContent + EmbeddedResource bodies before fixing MCP tool results are not truncated to MaxOutputBytes (unlike every built-in tool) #178 punches a hole in the log's implicit size ceiling —.events.jsonl/ Redis EventLog bloat + memory DoS across replicas. Decision: per-block byte cap + total-bytes cap mirroringMaxOutputBytes, with the truncation marker preserved, applied to the structured-content/blob fields too. Verification:TestMCPTypedResultTruncatedToCap+ a jsonlstore append-size assertion. -
Do NOT validate
StructuredContentwithsession.ValidateJSON. (library-reuse HIGH).ValidateJSONis a deliberate fail-open subset validator for model-authored structured output (SubagentSubmitResult). MCPoutputSchemais arbitrary server-provided full JSON Schema;ValidateJSONsilently under-enforces and creates a second, weaker path. The SDK's client-sideCallTooldoes NOT validate (validation lives server-side,server.go:380). If defense-in-depth client validation is wanted, use the SDK's transitive depgithub.com/google/jsonschema-go(already ingo.sum, MIT, Google-backed, full validator) — don't hand-roll a third. -
Reuse
session.NewContent+ValidateMediaPartsfor media — no second validation path. (library-reuse MEDIUM; standards ACP: replay prior events on session/load #4; ADR 0001). The ACP adapter already maps content blocks →session.Contentparts through the validating constructors (internal/adapter/acp/agent.go:815-857). AGENTS.md: "Reuses session.NewContent/ValidateMediaParts (no second validation path)." The MCP adapter routes image/audio/resource blocks through those same constructors; the per-type switch necessarily differs but the per-part validation is shared. (This is decision ACP: accept client-provided streaming-HTTP MCP servers #7 renamed for clarity — it now composes with decision mecatui: subagent / Task visibility (agent hierarchy dashboard) #1: the neutral content type ISsession.Content.) -
Constructor ergonomics: keep
NewToolResult/NewToolError2-arg (additive only), add a builder for the new path. (devex HIGH). ~200 call sites acrossengine/agent,engine/adapter/*,internal/adapter/*+ external consumers depend on the 2-arg constructors. Widening them = breaking (Changed). Decision: additive fields only (Added/minor); new path via a builder/options constructor; document theContent-vs-blocks precedence rule on the struct; proto documents the "both may be present; prefer blocks when non-empty" contract. -
This is a new ADR, never edited in place. (standards ACP: accept client-provided streaming-HTTP MCP servers #7; ADR lifecycle). A substantive tool-result contract decision. New ADR (e.g. 0058), superseding nothing. 0056/0057/0001 untouched. Triggers
task api:update(the additivesession.ToolResultfield + generalizedsession.Content) +task generate(proto) +task docs(llms.txt) + a CLOUD-NATIVE.md List 1/List 2 re-audit (expected: no new outlives-a-call resource — it's a value-object widening, no new goroutine/LRU/map).
Spec-axis gaps to explicitly address or defer
subscribe/notifications/resources/updated(M1): ADR 0057 deferredResourceUpdatedHandler. The proposal treats captured content as point-in-time. State subscription as out-of-scope explicitly.- Resource templates (M2): defer; state it.
- Backward-compat TextContent mirror for
structuredContent(M3): the design MUST emit a parallel TextContent block (spec SHOULD). Explicit. outputSchemaclient SHOULD-validate (M4): only the SHOULD-validate half is mecatl's; confirm, don't assume conformance.priority/lastModified(M5): drop explicitly if unused; don't silently strip.audienceon the wire to clients (S1): mecatl-specific extension beyond spec; flag as such.
Proposed scope (full spec implementation, productionized, cloud-native)
Phase 0 — land the size bound (issue #178 first)
- Apply
toolkit.Truncate/MaxOutputBytesto MCP tool results inflattenContent/remoteTool.Executewith the truncation marker. - Tests verify the cap; docs note MCP output cap matches built-in tools.
- This unblocks Phase 1's richer payloads without a log-bloat/DoS hole.
Phase 1 — typed-block preservation on the domain ToolResult (adapter + composition + relay)
- Domain: generalize
session.Content(or sibling) to cover tool-result blocks (text/image/audio/resource-link/embedded-resource); add additiveParts []Content(orBlocks) tosession.ToolResult; extendNewContent/ValidateMediaParts; keepNewToolResult/NewToolError2-arg, add a builder for the blocks path. - MCP adapter: replace
flattenContentwith a path that mapsmcpsdk.Content→session.Content(neutral) and produces (a) the typed blocks and (b) a default model-facing string. Preserve EmbeddedResource bodies (text verbatim, binary summarized), ResourceLink references (URI+name+desc+MIME, audience advisory-only, no URI dereference), Image/Audio (capability-gated via composition over the singlemodelCapabilityintersection, reusingsession.NewContent/ValidateMediaParts). - Capture
outputSchemafrom the remote tool spec; validateStructuredContentagainst it (viajsonschema-goif defense-in-depth wanted) — NOTsession.ValidateJSON. - Emit the backward-compat TextContent mirror for
structuredContent. - Composition: per-result audience/capability routing decision (the model copy is NEVER suppressed by
audience; a["user"]block may add a human-facing copy). - Relay: typed blocks ride
EvToolResult.ToolResult(already-redacted at the existing chokepoint — no second redaction path);Foldreconstructs. No sidecar. - gRPC/HTTP proto: additive
ToolResultfields (blocks + structured); document the dual-form contract ("both may be present; prefer blocks when non-empty"). - TUI: surface typed blocks in the tool card — user-audience artifacts (downloadable links, image previews) distinct from model-facing text.
- Backward-compat: legacy persisted sessions Load/Fold into string-only shape (zero-valued Parts);
TestLoadLegacySessionWithFlatToolResult.
Phase 2 — resource fetching (the operator's concrete ask)
- A model-facing affordance to fetch a
resource_linkthe model received: route onlyhttps://throughValidateMediaURL-grade SSRF IP-deny + redirect re-validation + no cross-origin creds; non-httpsstays server-readonly (read viaReadMcpResourceagainst the owning server, which the adapter already supports). - Decide whether this is a new tool (
FetchMcpResource) or an extension ofReadMcpResourceto resolve a server-returned URI against the owning server.
Phase 3 — resource subscriptions (optional, deferred from ADR 0057)
- Advertise
subscribe; wireResourceUpdatedHandlerto invalidate a cached resource read. Low priority; file if/when operator demand.
Phase 4 — polish
- Resource templates (URI templates) handling — defer unless needed.
-
priority/lastModifiedannotations — drop explicitly if unused. - mecatui resource-link rendering (clickable download, image preview).
Acceptance criteria
- An MCP tool returning a
resource_link(e.g. github MCPget_file) produces a model-facing reference the model can act on (URI + name + description + MIME) and a client-facing artifact; the model is NOT handed a useless bare placeholder. The operator's concrete scenario is resolved. - An MCP tool returning an
EmbeddedResourcesurfaces the inline content (text verbatim; binary summarized with size), not[embedded resource]. structuredContentreaches the model/relay;outputSchemais captured and (optionally) validated viajsonschema-go, neversession.ValidateJSON.audienceis advisory display routing only; never suppresses model-facing content; untrusted-fencing/redaction runs regardless.- Server-returned URIs are NEVER auto-dereferenced; only
https://may be client-fetched, through SSRF IP-deny. session.ToolResultgains an additiveParts/Blocksfield of the domain's own neutral content type (nomcpsdk.*); it ridesEvToolResultandFoldreconstructs it; legacy sessions round-trip with zero-valued Parts. No relay sidecar.- MCP results are truncated to
MaxOutputBytes(issue MCP tool results are not truncated to MaxOutputBytes (unlike every built-in tool) #178 closed) including the new structured fields. - New ADR (e.g. 0058);
task api:update+task generate+task docsclean; CLOUD-NATIVE.md re-audit (no new List 1/List 2 row). task lint && task testgreen;go run ./cmd/mecademostill prints a full offline session; the 10 gauntlet tests stay green.- A round-trip test: mecatl's own
mcpperfserver (emits user-audienceresource_link) consumed by mecatl's client renders the link correctly — the broken round-trip fixed.
Out of scope (v1)
- Resource
subscribe/notifications/resources/updated(Phase 3, deferred from ADR 0057). - Resource templates (Phase 4).
priority/lastModifiedannotation handling beyond not-silently-stripping.- Changing the MCP transport (no stdio MCP, ever — ADR constraint).
- Widening
port.LLMRequest(provider-private knobs stay adapter Options).
References
internal/adapter/mcp/tool.go:167-186(flattenContent),:39-63(tool spec capture)internal/adapter/mcp/resource.go(Resource/ResourceContents,readResource)internal/adapter/mcpperf/tools.go:218,367,400(userResourceLink) +mcpperf_test.go:491-520,610-632engine/session/toolcall.go:71-89(ToolResult),engine/session/content.go(NewContent/ValidateMediaParts/ValidateJSON),engine/session/conversation.go:61,94(Message.Parts,NewToolMessage),engine/session/event.go:860(EvToolResult.ToolResult)contracts/proto/mecatl/v1/mecatl.proto:964-971(ToolResultproto)internal/adapter/acp/agent.go:486,809-836,815-857(ACP resource_link rejection + content-block→session.Contentmapping precedent)internal/app/capability.go(modelCapabilitysingle intersection)internal/adapter/server/{grpc,http}.go(Service.appendEventrelay persistence)engine/adapter/eventsource.Fold(rehydration reconstructs fromEvToolResult)docs/adr/0056-mcp-client-reconnect.md,docs/adr/0057-mcp-server-notifications.md,docs/adr/0027-cloud-native.md,docs/adr/0037-engine-stability-contract.md,docs/adr/0038-event-sourced-rehydration.md,docs/adr/0001-acp-adapter.md,docs/adr/0018-perf-observability.md- MCP tool results are not truncated to MaxOutputBytes (unlike every built-in tool) #178 (MCP truncation gap — Phase 0), MCP client: consume server-initiated notifications (enable standalone SSE + listChanged handlers) #193 (MCP notifications — landed), Make the filesystem truly optional: a no-FS session profile #55 (no-FS profile)
- MCP spec 2025-06-18: tools (
/server/tools), resources (/server/resources) - anthropics/claude-ai-mcp#287, openai/codex#10334, patent.dev MCP image problem
Activity
JAORMX commentedon Jun 30, 2026
Design correction: drop the relay sidecar — put typed content on the domain
ToolResult(provider-neutral, not MCP-shaped)On review, decision #8 (relay-owned sidecar) and the "keep
session.ToolResultstring-only" half of decision #1 are wrong — they were an over-rotation by the panel. The sidecar splits one logical thing (a tool result) across two storage locations (the domain event + a relay sidecar keyed by seq), soengine/adapter/eventsource.Foldcan't reconstruct it, the relay manages a second store, and the TUI/gRPC joins two sources. That's strictly worse than the problem it solves.The panel itself surfaced the better answer but didn't land on it:
session.Content(engine/session/content.go) already exists for the prompt path."session.Contenttype for blocks.Message.Parts []Contentalready carries multimodal parts withNewContent/ValidateMediaParts. Inventing a parallelToolResult.Blocks []SomethingElseforces two mental models and two validation paths. Reusesession.Contentso a tool author learns one type."The conflation was "typed blocks" ↔ "MCP-shaped typed blocks." The domain must not import
mcpsdk.*(that part of decision #1 stands — the anti-corruption-layer rule, theSkillSource/AgentDefSourceprecedent). But the domain does not need MCP types — it needs its own provider-neutral content model, which it already half has insession.Content.The corrected design
Extend the domain's neutral content model to cover tool-result blocks.
session.Contenttoday is media-only (image/audio, inline-data or URL). Generalize it (or add a siblingsession.ContentBlock) to carry: text, image, audio, resource-link (URI + name/description/MIME — a reference, not a fetch), embedded-resource (inline text or summarized blob). This is mecatl's own content type — nomcpsdkimport, same statussession.Contentalready has.NewContent/ValidateMediaPartsextend to cover it (the panel's decision ACP: accept client-provided streaming-HTTP MCP servers #7 — no second validation path — holds and is now structurally enforceable).Add the typed blocks to
session.ToolResultdirectly as an additive field (Parts []ContentorBlocks []ContentBlock), zero-value = legacy string-only.NewToolMessage(conversation.go:94) already builds the tool-roleMessage; it carries the*ToolResult. Tool-role messages gainPartsparity with user-role messages (Message.Partsatconversation.go:61).RecordToolResultsis unchanged (it already appendsNewToolMessage(r)).It rides the domain event.
EvToolResult.ToolResult(event.go:860) already carries*ToolResult; the typed blocks ride it for free.Fold/rehydration (ADR 0038) reconstructs them naturally because it already readsEvToolResult— no sidecar, no second store, no relay join. The loop stays storage-agnostic (it only emitssession.Event; persistence is stillService.appendEventat the relay). Backward-compat: old persisted sessions Load/Fold with zero-valuedParts= string-only.The MCP adapter maps
mcpsdk.Content→session.Content(neutral) — the same mapping posture the ACP adapter already uses (internal/adapter/acp/agent.go:815-857maps content blocks →session.Contentparts). The per-type switch differs; the per-part validation is shared. Nomcpsdktype crosses intoengine/.Audience/capability routing stays in composition (decision ACP: route file I/O through client fs/* delegation #2 unchanged). The MCP adapter produces the neutral blocks + a default model-facing string; composition decides per-result whether to upgrade the request to typed parts over the single
modelCapabilityintersection.What this changes vs. the issue body
session.ToolResultstring-only" half is withdrawn. The domain gets an additiveParts/Blocksfield of its own neutral content type (not MCP types). The anti-corruption-layer rule (nomcpsdk.*inengine/) still holds.EvToolResult.ToolResult;Foldreconstructs it.EvToolResult.ToolResult(already-redacted at the existing chokepoint);Foldreconstructs." No second redaction path (decision ACP: accept client-provided streaming-HTTP MCP servers #7 holds).session.ToolResultstays string-only" becomes "session.ToolResultgains an additiveParts/Blocksfield of the domain's own neutral content type (nomcpsdk.*); legacy sessions round-trip with zero-valued Parts."Why this is still api-compat-safe
NewToolResult/NewToolErrorstay 2-arg (decision #9 holds — ~200 call sites untouched). The new field is additive with a zero value; classification is Added (minor) perengine/COMPATIBILITY.md, triggerstask api:update+engine/CHANGELOG.md. The protoToolResultgets additiverepeatedblock fields (wire-safe).Foldreads the new field but a zero value is the legacy form — no migration shim needed, just aTestLoadLegacySessionWithFlatToolResultround-trip assertion.All other panel decisions (#2 audience-in-composition, #3 audience-is-advisory-only, #4 no URI dereference, #5 size-bound-first, #6 no
ValidateJSONfor structured content, #7 reuseNewContent/ValidateMediaParts, #9 constructor ergonomics, #10 new ADR) stand unchanged.This is the better solution the operator asked about. Updating the issue body to match.
docs: regenerate llms.txt (stale on this branch)
docs: regenerate llms.txt (stale on this branch)
feat(mcp): preserve typed content blocks, structured content, and res…
feat(mcp): preserve typed content blocks, structured content, and res…
feat(mcp): fail-closed on structured truncation + CallMcpWithQuery jq…
feat(mcp): preserve typed content blocks, structured content, and res…
feat(mcp): fail-closed on structured truncation + CallMcpWithQuery jq…
feat(mcp): preserve typed content blocks, structured content, and res…
feat(mcp): fail-closed on structured truncation + CallMcpWithQuery jq…