Skip to main content
Glama

Wallras clients for Python

Two single-file, zero-dependency clients for Wallras, the AI monitoring proxy you run next to your app:

  • wallras_mcp.py: an MCP server, so Claude Desktop, Claude Code, Cursor or your own agent can check drift, read requests and agent runs, work the review queue, fetch prompts and run regression sets. Read-only unless you pass --enable-writes.

  • wallras_sdk.py: report what Wallras can't see on its own: a self-hosted model's token probabilities and decision records, agent steps (tool runs, lookups), and feedback; fetch prompt versions.

Both talk only to your own Wallras with your token. The Wallras engine itself ships as a Docker image (ghcr.io/wallras/wallras-engine); this repository holds the open-source clients.

Install

pip install wallras

Or run the MCP server without installing anything:

uvx --from wallras wallras-mcp

Each file also works on its own: copy it next to your code.

Related MCP server: Shotstack MCP Server

MCP server

{"mcpServers": {"wallras": {
  "command": "uvx", "args": ["--from", "wallras", "wallras-mcp"],
  "env": {"WALLRAS_URL": "http://localhost:8080", "WALLRAS_TOKEN": "a viewer or admin token"}}}}

Add "--enable-writes" to args for the tools that change something (feedback, review decisions, saving or promoting prompts, regression runs, optionally graded by a judge_model). Those need an admin token; regression runs call your provider with WALLRAS_PROVIDER_KEY (and WALLRAS_ANTHROPIC_KEY / WALLRAS_GEMINI_KEY), which stay on your machine.

SDK

from wallras_sdk import Wallras
w = Wallras("http://localhost:8080", token="your WALLRAS_APP_TOKEN")
w.report(model="llama-3.1-8b", prompt=prompt, answer=text,
         tokens=Wallras.tokens_from_openai(response["choices"][0]["logprobs"]["content"]))

Reports go in the background and never raise into your code. See the docs for traces, decision records and prompts.

Try a hub with two nodes

examples/docker-compose.hub.yml starts one hub and two nodes on your machine:

docker compose -f examples/docker-compose.hub.yml up -d

