About Repro Slow Import Jsonschema
Repro Slow Import Jsonschema is an MCP server published by ycjcl868 in the Files category: `mcp.types` pulls in fastmcp, uvicorn, watchfiles, jsonschema, etc. during the module import. 6 +- On a machine capped at 0.5 vCPU the first import takes 8–12 s, blocking our server startup.
The repository has 5 stars and 1 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.
Install
git clone https://github.com/ycjcl868/repro-slow-import-jsonschemaThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Repro Slow Import Jsonschema
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
Slow Import Reproduction
This folder contains a minimal Docker Compose project that reproduces the slow
first-import behaviour we observe for mcp.types and the jsonschema
package. Both services share the same Dockerfile and pin the versions that
are problematic in our production image.
Prerequisites
- Docker 24+
- Docker Compose V2
Usage
# Build the shared base image
docker compose build
# Reproduce the jsonschema import delay (default command)
docker compose run --rm jsonschema
# Reproduce the mcp.types import delay
docker compose run --rm mcp
The compose services enforce a low CPU quota (0.5 cores) and a tight memory
limit (1g) to match the constrained hosts where the slowdown is most visible.
Inspecting detailed import timings
Enable CPython's import profiler to gather the per-module breakdown:
PYTHONPROFILEIMPORTTIME=1 docker compose run --rm jsonschema
PYTHONPROFILEIMPORTTIME=1 docker compose run --rm mcp
The scripts print the wall-clock duration of the target import, while the profiler dumps the per-module timings to stdout for inclusion in upstream issues.
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.