Skip to main content

mcop

mcop is the Python distribution for the Meta-Cognitive Optimization Protocol, a reasoning framework for multi-modal hypothesis generation, recursive refinement, and evidence-grounded synthesis.

The package exposes:

  • A general-purpose reasoning engine.
  • Domain adapters for general, medical, and scientific workflows.
  • A command-line interface for interactive use and scripted runs.
  • Structured outputs with confidence, grounding, evidence, and alternatives.

Install

pip install mcop

Optional extras:

pip install mcop[llm]
pip install mcop[dev]

Quick Start

Solve a problem directly

from mcop import solve

solution = solve("What causes climate change?")
print(solution.content)
print(f"Confidence: {solution.confidence * 100:.1f}%")
print(f"Grounding index: {solution.grounding_index:.2f}")

Work with the engine explicitly

from mcop import MCOPEngine, Problem

engine = MCOPEngine()
problem = Problem(description="Your problem here")
solution = engine.solve(problem)
print(solution.content)

Use a domain adapter

from mcop.domains import MedicalDomainAdapter, PatientPresentation

adapter = MedicalDomainAdapter()
presentation = PatientPresentation(
    chief_complaint="Chest pain",
    symptoms=["chest pain", "shortness of breath"],
)
problem = adapter.create_patient_problem(presentation)
solution = adapter.solve(problem)
print(adapter.format_differential_diagnosis(solution))

Command Line Interface

mcop solve "What are the causes of inflation?"
mcop solve --domain medical "Patient with fever and cough"
mcop interactive
mcop info

What the Package Returns

Each solution includes the primary response plus supporting metadata such as:

  • Confidence score.
  • Grounding index.
  • Evidence chain.
  • Alternative solutions.
  • Key uncertainties.

Project Resources

Notes

  • The Python package has no required runtime dependencies.
  • Medical and scientific adapters are decision-support examples and do not replace professional judgment.
  • Trusted publishing setup for PyPI is documented in TRUSTED_PUBLISHING_SETUP.md.

License

Apache License 2.0 (Apache-2.0) — see LICENSE and NOTICE.md for terms. Versions originally released under MIT remain available under MIT (see LICENSE-MIT-LEGACY).

Metadata

Release files for mcop 3.3.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 mcop 3.3.0
File Size Uploaded
mcop-3.3.0.tar.gz 126.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcop 3.3.0
File Interpreter ABI Platform
mcop-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 250.7 kB

Release files / mcop-3.3.0.tar.gz

Download URL mcop-3.3.0.tar.gz
Size 126.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bd6a3b358e543fb9fed7ae5fdc3cb9fe6a5712be8167fe228c55afbc07507b85
BLAKE2b-256 checksum
How to use checksums
b337f9b55642d0194d2ddd4b4ebc5c3be344227f6f4d9d4bafb902db35c52fc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2026.

Transparency log

Release files / mcop-3.3.0-py3-none-any.whl

Download URL mcop-3.3.0-py3-none-any.whl
Size 124.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b56a669f9515851f46d409dca626e20ba1016e8189113825fb13d37532ff19da
BLAKE2b-256 checksum
How to use checksums
ea1bcf709b3c300c218a97bcda2339c43d222362a82bd08bd6afc643002906a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.3.0 This release

2 release files

3.2.0

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

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