HTTP backend for the AI assistant embedded in the Imbi DevOps service management platform. It manages chat conversations and streams responses from Anthropic's Claude over Server-Sent Events, giving Claude live access to Imbi data and actions through tools.
The service exposes a small REST API for conversation CRUD plus a streaming chat endpoint. When a user sends a message, the assistant:
Loads the conversation history from the graph and replays it to Claude.
Builds the tool set (see below) and a per-user system prompt .
Streams Claude's response as SSE events, running any tool calls in a loop (up to max_tool_rounds ) until Claude stops requesting tools.
Persists each assistant/tool-result round to the graph, and generates a short title for the first exchange.
The assistant's tools come from four sources, combined into a single list on every turn:
Imbi API (OpenAPI). At startup an in-process FastMCP server is built from the Imbi API's openapi.json (auth/MFA/status/thumbnail routes excluded). The caller's bearer token is forwarded per request so API calls run with the user's permissions.
External MCP servers. MCPServer nodes configured in the graph are connected over streamable HTTP; their tools are namespaced ( mcp_ _… ) and merged in. Supports static-header and OAuth client-credentials auth, with secrets decrypted at connect time. A bad server is logged and skipped, never fatal.
Client-side tools. navigate_to and refresh_data don't run on the server — they emit a client_action SSE event the UI executes (browser , cache invalidation after a mutation).
Refresh tool. refresh_openapi_spec re-fetches the OpenAPI spec and reconnects every external MCP server mid-conversation, so newly deployed tools become available without a restart.
Conversations and messages are stored as nodes in the Apache AGE graph (via imbi-common 's Graph client) and scoped to the authenticated user.
Every assistant endpoint requires a bearer JWT access token. Tokens are verified locally using the shared IMBI_AUTH_JWT_SECRET ; the subject is looked up as a User node and its permissions resolved from the graph. The same token is forwarded to the Imbi API when executing OpenAPI-backed tools.
All routes are served under the path component of IMBI_ASSISTANT_URL (e.g. /assistant ), so they match the ingress prefix.
A running imbi-api instance
PostgreSQL with Apache AGE (shared with the rest of the Imbi stack)
This project uses uv for project management and moon as its task runner. Install moon before contributing.
Run moon query tasks for all available commands.
Settings are read from the environment (prefix IMBI_ASSISTANT_ ). The service auto-enables when ANTHROPIC_API_KEY is present.
The image runs imbi-assistant serve --host 0.0.0.0 --port 8002 .
Formatting is handled by automated tooling and is the sole authority on style: Ruff for Python, Tombi for TOML, run via pre-commit hooks. Don't format manually — use uv run pre-commit run --all-files (or --files ) and moon run assistant:lint .
Release files for imbi-assistant 2.62.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .
Source distribution (sdist)
Built distribution (wheel)
Total release size: 78.7 kB
Release files / imbi_assistant-2.62.1.tar.gz
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 Nov 25, 2026.
Release files / imbi_assistant-2.62.1-py3-none-any.whl
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 Nov 25, 2026.
Security for imbi-assistant 2.62.1
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.
Both files in this release have been uploaded with provenance metadata.
Attestation for imbi_assistant-2.62.1.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 Nov 25, 2026.
Attestation for imbi_assistant-2.62.1-py3-none-any.whl
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 Nov 25, 2026.
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.
Release history Release notifications | RSS feed
Nov 25, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 24, 2026 2 release files Full provenance
Nov 23, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance
Nov 16, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Nov 11, 2026 2 release files Full provenance
Nov 10, 2026 2 release files Full provenance
Nov 9, 2026 2 release files Full provenance
Nov 4, 2026 2 release files Full provenance
Nov 4, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 22, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Sep 30, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 17, 2026 2 release files Full provenance
Sep 17, 2026 2 release files Full provenance
Sep 15, 2026 2 release files Full provenance
Sep 13, 2026 2 release files Full provenance
Sep 9, 2026 2 release files Full provenance
Sep 9, 2026 2 release files Full provenance
Sep 9, 2026 2 release files Full provenance
Sep 3, 2026 2 release files Full provenance
Aug 31, 2026 2 release files Full provenance
Aug 27, 2026 2 release files Full provenance
Aug 24, 2026 2 release files Full provenance
Aug 24, 2026 2 release files Full provenance
Aug 22, 2026 2 release files Full provenance
Aug 21, 2026 2 release files Full provenance
Aug 21, 2026 2 release files Full provenance
Aug 20, 2026 2 release files Full provenance
Aug 20, 2026 2 release files Full provenance
Aug 20, 2026 2 release files Full provenance
Aug 19, 2026 2 release files Full provenance
Aug 14, 2026 2 release files Full provenance
Aug 12, 2026 2 release files Full provenance
Aug 5, 2026 2 release files Full provenance
Jul 31, 2026 1 release file Full provenance
Jul 30, 2026 2 release files Full provenance
Jul 29, 2026 2 release files Full provenance
Jul 28, 2026 2 release files Full provenance
Jul 24, 2026 2 release files Full provenance
Jul 24, 2026 2 release files Full provenance
Jul 24, 2026 2 release files Change of provenance
Jul 21, 2026 2 release files Full provenance
Jul 21, 2026 2 release files Full provenance
Jul 20, 2026 2 release files Full provenance
Jul 20, 2026 2 release files Full provenance
Jul 16, 2026 2 release files Full provenance
Jul 15, 2026 2 release files Full provenance
Jul 15, 2026 2 release files Full provenance
Jul 14, 2026 2 release files Full provenance
Jul 14, 2026 2 release files Full provenance
Jul 13, 2026 2 release files Full provenance
Jul 13, 2026 2 release files Full provenance
Jul 6, 2026 2 release files Full provenance
Jun 12, 2026 2 release files Full provenance
Jun 12, 2026 2 release files Full provenance
Jun 12, 2026 2 release files Full provenance
Jun 11, 2026 2 release files Full provenance
Jun 11, 2026 2 release files Full provenance
Jun 5, 2026 2 release files Full provenance
Jun 4, 2026 2 release files Full provenance
Jun 4, 2026 2 release files Full provenance
Jun 3, 2026 2 release files Full provenance
May 30, 2026 2 release files Full provenance
May 28, 2026 2 release files Full provenance
May 20, 2026 2 release files Full provenance
May 19, 2026 2 release files Full provenance
May 11, 2026 2 release files Full provenance
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
