mcp-bastion-xai
Security middleware for xAI Grok powered by MCP-Bastion.
MCP-Bastion security middleware for xAI Grok (OpenAI-compatible API).
Install
pip install mcp-bastion-xai
Usage
from mcp_bastion_xai import SecureXAI
client = SecureXAI() # uses XAI_API_KEY
print(client.chat("What is MCP?"))
Features
- Content filtering on prompts / messages
- Rate limiting per caller
- Prompt injection heuristics (via MCP-Bastion core)
- 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).
Metadata
Release files for mcp-bastion-xai 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 | Provenance | Actions |
|---|---|---|---|---|
| mcp_bastion_xai-5.1.0.tar.gz | 2.8 kB | With provenance | Details for mcp_bastion_xai-5.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_bastion_xai-5.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_bastion_xai-5.1.0-py3-none-any.whl |
Total release size: 5.5 kB
Release files / mcp_bastion_xai-5.1.0.tar.gz
| Download URL | mcp_bastion_xai-5.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9771cea2da05f8691ebfe4803250be71068e094dbb8853f50e4d9236d38991bb
|
|
BLAKE2b-256 checksum How to use checksums |
56150a0ae67b73231406b547a90773818bc6732d68adba0851fecd011dabc203
|
| 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_xai-5.1.0-py3-none-any.whl
| Download URL | mcp_bastion_xai-5.1.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf416b6d325c82a39cb52ddcb2f1f77f76c6a2a271f2dfff23ee074ef70ccc73
|
|
BLAKE2b-256 checksum How to use checksums |
2f483b0e55e88b7abb0d9069814cbee3dad5bb577d2121477041a4bcee5cc452
|
| 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 logSecurity for mcp-bastion-xai 5.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_bastion_xai-5.1.0.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.