CoolFace
Apppublic

olaservo/json-schema-2020-12-py

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes
App README

JSON Schema 2020-12 tool inputs — MCP demo (Python)

A public, keyless Model Context Protocol server that demonstrates full-dialect JSON Schema 2020-12 tool inputs per SEP-2106, released as part of the 2026-07-28 MCP spec (top-level oneOf, discriminated unions, $ref/$defs, if/then, prefixItems tuples, the SEP-1330 enum varieties). Built on the MCP Python SDK 2.0 (mcp==2.0.0, stable GA), low-level Server, served over Streamable HTTP.

Endpoint: https://olaservo-json-schema-2020-12-py.hf.space/mcp — point MCP Inspector or any MCP client at it and run initialize → tools/list → tools/call. Each tool advertises its raw 2020-12 schema verbatim and validates call arguments against it with jsonschema.Draft202012Validator. Handlers echo the validated arguments plus a conforming structuredContent.

This is the sibling of the TypeScript demo (…-ts); both read the same `schemas.json` single source of truth. Source: `mcp/tool-schemas/demo-server-py` in olaservo/research-hub-public.

Build

This Space is built by assemble.ps1 (in the source repo), which stages server.py, serve.py, the vendored schemas.json, this README.md, and the Dockerfile into .staging/ — the build context uploaded here. The container serves serve.py on 0.0.0.0:$PORT (app_port 7860) at /mcp.