serverjson

command
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command serverjson renders the MCP registry manifest for a release and checks what the registry lists after publishing (Story 4.7).

server.json at the repository root is a template: its version fields are never edited by hand. `render` sets the server version and every package version from the release version, validates the result against the MCP registry schema named in $schema (embedded here as server.schema.json) and writes it:

  • npm `tokenhound`: version X.Y.Z (the npm version is the tag version);
  • PyPI `tokenhound`: the PEP 440 form, X.Y.Z, or X.Y.ZaN, bN, rcN for X.Y.Z-alpha.N, -beta.N, -rc.N (the same mapping as dist/pypi/build_wheels.py);
  • OCI `ghcr.io/aiagentpro/tokenhound`: the identifier carries the image tag X.Y.Z and the package has no version field (the registry's OCI form).

The template must list exactly these three packages, each with stdio transport and the single positional argument `mcp`, under the name io.github.aiagentpro/tokenhound.

`verify` reads a registry API response for one server version (GET <registry>/v0.1/servers/<name>/versions/<version>) and fails unless it lists the name, the version and the three packages exactly as `render` produces them.

Usage:

go run ./tools/serverjson render -version X.Y.Z [-in server.json] [-o out.json]
go run ./tools/serverjson verify -version X.Y.Z [-in server.json] response.json

Exit codes: 0 rendered or verified, 1 the template, the rendered manifest or the registry response is wrong (the field is named), 2 usage or unreadable input.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL