News for hackers. Stuff that matters.
Re:A Critical Look at MCP by hirsin on Saturday May 10, 2025 @01:19PM (#43947263)
Indeed! But seemingly only for the actual object representation - it's a start, and I wonder if JSON is uniquely suited to LLMs because it's so text-first.
Re:A Critical Look at MCP by sitkack on Saturday May 10, 2025 @01:35PM (#43947392)
Hey, at least they didn't use yaml-rpc.
Re:A Critical Look at MCP by _raz on Saturday May 10, 2025 @01:38PM (#43947417)
toml-rpc anyone? :)
Re:A Critical Look at MCP by neuroelectron on Saturday May 10, 2025 @01:46PM (#43947482)
I think JSON is preferred because it adds more complexity.
Re:A Critical Look at MCP by sroussey on Saturday May 10, 2025 @04:07PM (#43948531)
I think it works because json is verbose and reinforces what everything is in each record.
Re:A Critical Look at MCP by visarga on Saturday May 10, 2025 @04:39PM (#43948803)
From this point of view XML offers all that and named brackets.
Re:A Critical Look at MCP by sroussey on Saturday May 10, 2025 @05:30PM (#43949165)
True. Even better with inline attributes.
Re:A Critical Look at MCP by DonHopkins on Sunday May 11, 2025 @11:05AM (#43954313)
I Wanna Be <![CDATA[ Sung to the tune of “I Wanna Be Sedated”, with apologies to The Ramones. ]]>

https://donhopkins.medium.com/i-wanna-be-cdata-3406e14d4f21

Re:A Critical Look at MCP by immibis on Saturday May 10, 2025 @01:34PM (#43947385)
I understand those with experience have found that XML works better because it's more redundant.
Re:A Critical Look at MCP by wisemang on Saturday May 10, 2025 @02:11PM (#43947667)
Is it the redundancy? Or is it because markup is a more natural way to annotate language, which obviously is what LLMs are all about?

Genuinely curious, I don’t know the answer. But intuitively JSON is nice for easy to read payloads for transport but to be able to provide rich context around specific parts of text seems right up XML’s alley?

Re:A Critical Look at MCP by solidasparagus on Saturday May 10, 2025 @04:09PM (#43948543)
Or is is because most text in existence is XML - or more specifically HTML.
Re:A Critical Look at MCP by giantrobot on Saturday May 10, 2025 @03:27PM (#43948178)
The lack of inline context is a failing of JSON and a very useful feature of XML.

Two simple but useful examples would be inline markup to define a series of numbers as a date or telephone number or a particular phrase tagged as being a different language from the main document. Inline semantic tags would let LLMs better understand the context of those tokens. JSON can't really do that while it's a native aspect of XML.