bruno-bridge
Turn Bruno collections into a programmatic API client.
Impetus
Bruno is more of a test runner than an API client1. While its GUI allows one to run a single request with Super+Enter, the CLI bruno-cli is collection-oriented. It runs multiple requests with test assertions, and reports the test results, with no straightfoward way to get the structured response data for the request2.
At the same time, Bruno has a great UI. There is no good alternative that solves this problem without sacrificing Bruno's UI.
- Postman and Insomnia's CLI also have a similar limitation of being test runners.
- Hurl is request-oriented, but lacks a GUI.
bruno-bridge wraps a Bruno collection as a reusable API client, available as a library, a CLI, and an MCP server. You keep Bruno’s UI and collection format as the source of truth.
Usage
Firstly, install using a Python package manager (e.g. pip):
pip install bruno-bridge
As a library
from bruno_bridge import Collection, bru_send
collection = Collection.from_path("path/to/collection")
result = bru_send(collection, "path/from/collection/root/get-user.bru", env="test")
print(result.status, result.reason)
print(result.body.decode("utf-8"))
As a CLI
# List every request with its method and raw URL
python -m bruno_bridge discover --collection path/to/collection
# Print the curl command for a request
python -m bruno_bridge curl --collection path/to/collection "path/from/collection/root/get-user.bru" --env test
# Send the request and print the response
python -m bruno_bridge run --collection path/to/collection "path/from/collection/root/get-user.bru" --env test --timeout 10
As an MCP server
Example for Claude Code:
claude mcp add bruno-bridge --scope user -- python -m bruno_bridge mcp --collection path/to/collection
For Nix users (no installation required):
claude mcp add bruno-bridge --scope user -- nix run flake:https://github.com/heyzec/bruno-bridge mcp --collection /path/to/collection
Footnotes
- Many people call Bruno an API client. I use the term more narrowly, for something you can invoke to send one request and receive the response. By that measure, Bruno’s GUI is less of an API client than curl, and bruno-cli is less of one still.
- You could use
bru run <file> --reporter-json results.jsonand then parse the JSON file, but that is not a ideal.
Metadata
Release files for bruno-bridge 1.0.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 |
|---|---|---|---|---|
| bruno_bridge-1.0.0.tar.gz | 9.1 kB | Without provenance | Details for bruno_bridge-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bruno_bridge-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for bruno_bridge-1.0.0-py3-none-any.whl |
Total release size: 21.5 kB
Release files / bruno_bridge-1.0.0.tar.gz
| Download URL | bruno_bridge-1.0.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26eddfbfc3ab91458d589b07cdfb47ebaf3ce19d9ce2fa8369a1dbe8170875c7
|
|
BLAKE2b-256 checksum How to use checksums |
91999e550357c854cb2541d4eddcfb48ed7a71f2ab85cb01da0eee745654d6c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / bruno_bridge-1.0.0-py3-none-any.whl
| Download URL | bruno_bridge-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d324ddba1a75ddb82ba27d180798f6296f7b082700f4d75bd20f5d9dba99a7c2
|
|
BLAKE2b-256 checksum How to use checksums |
df5da56ac8018022f2606c97d83429c450c53a29bb8d31f83c312b1dcf9b23c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for bruno-bridge 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.