Skip to main content

mcp-bastion-openai-agents

Security helpers for OpenAI Agents SDK powered by MCP-Bastion.

MCP-Bastion security helpers for OpenAI Agents SDK tools and messages.

Install

pip install mcp-bastion-openai-agents

Usage

from mcp_bastion_openai_agents import SecureOpenAIAgents, secure_tool

guard = SecureOpenAIAgents()
guard.check_message("user or tool text")

@secure_tool
def lookup(query: str) -> str:
    return query

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-python automatically

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-openai-agents 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-bastion-openai-agents 5.1.0
File Size Uploaded
mcp_bastion_openai_agents-5.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-bastion-openai-agents 5.1.0
File Interpreter ABI Platform
mcp_bastion_openai_agents-5.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / mcp_bastion_openai_agents-5.1.0.tar.gz

Download URL mcp_bastion_openai_agents-5.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
50033dbf769d94a47a6747e265f891214b03e556aa09a60517c09c7dc2ed2f60
BLAKE2b-256 checksum
How to use checksums
235f392403761640db1b0959dec850711236381791c692652130af261fe7fd71
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

Release files / mcp_bastion_openai_agents-5.1.0-py3-none-any.whl

Download URL mcp_bastion_openai_agents-5.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b1602c6b67a52d2bc6ef94021ad46038440718dda4fc2968c46b8b2c8ffcaae
BLAKE2b-256 checksum
How to use checksums
1a330f2521c54cfe40e54b42268efc92d1838c9760f3185e5eb1b7e96b9a7a5d
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

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files

5.0.0

2 release files

4.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page