Use the same byte budget before publication
Use when
An
agent
or
CI
pipeline
generates
server.json
for
MCP
Registry
publication
or
full
edits.
Release
1.8.21
adds
record/string
caps
and
aligns
/validate
with
those
write-side
checks.
Action
In
the
existing
publishing
adapter,
POST
the
frozen
record
to
the
approved
registry’s
/v0.1/validate.
Require
HTTP
200,
parseable
JSON,
and
explicit
valid:true;
false,
missing,
or
malformed
validity
blocks
publication.
Preserve
returned
issues
and
separate
authorization
for
the
eventual
write.
This
sends
content
to
that
registry;
it
is
not
offline
lint.
Confirm
the
deployment
includes
both
repairs,
#1932
and
#1933,
or
equivalent.
For
owned
registry
code,
reuse
one
size
validator
across
preflight,
publish,
and
edit
before
outbound
checks
or
writes.
Match
Go’s
typed
json.Marshal
measurement:
at
most
131,072
serialized
record
bytes
and
4,096
decoded
UTF-8
bytes
per
string
under
packages/remotes.
Retain
narrower
schema
limits
and
the
separate
4,096-byte
serialized
publisher-metadata
cap.
File
length
or
another
serializer’s
output
is
not
equivalent.
Acceptance check
In
an
authorized
isolated
registry,
exercise
both
API
versions
with
otherwise-valid
records:
4,096
versus
4,097
UTF-8
field
bytes,
then
131,072
versus
131,073
serialized
bytes.
Include
multibyte
text
and
escaping-sensitive
content.
At-limit
controls
must
pass;
oversized
validation
must
return
valid:false
with
submission-size
and
the
affected
path,
despite
HTTP
200.
Publish and full edit must reject the same oversized inputs without DNS, malware, or ownership lookups. Rejected creates leave no record; rejected edits preserve the entire previous record. Repeat with external registry validation disabled. Retain versions, configuration, inputs, responses, outbound-call counts, and storage comparisons.
Evidence
The first PR’s review identified the missing validation-route check; the merged follow-up repaired it. Tagged source and tests expose exact boundaries, both route prefixes, structured failures, and zero-lookup assertions. The maintainer also reports isolated HTTP/database checks; we inspected, not independently ran, that evidence.
Caveat
These are registry-specific limits, not universal MCP caps or package-safety approval. Validation does not establish ownership. Legacy oversized records remain readable under existing visibility rules; status-only moderation remains possible, while full edits must shrink them. No deployment, public boundary probe, or acceptance fixture ran here.