(no title)
cle | 6 months ago
The author even later says that MCP supports JSON Schema, but also claims "you can't generate type-safe clients". Which is plainly untrue, there exist plenty of JSON Schema code generators.
cle | 6 months ago
The author even later says that MCP supports JSON Schema, but also claims "you can't generate type-safe clients". Which is plainly untrue, there exist plenty of JSON Schema code generators.
ohdeargodno|6 months ago
Claude will happily cast your int into a 2023 Toyota Yaris and keep on hallucinating things.
starkparker|6 months ago
> Cast an integer into the type of a 2023 Toyota Yaris using Javascript
(GPT-4o mini)
> To cast an integer into the type of a 2023 Toyota Yaris in JavaScript, you would typically create a class or a constructor function that represents the Toyota Yaris. Then, you can create an instance of that class using the integer value. Here's an example of how you might do this:
cle|6 months ago
Claude Code validated the response against the schema and did not pass the response to the LLM.
Groxx|6 months ago
dboreham|6 months ago
mgh95|6 months ago
It is absolutely possible to do this, and to generate client code which complies with ISO-8601 in JS/TS. Large amounts of financial services would not work if this was not the case.
See the c# support for ISO-8601 strings: https://learn.microsoft.com/en-us/dotnet/standard/base-types...
cle|6 months ago
Related but distinct from serialization.
int_19h|6 months ago
https://www.w3.org/TR/xmlschema-2/#isoformats
And so you can write a web service in Java and use it from C#, or whatever.
xpe|6 months ago
jongjong|6 months ago
The merchants of complexity are disappointed. It turns out that even machines don't care for 'machine-readable' formats; even the machines prefer human-readable formats.
The only entities on this planet who appreciate so-called 'machine-readability' are bureaucrats; and they like it for the same reason that they like enterprise acronyms... Literally the opposite of readability.
nxobject|6 months ago