Skip to content

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

@miemoe

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions