Metadata-Version: 2.4
Name: mcp-hangar
Version: 0.6.0
Summary: Production-grade infrastructure for Model Context Protocol
Project-URL: Homepage, https://mcp-hangar.io
Project-URL: Documentation, https://docs.mcp-hangar.io
Project-URL: Repository, https://github.com/mapyr/mcp-hangar
Author-email: Marcin Pyrka <marcin@mcp-hangar.io>
License: MIT
Keywords: ai,infrastructure,llm,mcp,model-context-protocol
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: aiosqlite>=0.19.0
Requires-Dist: cryptography>=41.0.0
Requires-Dist: docker>=7.1.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: mcp>=1.0.0
Requires-Dist: prometheus-client>=0.19.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyjwt>=2.8.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: questionary>=2.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: structlog>=24.0.0
Requires-Dist: typer>=0.12.0
Provides-Extra: dev
Requires-Dist: hypothesis>=6.90.0; extra == 'dev'
Requires-Dist: mypy>=1.8.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest-timeout>=2.2.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.3.0; extra == 'dev'
Provides-Extra: langfuse
Requires-Dist: langfuse>=2.0.0; extra == 'langfuse'
Provides-Extra: opentelemetry
Requires-Dist: opentelemetry-api>=1.22.0; extra == 'opentelemetry'
Requires-Dist: opentelemetry-exporter-otlp>=1.22.0; extra == 'opentelemetry'
Requires-Dist: opentelemetry-sdk>=1.22.0; extra == 'opentelemetry'
Provides-Extra: postgres
Requires-Dist: asyncpg>=0.29.0; extra == 'postgres'
Description-Content-Type: text/markdown

# MCP-Hangar Core

Production-grade infrastructure for Model Context Protocol.

> **Note**: This is the Python core package of the [MCP Hangar monorepo](https://github.com/mapyr/mcp-hangar). For Kubernetes operator, see `packages/operator/`. For Helm charts, see `packages/helm-charts/`.

## Installation

```bash
# Quick install (recommended)
curl -sSL https://get.mcp-hangar.io | bash

# Or via pip
pip install mcp-hangar
```

## Quick Start

```bash
# Run with config file
mcp-hangar serve --config config.yaml

# Or with environment variables
MCP_MODE=http MCP_HTTP_PORT=8080 mcp-hangar serve
```

## Development

```bash
# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check mcp_hangar
ruff format mcp_hangar

# Type check
mypy mcp_hangar
```

## Features

- **Provider Management**: Hot-load MCP providers (subprocess, Docker, remote)
- **CQRS + Event Sourcing**: Clean architecture with domain events
- **Health Monitoring**: Circuit breakers, automatic recovery
- **Observability**: Prometheus metrics, structured logging, tracing

## Documentation

See [main documentation](https://mapyr.github.io/mcp-hangar/) for details.

## License

MIT
