Metadata-Version: 2.4
Name: mcs-types-http
Version: 0.1.0
Summary: Shared HTTP types (HttpResponse, HttpError) for the Model Context Standard.
Author-email: Danny Gerst <danny@dannygerst.de>
License-Expression: Apache-2.0
Project-URL: Homepage, https://www.modelcontextstandard.io
Project-URL: Source, https://github.com/modelcontextstandard/python-sdk
Keywords: mcs,modelcontextstandard,types,http
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# mcs-types-http

**Shared HTTP types for the Model Context Standard (MCS).**

Contains `HttpResponse` and `HttpError` -- the library-agnostic value
objects returned by any MCS HTTP adapter (`mcs-adapter-http`,
`mcs-adapter-http-httpx`, ...).

This package has **zero dependencies**.  It exists so that alternative
HTTP adapter implementations can share the same response type without
depending on each other.

## Installation

```bash
pip install mcs-types-http
```

Most users don't need to install this directly -- it's pulled in
automatically by `mcs-adapter-http` and other adapter packages.

## Usage

```python
from mcs.types.http import HttpResponse, HttpError

resp = HttpResponse(status_code=200, text='{"ok": true}')
assert resp.ok
data = resp.json()
```

## Links

- **Homepage:** <https://www.modelcontextstandard.io>
- **Source:** <https://github.com/modelcontextstandard/python-sdk>

## License

Apache-2.0
