Metadata-Version: 2.4
Name: mcp-bastion-litellm
Version: 4.0.0
Summary: MCP-Bastion security middleware for LiteLLM (100+ LLM providers via one OpenAI-compatible API).
Project-URL: Homepage, https://github.com/vaquarkhan/MCP-Bastion
Project-URL: Repository, https://github.com/vaquarkhan/MCP-Bastion
Project-URL: Documentation, https://github.com/vaquarkhan/MCP-Bastion/tree/main/integrations/mcp-bastion-litellm
Author: Vaquar Khan
License: See LICENSE and COMMERCIAL_LICENSE.md in the MCP-Bastion repository.
Keywords: bastion,litellm,llm,mcp,prompt-injection,proxy,security
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Requires-Python: >=3.10
Requires-Dist: litellm>=1.40.0
Requires-Dist: mcp-bastion-python<5,>=4.0.0
Description-Content-Type: text/markdown

# mcp-bastion-litellm

Security middleware for **LiteLLM** powered by [MCP-Bastion](https://pypi.org/project/mcp-bastion-python/).

MCP-Bastion security middleware for LiteLLM (100+ LLM providers via one OpenAI-compatible API).

## Install

```bash
pip install mcp-bastion-litellm
```

## Usage

```python
from mcp_bastion_litellm import SecureLiteLLM

client = SecureLiteLLM()
print(client.chat("What is MCP?", model="gpt-4o-mini"))
```

## Features

- Content filtering on prompts / messages
- Rate limiting per caller
- Prompt injection heuristics (via MCP-Bastion core)
- Pulls in `mcp-bastion-python` automatically

## License

Same terms as the [MCP-Bastion](https://github.com/vaquarkhan/MCP-Bastion) project: see [LICENSE](https://github.com/vaquarkhan/MCP-Bastion/blob/main/LICENSE). Non-commercial use is free with required **citation/attribution**; **copyright** terms apply. **Commercial** use as defined in the License may need a **separate agreement** ([COMMERCIAL_LICENSE.md](https://github.com/vaquarkhan/MCP-Bastion/blob/main/COMMERCIAL_LICENSE.md)).

