Author valid Model Context Protocol server.json manifests for the official MCP Registry and self-hosted /.well-known/mcp/server.json discovery with Streamable HTTP and clean token budgets.
Verify live A2A, MCP, OAuth & AEO discovery in production
In RungLab's N=140 B2B SaaS Readiness Benchmark, 98.4% (62/63) of full-telemetry domains lacked agent-card.json. Audit your live domain with ReadyCheck, cut MCP schema token tax with MCPDiet, or automate fleet discovery checks via Apify & RapidAPI.
Serve with `Content-Type: application/json; charset=utf-8` (never `text/plain` or SPA HTML fallback).
Include `Access-Control-Allow-Origin: *` so browser-based agent inspectors and web clients can fetch discovery JSON.
Use `Cache-Control: public, max-age=300` instead of `immutable` so skill/scope updates propagate quickly.
Return `WWW-Authenticate: Bearer resource_metadata="https://<domain>/.well-known/oauth-protected-resource"` on HTTP 401 (prevents `MCP-PRO-002`).
Live Well-Known Audit98.4% Lack Agent Cards
Verify live A2A, MCP, OAuth & AEO discovery in production
In RungLab's N=140 B2B SaaS Readiness Benchmark, 98.4% (62/63) of full-telemetry domains lacked agent-card.json. Audit your live domain with ReadyCheck, cut MCP schema token tax with MCPDiet, or automate fleet discovery checks via Apify & RapidAPI.
Across RungLab's audit of 100 live MCP Registry servers, 81.8% (45/55 reachable) use streamable-http-json, 18.2% (10/55) use streamable-http-sse, and 89.1% (49/55) negotiate protocolVersion 2025-03-26.
MCP Registry enforces reverse-DNS naming (e.g. com.example/server-name) and concise <=100-character descriptions so registry listings stay legible.
Discovery metadata stays lightweight, whereas live tools/list schemas inject a median 2,003 tokens (P90 9,884, max 16,424) per turn — pair server.json publishing with MCPDiet schema linting.
Common Production Pitfalls to Avoid
Hardcoding real API keys or bearer tokens inside remotes[].headers[].value leaks credentials publicly — only declare header metadata with isSecret: true and let the MCP host inject runtime credentials or use RFC 9728 OAuth.
Shipping legacy sse-only transport when modern MCP hosts expect streamable-http causes handshake friction.
Exceeding the 100-character description limit or omitting semver version causes MCP Registry CI validation failures.
More Agent Discovery Specifications & Framework Guides
Implement RFC 9728 OAuth 2.0 Protected Resource Metadata and HTTP 401 WWW-Authenticate headers so MCP clients dynamically discover your Authorization Server without manual client setup.
Deploy /.well-known/agent-card.json, /.well-known/mcp/server.json, and /.well-known/oauth-protected-resource on Cloudflare Workers and Cloudflare Pages with strict JSON MIME types and CORS.
Serve /.well-known/agent-card.json, /.well-known/mcp/server.json, and /.well-known/oauth-protected-resource cleanly in Next.js App Router without middleware auth redirects or trailing-slash loops.
Where do I publish server.json on my own domain vs. the official MCP Registry?
Commit server.json in your repository root when publishing to registry.modelcontextprotocol.io via mcp-publisher, and optionally serve the same JSON at https://yourdomain.com/.well-known/mcp/server.json for direct domain discovery.
Why does the MCP server.json validator check description length <= 100 characters?
The official MCP Registry schema restricts server description strings to 100 characters to prevent catalog bloat, routing long documentation to websiteUrl instead.
How do I keep tool schemas fast and cheap after clients connect via server.json?
Run MCPDiet (mcp.runglab.dev) or check our /mcp-cost/ calculator — 54.5% of live registry servers omit additionalProperties: false and 34.5% ship bloated >120-token tool descriptions.