Skip to main content

MCP Contract

CI Spec License JSON Schema Website

A specification for composable AI workflow bundles with typed contracts between layers.

The Problem

MCP servers are monoliths. If you want to use one server's reasoning prompts with another server's tools and a third server's UI, you fork all three. MCP Contract fixes this by separating bundles into independently authored, versioned, and composable layers.

The Layers

Layer Role Analogy
Prompts Reasoning logic Source code
Tools State + execution Runtime libraries
Apps Interactive views UI framework
Skills Platform adaptation Compiler flags
Compiler The LLM gcc, clang, rustc

Layers are wired together through contracts — typed provides/consumes declarations backed by JSON Schema. A prompt layer provides an output shape. A tool layer provides data schemas. An app layer consumes both.

Quick Start

my-workflow/
├── mcp-contract.json      # Manifest
├── prompts/               # Markdown reasoning
├── tools/                 # MCP server
├── apps/                  # Interactive UIs
├── schemas/               # JSON Schema contracts
└── skills/                # Platform hints

See SPEC.md for the full specification.

Reference Implementation

Synth Ops — intelligent infrastructure operations built as an MCP Contract bundle.

Manifest Schema

The JSON Schema for validating mcp-contract.json manifests is at schema/mcp-contract.schema.json.

Reference it in your manifest:

{
  "$schema": "https://mcpcontracts.com/schema/0.1.0.json",
  "name": "my-workflow",
  "version": "0.1.0",
  "layers": { ... }
}

Status

v0.1.0-draft — Spec, manifest schema, CLI (mcpc validate, init, pack, test), and one reference implementation.

License

Apache-2.0

Metadata

Release files for mcpc-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpc-cli 0.1.0
File Size Uploaded Provenance Actions
mcpc_cli-0.1.0.tar.gz 14.9 kB Without provenance Details for mcpc_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcpc-cli 0.1.0
File Interpreter ABI Platform Actions
mcpc_cli-0.1.0-py3-none-any.whl Python 3 none any Details for mcpc_cli-0.1.0-py3-none-any.whl

Total release size: 32.3 kB

Release files / mcpc_cli-0.1.0.tar.gz

Download URL mcpc_cli-0.1.0.tar.gz
Size 14.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ee5d7c86c98f0bf51f05c3a17621b2c4fde5f01ca33263f5641cf69ea204207c
BLAKE2b-256 checksum
How to use checksums
57da2b6a837978a229561cf7746c763f1e2e59fe8703723d2644ee8bd9e5a1a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / mcpc_cli-0.1.0-py3-none-any.whl

Download URL mcpc_cli-0.1.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71f711f71e64b50bc4f98a22d6f4a97a5132e4aaef90cd123de1b3a5f248fc29
BLAKE2b-256 checksum
How to use checksums
009b9c806433e8e202f5e5e513f01404b98d3af6cedadb0c95f3b7107117abfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for mcpc-cli 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page