mcp-bastion-pydantic-ai
Security helpers for Pydantic AI powered by MCP-Bastion.
MCP-Bastion security helpers for Pydantic AI agent prompts and tool args.
Install
pip install mcp-bastion-pydantic-ai
Usage
from mcp_bastion_pydantic_ai import SecurePydanticAI
guard = SecurePydanticAI()
guard.check_prompt("Summarize this ticket")
guard.check_tool_args({"path": "README.md"})
Features
- In-process content filter + injection heuristics
- Rate limiting per caller
- Thin adapter only — does not change MCP-Bastion's zero-infra nature
- Pulls in
mcp-bastion-pythonautomatically
License
Same terms as the MCP-Bastion project: see 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).
Release files for mcp-bastion-pydantic-ai 5.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_bastion_pydantic_ai-5.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_bastion_pydantic_ai-5.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / mcp_bastion_pydantic_ai-5.1.0.tar.gz
| Download URL | mcp_bastion_pydantic_ai-5.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85479fd8ba75a26d46dc82785fa84fd744c3a27c6dfc5e39cefaf807d2667a8e
|
|
BLAKE2b-256 checksum How to use checksums |
a61b2ca23428bcfdba84bb271225c6b33645745085c2e99d1d7cd56b6bf941c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 16, 2026.
Transparency logRelease files / mcp_bastion_pydantic_ai-5.1.0-py3-none-any.whl
| Download URL | mcp_bastion_pydantic_ai-5.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27b67ae80a87f479f956ef364fa8d9460a56043b13d93615b4a4bacc0ac3023d
|
|
BLAKE2b-256 checksum How to use checksums |
c2e06409fe0a3f205f0ba9ea553ff1b9e669ebc58b16579598821099205d7d11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 16, 2026.
Transparency log