CLI for the MCP Contract specification — validate, inspect, and manage contract bundles.
Project description
MCP Contract
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcpc_cli-0.1.0.tar.gz.
File metadata
- Download URL: mcpc_cli-0.1.0.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee5d7c86c98f0bf51f05c3a17621b2c4fde5f01ca33263f5641cf69ea204207c
|
|
| MD5 |
a90b4224ef471c0acd75767126630d80
|
|
| BLAKE2b-256 |
57da2b6a837978a229561cf7746c763f1e2e59fe8703723d2644ee8bd9e5a1a6
|
File details
Details for the file mcpc_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcpc_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71f711f71e64b50bc4f98a22d6f4a97a5132e4aaef90cd123de1b3a5f248fc29
|
|
| MD5 |
7c6bfdd251bf3ead9e263cde861411ba
|
|
| BLAKE2b-256 |
009b9c806433e8e202f5e5e513f01404b98d3af6cedadb0c95f3b7107117abfb
|