Meta-Cognitive Optimization Protocol - A universal reasoning framework for multi-modal hypothesis generation, recursive refinement, and evidence-grounded synthesis.
Project description
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
- Repository: Kuonirad/MCOP-Framework-2.0
- Usage guide: mcop_package/USAGE_GUIDE.md
- API reference: mcop_package/API_REFERENCE.md
- Project structure: mcop_package/PROJECT_STRUCTURE.md
- Changelog: CHANGELOG.md
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
Business Source License 1.1 (BUSL 1.1) — see LICENSE and NOTICE.md for terms, the Change Date (2030-04-26), and the Additional Use Grant. Releases prior to 2026-04-26 remain available under MIT (see LICENSE-MIT-LEGACY).
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
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 mcop-3.2.0.tar.gz.
File metadata
- Download URL: mcop-3.2.0.tar.gz
- Upload date:
- Size: 60.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a9ee7cf5e0cbba69baa8d2e69c8f3a60971d8f5355802343991de535f39e047
|
|
| MD5 |
65f59a8b37dd1c24210665b37fdd28d7
|
|
| BLAKE2b-256 |
67e3da309c1989a07c04510c3a269d1fedb427740101eccc606d12730c4fbd00
|
Provenance
The following attestation bundles were made for mcop-3.2.0.tar.gz:
Publisher:
publish-pypi.yml on Kuonirad/MCOP-Framework-2.0
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcop-3.2.0.tar.gz -
Subject digest:
4a9ee7cf5e0cbba69baa8d2e69c8f3a60971d8f5355802343991de535f39e047 - Sigstore transparency entry: 1409459173
- Sigstore integration time:
-
Permalink:
Kuonirad/MCOP-Framework-2.0@5ff1b322231a1d55c6ccaf8becbe0b82779a37c7 -
Branch / Tag:
refs/tags/py-v3.2.0 - Owner: https://github.com/Kuonirad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5ff1b322231a1d55c6ccaf8becbe0b82779a37c7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcop-3.2.0-py3-none-any.whl.
File metadata
- Download URL: mcop-3.2.0-py3-none-any.whl
- Upload date:
- Size: 64.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3a91e5c9dea06b21330fee40420fd1dc6fcbd52202f304c9e51cb9cb4f16d05
|
|
| MD5 |
42eb6f6c12b5843317bd873d02ca776d
|
|
| BLAKE2b-256 |
6d687a4d0c0a8d787c13c6395cbf180c85a12254b66df76eecc579d8abe085ca
|
Provenance
The following attestation bundles were made for mcop-3.2.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on Kuonirad/MCOP-Framework-2.0
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcop-3.2.0-py3-none-any.whl -
Subject digest:
a3a91e5c9dea06b21330fee40420fd1dc6fcbd52202f304c9e51cb9cb4f16d05 - Sigstore transparency entry: 1409459177
- Sigstore integration time:
-
Permalink:
Kuonirad/MCOP-Framework-2.0@5ff1b322231a1d55c6ccaf8becbe0b82779a37c7 -
Branch / Tag:
refs/tags/py-v3.2.0 - Owner: https://github.com/Kuonirad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@5ff1b322231a1d55c6ccaf8becbe0b82779a37c7 -
Trigger Event:
release
-
Statement type: