mcp-bruno

v0.1.1
io.github.kta41/mcp-bruno Checked 2 days ago Published 2 months ago

Python MCP server for running and inspecting Bruno API collections.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

run-collection Run Bruno collection

Run a Bruno collection with the local `bru` CLI and return normalized JSON with success, request summary, per-request details, failures, and execution timings. Provide `collection` as the collection path; optionally pass `environment` and non-secret `variables` as KEY=value strings. For secrets, pass only names through `inherited_variables`; values are read from the MCP server process.

ParameterTypeDescription
collection *stringPath to the Bruno collection directory, a .bru/.vru request file, or an opencollection.yml file. When opencollection.yml is provided, the server runs its parent collection directory.
environmentOptional Bruno environment name or environment file accepted by `bru run --env`.
inherited_variablesOptional names of environment variables to read from the MCP server process and pass to Bruno as `--env-var`. Use this for secrets so the LLM only provides variable names, never values.
variablesOptional Bruno environment variables passed as repeated `--env-var` values. Use KEY=value strings.

list-collections List Bruno collections

List Bruno collections below a root directory or configured roots. Use this when the user gives a partial collection name instead of a full path.

ParameterTypeDescription
queryOptional case-insensitive text used to filter collection names and paths.
rootOptional Bruno root directory. When omitted, the server uses roots from bruno-mcp.toml or ~/.config/bruno-mcp/config.toml.

discover-environments Discover Bruno environments

Inspect the folder structure around a Bruno collection and return the sibling environments directory, available environment names, and variable names. Secret values are not returned.

ParameterTypeDescription
collection *stringPath to a Bruno collection under a bruno/collections-style tree. The server will look for a sibling environments directory.

list-request-filters List Bruno request filters

Inspect OpenCollection YAML requests and return enabled and disabled query params that can be used as filter scenarios. Secret values are not returned.

ParameterTypeDescription
collection *stringPath to the Bruno collection directory or opencollection.yml file to inspect for query filters.

run-filter-scenarios Run Bruno filter scenarios

Run temporary Bruno request variants with selected disabled query params enabled, then validate HTTP status and response payload consistency. Each request is also run once without filters (baseline) to distinguish an ignored filter (response identical to baseline) from a filter that legitimately returns zero matches. Infrastructure failures (auth, routing, timeout, connectivity) are reported as inconclusive, never as filter defects. Source collection files are not modified.

ParameterTypeDescription
collection *stringPath to the Bruno collection directory or opencollection.yml file.
environmentOptional Bruno environment name.
inherited_variablesOptional secret variable names to inherit from the MCP server process.
max_scenariosintegerMaximum number of generated scenarios when scenarios are omitted.
scenariosOptional explicit filter scenarios. When omitted, scenarios are generated from disabled query params.
variablesOptional non-secret KEY=value variables.

read-result-artifact Read Bruno result artifact

Read a bounded, redacted summary from a raw Bruno JSON artifact path returned by run-collection or run-filter-scenarios. Use this when response data is too large to include directly in a tool result.

ParameterTypeDescription
path *stringPath returned by run-collection or run-filter-scenarios as artifact_path.
max_itemsintegerMaximum response items to sample per request.

run-full-validation Run full Bruno validation (endpoints then filters)

Two-phase validation. Phase 1 runs the collection once and checks every endpoint is reachable (HTTP status, no request errors). Phase 2 only runs if phase 1 passes: it tests every documented disabled query filter across every endpoint in temporary request copies, without modifying source files. Each scenario is compared against an unfiltered baseline to distinguish ignored filters from legitimate zero-match results, and infrastructure failures are marked inconclusive instead of failed. Returns a consolidated result stating which phase ran, per-endpoint baseline status, and per-endpoint per-fil…

ParameterTypeDescription
collection *stringPath to the Bruno collection directory or opencollection.yml file.
environmentOptional Bruno environment name.
inherited_variablesOptional secret variable names to inherit from the MCP server process.
max_scenariosintegerMaximum number of filter scenarios to run in phase 2, across all endpoints combined.
variablesOptional non-secret KEY=value variables.