Send requests to a node (http://localhost:8081/v1 or :8082, with your provider key), then open http://localhost:8080/wallras/ui and the Nodes tab.

Try active-active

examples/docker-compose.active.yml starts Postgres, three Wallras containers and a load balancer. Any container answers any request, and together they keep one tamper-evident record:

docker compose -f examples/docker-compose.active.yml up -d

Send requests to http://localhost:8080/v1, then ask the MCP server's wallras_fleet tool (or GET /wallras/fleet) which containers answered.

Issues

Bugs and ideas for the clients, or for Wallras itself: open an issue. Security reports: see SECURITY.md, not public issues.

MIT licensed. The files here are copies of the ones published with each Wallras release.

Available Tools

22 tools
wallras_blind_spotsC
Read-only

Topics and kinds of task where the AI is wrong more often than elsewhere.

Inputs: days.

wallras_consistencyC
Read-only

How often answers change when the same question is asked again or reworded.

Inputs: days.

wallras_datasetC
Read-only

One regression set: its items and run history.

Inputs: name (required).

wallras_datasetsB
Read-only

Regression test sets and their last results.

Inputs: no named parameters.

wallras_driftB
Read-only

Drift per model against its own baseline: answer length, wording, refusals, certainty, served model.

Inputs: no named parameters.

wallras_experimentsC
Read-only

Saved side-by-side comparisons of models or prompt versions.

Inputs: dataset.

wallras_fleetA
Read-only

Active-active: every Wallras container and worker on this database, its version, when it last checked in and what it served; flags different versions running at once.

Inputs: no named parameters.

wallras_hubC
Read-only

On a hub: every node in one view: models drifting on several nodes at once, silent nodes, each node's next actions, request totals.

Inputs: no named parameters.

wallras_hub_nodesB
Read-only

On a hub: each node's status, engine version, last report, usage and drift.

Inputs: no named parameters.

wallras_judgeB
Read-only

Live judge scores: the pass rate of real answers a judge model scored, per model and per prompt version, and recent failures.

Inputs: days, model.

wallras_overviewB
Read-only

What needs attention now: drift, failing agent runs, broken regression sets, review items, each with the call to look closer.

Inputs: days.

wallras_promptB
Read-only

One prompt: every version, who saved it, and the history of each label.

Inputs: name (required).

wallras_prompt_diffC
Read-only

What changed between two versions of a prompt.

Inputs: a (required), b (required), name (required).

wallras_promptsB
Read-only

Saved prompts with their labels (production, staging...) and latest version.

Inputs: no named parameters.

wallras_prompt_usageC
Read-only

Live results per prompt version: requests, errors, latency, tokens, feedback accuracy.

Inputs: name (required), days.

wallras_requestC
Read-only

One recorded request: question, answer, served model, confidence, feedback, consistency check.

Inputs: event_id (required).

wallras_requestsA
Read-only

The request log, newest first. Filter by model, app_name, status (ok or error) or text q.

Inputs: q, hours, limit, model, +2 more.

wallras_review_queueC
Read-only

Answers waiting for a person: regression close calls and answers that contradicted themselves.

Inputs: kind, status.

wallras_statusB
Read-only

Mode, provider, models seen, silent model swaps and plan.

Inputs: no named parameters.

wallras_traceB
Read-only

One agent run, step by step, with each answer, tool call and tool result.

Inputs: trace_id (required).

wallras_tracesC
Read-only

Agent runs: steps, tool calls, tokens, cost and problems found (loops, tool errors).

Inputs: days, limit, model, status.

wallras_usageC
Read-only

Requests, errors, tokens, cost and latency, by model or app.

Inputs: by, hours.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 22 tools

    Disambiguation4/5

    Most tools target a distinct object and grain: singular names fetch one record (wallras_request, wallras_trace, wallras_prompt, wallras_dataset) while plurals list them, and analytics tools (wallras_usage, wallras_judge, wallras_drift, wallras_consistency, wallras_blind_spots) each cover a different metric family. The main overlap risk is the cluster of situational-awareness tools (wallras_overview, wallras_status, wallras_fleet, wallras_hub, wallras_hub_nodes), which are only separated by deployment mode and are easy to pick wrong without reading descriptions carefully.

    Naming Consistency4/5

    Every tool shares the wallras_ prefix and snake_case, with a predictable singular=one-record / plural=list-or-collection convention (dataset/datasets, prompt/prompts, request/requests, trace/traces) plus qualified variants (wallras_prompt_diff, wallras_prompt_usage). The only weakness is that no verbs appear in names, so the list-vs-detail distinction is implicit rather than stated.

    Tool Count3/5

    22 tools is heavy for a single server, though the domain (LLM observability, drift, regressions, prompts, agent traces, multi-node fleet) genuinely spans several sub-areas. Every tool maps to a real surface, but the hub/fleet/overview cluster inflates the count for users running a single node.

    Completeness3/5

    Read coverage is broad and coherent: requests, traces, prompts with diff and per-version usage, datasets, experiments, judge, drift, review queue, and hub/fleet views all have entry points. However the surface is entirely read-only — there is no way to create or edit a prompt or dataset, trigger or re-run a regression set, or resolve/acknowledge review-queue and drift items, which leaves the described workflows as dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to inspect and manage video renders, templates, generation models, hosted assets, and ingest sources while using isolated private account profiles. It requires explicit approval for mutation operations and supports both MCP and CLI access.
      23
      499 npm
      AGPL 3.0
    • A
      license
      B
      quality
      B
      maintenance
      Gives coding agents read-only access to an AI-SPM backend's flagged issues, inventory, and remediation guidance so they can fix the affected code, along with guardrail policies, LLM-interaction analytics, cost-optimization analyses, and red-teaming evaluation results.
      37
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Gives AI assistants read access to MDRN's workspaces, projects, products, builds, releases, deployments and logs, plus safe write actions such as deploying a connected repository, rolling back, toggling products and managing service variables and services.
      11 npm
      MIT