Skip to main content

Stratum MCP server for Claude Code — structured execution, typed contracts, postcondition enforcement

Project description

stratum-mcp

Stratum MCP server for Claude Code. Structured execution, typed contracts, postcondition enforcement — no sub-LLM calls.

Install

pip install stratum-mcp
stratum-mcp install

setup configures Claude Code in one command: writes .claude/mcp.json, appends the execution model block to CLAUDE.md, and installs nine skills to ~/.claude/skills/. Restart Claude Code and it's active.

Skills

Skill What it structures
/stratum-onboard Read a new codebase cold and write project-specific MEMORY.md — run once after setup
/stratum-plan Design a feature and present it for review — no implementation until approved
/stratum-feature Feature build: read existing patterns → design → implement → tests pass
/stratum-review Three-pass code review: security → logic → performance → consolidate
/stratum-debug Debug: read test → read code → check env → form hypotheses → confirm/rule out → fix
/stratum-refactor File split: analyze → design modules → plan extraction order → extract one at a time
/stratum-migrate Find bare LLM calls and rewrite as @infer + @contract
/stratum-test Write a test suite for existing untested code
/stratum-learn Review session transcripts — extract retry patterns, write conclusions to MEMORY.md

MCP Tools

Tool What it does
stratum_validate Validate a .stratum.yaml spec
stratum_plan Validate + create execution state + return first step
stratum_step_done Report a completed step; check postconditions; return next step or completion
stratum_audit Return per-step trace (attempts, duration) for any flow

How It Works

Claude writes .stratum.yaml specs internally — you never see them. You see plain English narration. The MCP server enforces postconditions on every step; if a step's output fails a check, Claude fixes it and retries before reporting success.

Full documentation: stratum-in-claude-code.md

Tutorial: claude-code-tutorial.md

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stratum_mcp-0.1.10.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stratum_mcp-0.1.10-py3-none-any.whl (61.8 kB view details)

Uploaded Python 3

File details

Details for the file stratum_mcp-0.1.10.tar.gz.

File metadata

  • Download URL: stratum_mcp-0.1.10.tar.gz
  • Upload date:
  • Size: 67.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for stratum_mcp-0.1.10.tar.gz
Algorithm Hash digest
SHA256 1abbd8bb93026e1c369c9fe4a311628f4a369ac5482b6e0535b0caa5ee486c5a
MD5 f681dd4018372edbb2ed6b9837479dc5
BLAKE2b-256 0d0d7d3d7d30d3c13a619ca67350810a8cf838a1202b51e69536c694129131ba

See more details on using hashes here.

File details

Details for the file stratum_mcp-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: stratum_mcp-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 61.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for stratum_mcp-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b61e48a5e1d0c61e9a4d3d8244cc374441d82d35c45f6feda582be5b759f8675
MD5 baedc92123d29c6939c71f17e11ca653
BLAKE2b-256 d85e379efded803933897ea9b9af6a52ebf3a353fad068203555e2d116300d08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page