Skip to content

[FEATURE]: support structuredContent in responses of MCP #27263

Closed

Description

@miemoe

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I'd like to use OpenCode in compination with QtCreator.
QtCreator recently added an option to run as an MCP server.
https://doc.qt.io/qtcreator/creator-how-to-mcp-server.html#:~:text=Qt%20Creator%20supports%20the%20model%20context%20protocol%20%28MCP%29,MCP%20server%20extension%20to%20start%20the%20MCP%20server.

However the response coming from this MCP is in the format:

07:00:00.628 mcp.server.io: Writing response: {"id":9,"jsonrpc":"2.0","result":{"content":[],"isError":false,"structuredContent":{"failures":["tst_serializer::xmlRoundtrip","tst_serializer::readFileDetectsXml"],"summary":{"blacklisted":0,"build_failed":false,"duration_ms":1,"failed":2,"fatal":0,"passed":16,"skipped":0,"total":18},"summary_text":"16 passed, 2 failed, 0 skipped in 1 ms","tests_with_warnings":[]}}}

The LLMs I tried all respone: empty answer. Some tell, that there seems to be a structuredContent that OpenCode does not seem to transport to the LLM.

As you can see, the "content" in the answer is empty.

Should OpenCode have a mechanism to transport the structuredContent to the LLM is the content is empty?

Currently OpenCode cannot communicate with QtCreator.

Activity

  1. miemoe commented on May 13, 2026

    @miemoe
    Author

    Additional reference to this topic might be:
    modelcontextprotocol/modelcontextprotocol#2200

  2. jonesbusy commented on May 18, 2026

    @jonesbusy

    Facing the same with a MCP that return structuredContent with empty content

    According to https://modelcontextprotocol.io/specification/2025-11-25/server/tools#structured-content

    Structured content is returned as a JSON object in the structuredContent field of a result.
    For backwards compatibility, a tool that returns structured content SHOULD also return the serialized JSON in a TextContent block.
    

    But is clearly sometimes omited on some MCP server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions