Skip to content

docs(sdk): describe structured MCP results - #771

Open
georgeglarson wants to merge 2 commits into
OpenHands:mainfrom
georgeglarson:feat/mcp-structured-results
Open

docs(sdk): describe structured MCP results#771
georgeglarson wants to merge 2 commits into
OpenHands:mainfrom
georgeglarson:feat/mcp-structured-results

Conversation

@georgeglarson

Copy link
Copy Markdown
Contributor
  • I have read and reviewed the documentation changes to the best of my ability.
  • If the change is significant, I have run the documentation site locally and confirmed it renders as expected.

Summary of changes

Documents the two MCPToolObservation fields added in OpenHands/software-agent-sdk#4775 (which closes software-agent-sdk#4776).

The new paragraph in sdk/arch/mcp.mdx records that structured_content and result_meta keep the MCP result's structuredContent and _meta in the serialized observation for protocol-aware clients, that neither field is included in the tool-result content sent through the main agent loop, and that registered secrets in them are masked during conversation-backed execution (nested keys and values, secrets echoed as JSON numbers included). A field that cannot be masked safely, two keys colliding after masking for example, is dropped rather than returned unmasked.

Co-authored-by: openhands <openhands@all-hands.dev>
@georgeglarson
georgeglarson marked this pull request as ready for review August 30, 2026 23:04
@georgeglarson
georgeglarson requested a review from enyst as a code owner August 30, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MCPToolObservation silently discards structuredContent and result _meta

1 participant