Qbittorrent Agent
CLI or API | MCP | Agent
Version: 2.3.0
Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, and guidance for provisioning the qBittorrent backing service are maintained in the official documentation.
Table of Contents
Overview
Qbittorrent Agent is a production-grade Agent and Model Context Protocol (MCP) server designed to interface directly with AI agent for qBittorrent management, RSS automation, and search..
Documentation
The complete documentation is published as the official documentation site and is the recommended reference for installation, deployment, and day-to-day operation.
| Page | Contents |
|---|---|
| Installation | pip, source, extras, prebuilt Docker image |
| Deployment | run the MCP server and A2A agent, Compose, Caddy + Technitium, env config |
| Usage | the MCP tools, the QbittorrentApi client, the CLI |
| Backing Platform | deploy qBittorrent with Docker |
| Overview | concept overview and enterprise readiness |
| Architecture | agent, MCP server, layered client |
| Concepts | concept registry (CONCEPT:QBT-*) |
Key Features
- Consolidated Action-Routed MCP Tools: Minimizes token overhead and eliminates tool bloat in LLM contexts by grouping methods into optimized, togglable tool modules.
- Enterprise-Grade Security: Complete support for Eunomia policies, OIDC token delegation, and granular execution context tracking.
- Integrated Graph Agent: Built-in Pydantic AI agent supporting the Agent Control Protocol (ACP) and standard Web interfaces (AG-UI).
- Native Telemetry & Tracing: Out-of-the-box OpenTelemetry exports and native Langfuse tracing.
CLI or API
This agent wraps the AI agent for qBittorrent management, RSS automation, and search. API. The operator can interact with it programmatically or via its integrated execution entrypoints.
Detailed instructions on how to use the underlying API wrappers, extended schema bindings, and developer SDK references are maintained in docs/index.md.
MCP
This server use dynamic Action-Routed tools to optimize token overhead and maximize IDE compatibility.
Available MCP Tools
This table is auto-generated from the live server — do not edit by hand.
Condensed action-routed tools (MCP_TOOL_MODE=condensed)
| MCP Tool | Toggle Env Var | Description |
|---|---|---|
qbittorrent_app |
APPTOOL |
Manage qbittorrent app operations. |
qbittorrent_ingest_torrents |
INGESTTOOL |
Natively ingest qBittorrent torrents into epistemic-graph as typed nodes. |
qbittorrent_log |
LOGTOOL |
Manage qbittorrent log operations. |
qbittorrent_rss |
RSSTOOL |
Manage qbittorrent rss operations. |
qbittorrent_search |
SEARCHTOOL |
Manage qbittorrent search operations. |
qbittorrent_sync |
SYNCTOOL |
Manage qbittorrent sync operations. |
qbittorrent_torrents |
TORRENTSTOOL |
Manage qbittorrent torrents operations. |
qbittorrent_transfer |
TRANSFERTOOL |
Manage qbittorrent transfer operations. |
Verbose 1:1 API-mapped tools (MCP_TOOL_MODE=verbose or both)
87 per-operation tools — one per public API method (click to expand)
| MCP Tool | Toggle Env Var | Description |
|---|---|---|
qbittorrent_add_peers |
APITOOL |
Add peers. |
qbittorrent_add_rss_feed |
APITOOL |
Add RSS feed. |
qbittorrent_add_rss_folder |
APITOOL |
Add RSS folder. |
qbittorrent_add_torrent |
APITOOL |
Add new torrent. |
qbittorrent_add_torrent_tags |
APITOOL |
Add torrent tags. |
qbittorrent_add_trackers |
APITOOL |
Add trackers to torrent. |
qbittorrent_ban_peers |
APITOOL |
Ban peers. 'peers' is a string of peers separated by | (host:port). |
qbittorrent_bottom_priority |
APITOOL |
Minimal torrent priority. |
qbittorrent_create_category |
APITOOL |
Add new category. |
qbittorrent_create_tags |
APITOOL |
Create tags. |
qbittorrent_decrease_priority |
APITOOL |
Decrease torrent priority. |
qbittorrent_delete_tags |
APITOOL |
Delete tags. |
qbittorrent_delete_torrents |
APITOOL |
Delete torrents. |
qbittorrent_edit_category |
APITOOL |
Edit category. |
qbittorrent_edit_tracker |
APITOOL |
Edit tracker. |
qbittorrent_enable_search_plugin |
APITOOL |
Enable/disable search plugin. |
qbittorrent_get_api_version |
APITOOL |
Get API version. |
qbittorrent_get_build_info |
APITOOL |
Get build info. |
qbittorrent_get_categories |
APITOOL |
Get all categories. |
qbittorrent_get_default_save_path |
APITOOL |
Get default save path. |
qbittorrent_get_global_download_limit |
APITOOL |
Get global download limit in bytes/second. |
qbittorrent_get_global_upload_limit |
APITOOL |
Get global upload limit in bytes/second. |
qbittorrent_get_log |
APITOOL |
Get main log. |
qbittorrent_get_main_data |
APITOOL |
Get main data. |
qbittorrent_get_peer_log |
APITOOL |
Get peer log. |
qbittorrent_get_preferences |
APITOOL |
Get application preferences. |
qbittorrent_get_rss_items |
APITOOL |
Get all RSS items. |
qbittorrent_get_rss_matching_articles |
APITOOL |
Get all articles matching a rule. |
qbittorrent_get_rss_rules |
APITOOL |
Get all auto-downloading rules. |
qbittorrent_get_search_plugins |
APITOOL |
Get search plugins. |
qbittorrent_get_speed_limits_mode |
APITOOL |
Get alternative speed limits state (1 if enabled, 0 otherwise). |
qbittorrent_get_tags |
APITOOL |
Get all tags. |
qbittorrent_get_torrent_contents |
APITOOL |
Get torrent contents. |
qbittorrent_get_torrent_download_limit |
APITOOL |
Get torrent download limit. |
qbittorrent_get_torrent_peers_data |
APITOOL |
Get torrent peers data. |
qbittorrent_get_torrent_piece_hashes |
APITOOL |
Get torrent pieces' hashes. |
qbittorrent_get_torrent_piece_states |
APITOOL |
Get torrent pieces' states. |
qbittorrent_get_torrent_properties |
APITOOL |
Get torrent generic properties. |
qbittorrent_get_torrent_trackers |
APITOOL |
Get torrent trackers. |
qbittorrent_get_torrent_upload_limit |
APITOOL |
Get torrent upload limit. |
qbittorrent_get_torrent_webseeds |
APITOOL |
Get torrent web seeds. |
qbittorrent_get_torrents |
APITOOL |
Get torrent list. |
qbittorrent_get_transfer_info |
APITOOL |
Get global transfer info. |
qbittorrent_get_version |
APITOOL |
Get application version. |
qbittorrent_increase_priority |
APITOOL |
Increase torrent priority. |
qbittorrent_install_search_plugin |
APITOOL |
Install search plugin. |
qbittorrent_mark_rss_as_read |
APITOOL |
Mark RSS as read. |
qbittorrent_move_rss_item |
APITOOL |
Move RSS item. |
qbittorrent_pause_torrents |
APITOOL |
Pause (stop) torrents. qBittorrent 5.x renamed the endpoint to torrents/stop. |
qbittorrent_reannounce_torrents |
APITOOL |
Reannounce torrents. |
qbittorrent_recheck_torrents |
APITOOL |
Recheck torrents. |
qbittorrent_refresh_rss_item |
APITOOL |
Refresh RSS item. |
qbittorrent_remove_categories |
APITOOL |
Remove categories. 'categories' is |
qbittorrent_remove_rss_item |
APITOOL |
Remove RSS item. |
qbittorrent_remove_rss_rule |
APITOOL |
Remove auto-downloading rule. |
qbittorrent_remove_torrent_tags |
APITOOL |
Remove torrent tags. |
qbittorrent_remove_trackers |
APITOOL |
Remove trackers. |
qbittorrent_rename_file |
APITOOL |
Rename file. |
qbittorrent_rename_folder |
APITOOL |
Rename folder. |
qbittorrent_rename_rss_rule |
APITOOL |
Rename auto-downloading rule. |
qbittorrent_resume_torrents |
APITOOL |
Resume (start) torrents. qBittorrent 5.x renamed the endpoint to torrents/start. |
qbittorrent_search_delete |
APITOOL |
Delete search. |
qbittorrent_search_results |
APITOOL |
Get search results. |
qbittorrent_search_start |
APITOOL |
Start search. |
qbittorrent_search_status |
APITOOL |
Get search status. |
qbittorrent_search_stop |
APITOOL |
Stop search. |
qbittorrent_set_auto_management |
APITOOL |
Set automatic torrent management. |
qbittorrent_set_file_priority |
APITOOL |
Set file priority. |
qbittorrent_set_force_start |
APITOOL |
Set force start. |
qbittorrent_set_global_download_limit |
APITOOL |
Set global download limit in bytes/second. |
qbittorrent_set_global_upload_limit |
APITOOL |
Set global upload limit in bytes/second. |
qbittorrent_set_preferences |
APITOOL |
Set application preferences. |
qbittorrent_set_rss_rule |
APITOOL |
Set auto-downloading rule. |
qbittorrent_set_super_seeding |
APITOOL |
Set super seeding. |
qbittorrent_set_torrent_category |
APITOOL |
Set torrent category. |
qbittorrent_set_torrent_download_limit |
APITOOL |
Set torrent download limit. |
qbittorrent_set_torrent_location |
APITOOL |
Set torrent location. |
qbittorrent_set_torrent_name |
APITOOL |
Set torrent name. |
qbittorrent_set_torrent_share_limit |
APITOOL |
Set torrent share limit. |
qbittorrent_set_torrent_upload_limit |
APITOOL |
Set torrent upload limit. |
qbittorrent_shutdown_application |
APITOOL |
Shutdown application. |
qbittorrent_toggle_first_last_piece_priority |
APITOOL |
Set first/last piece priority. |
qbittorrent_toggle_sequential_download |
APITOOL |
Toggle sequential download. |
qbittorrent_toggle_speed_limits_mode |
APITOOL |
Toggle alternative speed limits. |
qbittorrent_top_priority |
APITOOL |
Maximal torrent priority. |
qbittorrent_uninstall_search_plugin |
APITOOL |
Uninstall search plugin. |
qbittorrent_update_search_plugins |
APITOOL |
Update search plugins. |
8 action-routed tool(s) · 87 verbose 1:1 tool(s). Each is enabled unless its <DOMAIN>TOOL toggle is set false; MCP_TOOL_MODE selects the surface (intent default — the six verb-tools, granular set loaded on demand · condensed action-routed · verbose 1:1 · both). Auto-generated — do not edit.
Detailed tool schemas, parameter shapes, and validation constraints are preserved in docs/usage.md.
Dynamic Tool Selection & Visibility
This MCP server supports dynamic toolset selection and visibility filtering at runtime. This allows the operator to restrict the set of exposed tools to prevent blowing up the LLM's context window.
The operator can configure tool filtering via multiple input channels:
- CLI Arguments: Pass
--toolsor--toolsets(or their disabled counterparts--disabled-toolsand--disabled-toolsets) during startup. - Environment Variables: Define standard environment variables:
MCP_ENABLED_TOOLS/MCP_DISABLED_TOOLSMCP_ENABLED_TAGS/MCP_DISABLED_TAGS
- HTTP SSE Request Headers: Pass custom headers during transport initialization:
x-mcp-enabled-tools/x-mcp-disabled-toolsx-mcp-enabled-tags/x-mcp-disabled-tags
- HTTP SSE Request Query Parameters: Append query parameters directly to the operator's transport connection URL:
?tools=tool1,tool2?tags=tag1
When query strings or parameters are supplied, an LLM-free Knowledge Graph resolution layer (using DynamicToolOrchestrator) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
MCP Configuration Examples
Install the connector-focused
[mcp]extra. Examples useqbittorrent-agent[mcp]to add FastMCP / FastAPI throughagent-connector-sdk[mcp]; the required Agent Utilities core still carriesepistemic-graph[full]. The[agent-runtime]extra additionally enables model orchestration.
stdio Transport (local IDEs — Cursor, Claude Desktop, VS Code)
{
"mcpServers": {
"qbittorrent-mcp": {
"command": "uvx",
"args": [
"--from",
"qbittorrent-agent[mcp]",
"qbittorrent-mcp"
],
"env": {
"MCP_TOOL_MODE": "intent",
"APPTOOL": "True",
"LOGTOOL": "True",
"RSSTOOL": "True",
"SEARCHTOOL": "True",
"SYNCTOOL": "True",
"TORRENTSTOOL": "True",
"TRANSFERTOOL": "True"
}
}
}
}
Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.
Streamable-HTTP Transport (networked / production)
{
"mcpServers": {
"qbittorrent-mcp": {
"command": "uvx",
"args": [
"--from",
"qbittorrent-agent[mcp]",
"qbittorrent-mcp",
"--transport",
"streamable-http",
"--port",
"8000"
],
"env": {
"TRANSPORT": "streamable-http",
"HOST": "127.0.0.1",
"PORT": "8000",
"MCP_TOOL_MODE": "intent",
"APPTOOL": "True",
"LOGTOOL": "True",
"RSSTOOL": "True",
"SEARCHTOOL": "True",
"SYNCTOOL": "True",
"TORRENTSTOOL": "True",
"TRANSFERTOOL": "True"
}
}
}
}
Alternatively, connect to a pre-deployed Streamable-HTTP instance by url:
{
"mcpServers": {
"qbittorrent-mcp": {
"url": "http://localhost:8000/qbittorrent-mcp/mcp"
}
}
}
Run a reviewed container image as a least-privilege stdio child (no listener or published port):
docker run -i --rm \
--read-only \
--cap-drop=ALL \
--security-opt=no-new-privileges \
--pids-limit=256 \
--tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \
-e TRANSPORT=stdio \
-e MCP_TOOL_MODE=intent \
-e APPTOOL=True \
-e LOGTOOL=True \
-e RSSTOOL=True \
-e SEARCHTOOL=True \
-e SYNCTOOL=True \
-e TORRENTSTOOL=True \
-e TRANSFERTOOL=True \
registry.example.invalid/qbittorrent-agent@sha256:<digest> qbittorrent-mcp
For containerized network HTTP, supply an authenticated TLS ingress (or
direct server TLS), exact MCP_ALLOWED_HOSTS, and an exact trusted-proxy
CIDR policy through the operator-owned deployment profile. The generator
does not emit an unauthenticated non-loopback listener.
Auto-generated from the code-read env surface (MCP_TOOL_MODE + package vars) — do not edit.
Additional Deployment Options
qbittorrent-agent can run as a local stdio process or container, or behind a remote
network boundary. The
Deployment guide has full,
copy-paste mcp_config.json for all four transports — stdio, streamable-http,
local container, and remote URL:
- Local container — launch a reviewed immutable image as a least-privilege
stdio child with no listener or published port (
uvx,docker run, orpodman run), or point at a local streamable-http container byurl. - Remote URL — connect through an operator-supplied authenticated HTTPS
ingress (for example, a server deployed behind Caddy at
http://qbittorrent-mcp.arpa/mcp) using the"url"key. Keep its URL, outbound identity references, trust profile, and exactMCP_ALLOWED_HOSTSinAgentConfig.
Agent
This repository features a fully integrated Pydantic AI Graph Agent. It communicates over the Agent Control Protocol (ACP) and interacts smoothly with the Agent Web UI (AG-UI) and Terminal interface.
Running the Agent CLI
To start the interactive command-line agent:
# Set credentials
export QBITTORRENT_URL="<configured-endpoint>"
export QBITTORRENT_USERNAME="your_value"
export QBITTORRENT_PASSWORD="your_value"
# Run the agent server
qbittorrent-agent --provider openai --model-id gpt-4o
Docker Compose Orchestration
The following docker/agent.compose.yml configures the Agent, Web UI, and Terminal Interface together:
version: '3.8'
services:
qbittorrent-agent-mcp:
init: true
user: "10001:10001"
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: ${AGENT_CONTAINER_MEMORY_LIMIT:-4g}
cpus: ${AGENT_CONTAINER_CPU_LIMIT:-2.0}
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=64m
image: ${QBITTORRENT_AGENT_MCP_IMAGE:?set-QBITTORRENT_AGENT_MCP_IMAGE-to-image@sha256-digest}
container_name: qbittorrent-agent-mcp
hostname: qbittorrent-agent-mcp
restart: always
env_file:
- ../.env
environment:
- PYTHONUNBUFFERED=1
- HOST=0.0.0.0
- PORT=8000
- TRANSPORT=streamable-http
ports:
- "127.0.0.1:8000:8000"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
qbittorrent-agent-agent:
init: true
user: "10001:10001"
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: ${AGENT_CONTAINER_MEMORY_LIMIT:-4g}
cpus: ${AGENT_CONTAINER_CPU_LIMIT:-2.0}
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=64m
image: ${QBITTORRENT_AGENT_AGENT_IMAGE:?set-QBITTORRENT_AGENT_AGENT_IMAGE-to-image@sha256-digest}
container_name: qbittorrent-agent-agent
hostname: qbittorrent-agent-agent
restart: always
depends_on:
- qbittorrent-agent-mcp
env_file:
- ../.env
command: [ "qbittorrent-agent" ]
environment:
- PYTHONUNBUFFERED=1
- HOST=0.0.0.0
- PORT=9004
- MCP_URL=http://qbittorrent-agent-mcp:8000/mcp
- PROVIDER=${PROVIDER:-openai}
- MODEL_ID=${MODEL_ID:-gpt-4o}
- ENABLE_WEB_UI=True
- ENABLE_OTEL=True
ports:
- "127.0.0.1:9004:9004"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9004/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
Detailed graph node architecture explanations, custom skill configurations, and agentic trace guides are available in docs/deployment.md.
Environment Variables
Package environment variables
| Variable | Example | Description |
|---|---|---|
HOST |
0.0.0.0 |
|
PORT |
8000 |
|
TRANSPORT |
stdio |
options: stdio, streamable-http, sse |
ENABLE_OTEL |
True |
|
OTEL_EXPORTER_OTLP_ENDPOINT |
http://localhost:8080/api/public/otel |
|
OTEL_EXPORTER_OTLP_PUBLIC_KEY |
secret-injected | |
OTEL_EXPORTER_OTLP_SECRET_KEY |
secret-injected | |
OTEL_EXPORTER_OTLP_PROTOCOL |
http/protobuf |
|
EUNOMIA_TYPE |
none |
options: none, embedded, remote |
EUNOMIA_POLICY_FILE |
mcp_policies.json |
|
EUNOMIA_REMOTE_URL |
http://eunomia-server:8000 |
|
QBITTORRENT_URL |
— | Unified qBittorrent Web UI base URL. |
QBITTORRENT_USERNAME |
— | |
QBITTORRENT_PASSWORD |
secret-injected | |
QBITTORRENT_TLS_PROFILE |
private-pki |
TLS verification is mandatory (no boolean downgrade). Select a named runtime profile from AgentConfig; falls back to the global TLS_PROFILE if unset. |
TLS_PROFILE |
private-pki |
|
TLS_PROFILES_REF |
secret://runtime/tls-profiles |
|
APPTOOL |
True |
|
LOGTOOL |
True |
|
SYNCTOOL |
True |
|
TRANSFERTOOL |
True |
|
TORRENTSTOOL |
True |
|
RSSTOOL |
True |
|
SEARCHTOOL |
True |
Inherited agent-connector-sdk variables (apply to every connector)
| Variable | Example | Description |
|---|---|---|
MCP_TOOL_MODE |
intent |
Tool surface: intent | condensed | verbose | both |
MCP_ENABLED_TOOLS |
— | Comma-separated tool allow-list |
MCP_DISABLED_TOOLS |
— | Comma-separated tool deny-list |
MCP_ENABLED_TAGS |
— | Comma-separated tag allow-list |
MCP_DISABLED_TAGS |
— | Comma-separated tag deny-list |
MCP_CLIENT_AUTH |
— | Outbound MCP child auth: oidc-client-credentials | basic | none |
OIDC_CLIENT_ID |
— | OIDC client id (service-account auth) |
OIDC_CLIENT_SECRET_REF |
secret://identity/oidc-client-secret |
Runtime secret reference for the OIDC service account |
MCP_BASIC_AUTH_USERNAME |
— | HTTP Basic username (MCP_CLIENT_AUTH=basic) |
MCP_BASIC_AUTH_PASSWORD_REF |
secret://identity/mcp-basic-password |
Runtime secret reference for HTTP Basic auth (MCP_CLIENT_AUTH=basic) |
DEBUG |
False |
Verbose logging |
PYTHONUNBUFFERED |
1 |
Unbuffered stdout (recommended in containers) |
MCP_URL |
http://localhost:8000/mcp |
URL of the MCP server the agent connects to |
PROVIDER |
openai |
LLM provider for the agent |
MODEL_ID |
gpt-4o |
Model id for the agent |
ENABLE_WEB_UI |
True |
Serve the AG-UI web interface |
24 package + 16 inherited variable(s). Auto-generated from .env.example + the shared agent-connector-sdk set — do not edit.
The agent and MCP server can be fully configured using the following environment variables:
| Variable | Type | Default | Description |
|---|---|---|---|
QBITTORRENT_URL |
String | Required | Unified qBittorrent Web UI base URL. |
QBITTORRENT_USERNAME |
String | None |
Username for authentication. |
QBITTORRENT_PASSWORD |
String | None |
Password for authentication. |
TLS_PROFILE |
String | — | Named AgentConfig transport-security profile; verification is mandatory. |
TLS_PROFILES_REF |
Secret reference | — | Runtime reference for the TLS profile catalog. |
APPTOOL |
Boolean | True |
Toggle to enable/disable the App tool module. |
LOGTOOL |
Boolean | True |
Toggle to enable/disable the Log tool module. |
SYNCTOOL |
Boolean | True |
Toggle to enable/disable the Sync tool module. |
TRANSFERTOOL |
Boolean | True |
Toggle to enable/disable the Transfer tool module. |
TORRENTSTOOL |
Boolean | True |
Toggle to enable/disable the Torrents tool module. |
RSSTOOL |
Boolean | True |
Toggle to enable/disable the RSS tool module. |
SEARCHTOOL |
Boolean | True |
Toggle to enable/disable the Search tool module. |
TRANSPORT |
String | stdio |
Server transport protocol (stdio, sse, or streamable-http). |
HOST |
String | 127.0.0.1 |
The network interface/IP to bind the server to. |
PORT |
Integer | 8000 |
The port to run the server on when using HTTP-based transports. |
MCP_TOOL_MODE |
String | condensed |
Tool surface: condensed, verbose, or both. |
MCP_ENABLED_TOOLS / MCP_DISABLED_TOOLS |
String | None |
Comma-separated tool allow/deny list. |
MCP_ENABLED_TAGS / MCP_DISABLED_TAGS |
String | None |
Comma-separated tag allow/deny list. |
DEBUG |
Boolean | False |
Verbose logging. |
PYTHONUNBUFFERED |
Integer | 1 |
Unbuffered stdout (recommended in containers). |
ENABLE_OTEL |
Boolean | True |
Enable OpenTelemetry export. |
OTEL_EXPORTER_OTLP_ENDPOINT |
String | None |
OTLP collector endpoint. |
OTEL_EXPORTER_OTLP_PUBLIC_KEY / OTEL_EXPORTER_OTLP_SECRET_KEY |
String | None |
OTLP auth keys. |
OTEL_EXPORTER_OTLP_PROTOCOL |
String | None |
OTLP protocol (e.g. http/protobuf). |
EUNOMIA_TYPE |
String | none |
Authorization mode: none, embedded, remote. |
EUNOMIA_POLICY_FILE |
String | mcp_policies.json |
Embedded Eunomia policy file. |
EUNOMIA_REMOTE_URL |
String | None |
Remote Eunomia server URL. |
MCP_URL |
String | http://localhost:8000/mcp |
URL of the MCP server the agent connects to (full [agent] runtime only). |
PROVIDER |
String | openai |
LLM provider (full [agent] runtime only). |
MODEL_ID |
String | gpt-4o |
Model id (full [agent] runtime only). |
ENABLE_WEB_UI |
Boolean | True |
Serve the AG-UI web interface (full [agent] runtime only). |
Security & Governance
Built directly upon the enterprise-ready agent-connector-sdk core, standard security parameters are fully supported:
Access Control & Policy Enforcement
- Eunomia Policies: Fine-grained, policy-driven tool authorization. Supports
none, localembedded(mcp_policies.json), or centralizedremotemodes. - OIDC Token Delegation: Compliant with RFC 8693 token exchange for flowing authenticating user credentials from Web UI / ACP → Agent → MCP.
- Scoped Credentials: Execution context runs restricted to the specific caller identity.
Runtime Security Grid
| Feature | Feature | Enablement |
|---|---|---|
| Tool Guard | Sensitivity inspection with human-in-the-loop validation | Enabled by default |
| Prompt Injection Defense | Input scanning, repetition monitoring, and recursive loop blocks | Enabled by default |
| Context Safety Guard | Stuck-loop detectors and contextual overflow preemptive alerts | Enabled by default |
Installation
Pick the extra that matches what the operator want to run:
| Extra | Installs | Use when |
|---|---|---|
qbittorrent-agent[mcp] |
Connector-focused MCP server (agent-connector-sdk[mcp] — FastMCP/FastAPI + epistemic-graph[full]) |
The operator only run the MCP server (smallest install / image) |
qbittorrent-agent[agent] |
Agent runtime (agent-connector-sdk[agent,logfire] — model orchestration + epistemic-graph[full]) |
The operator run the integrated agent |
qbittorrent-agent[all] |
Everything (mcp + agent + logfire) |
Development / both surfaces |
# Connector-focused MCP server (includes the shared graph engine)
uv pip install "qbittorrent-agent[mcp]"
# Agent runtime (adds model orchestration to the shared graph engine)
uv pip install "qbittorrent-agent[agent]"
# Everything (development)
uv pip install "qbittorrent-agent[all]" # or: python -m pip install "qbittorrent-agent[all]"
Container images (:mcp vs :agent)
One multi-stage docker/Dockerfile builds two right-sized images, selected by --target:
| Image tag | Build target | Contents | Entrypoint |
|---|---|---|---|
example/qbittorrent-agent:mcp |
--target mcp |
qbittorrent-agent[mcp] — connector-focused, includes epistemic-graph[full]; no model-orchestration stack |
qbittorrent-mcp |
example/qbittorrent-agent@sha256:<digest> |
--target agent (default) |
qbittorrent-agent[agent] — agent runtime, model orchestration + epistemic-graph[full] |
qbittorrent-agent |
docker build --target mcp -t example/qbittorrent-agent:mcp docker/ # connector-focused MCP server
docker build --target agent -t example/qbittorrent-agent:agent-local docker/ # agent runtime
docker/mcp.compose.yml runs the connector-focused :mcp server; docker/agent.compose.yml runs the
agent (immutable agent digest) with a co-located :mcp sidecar.
Knowledge-graph database (epistemic-graph)
Both [mcp] and [agent] carry the epistemic-graph engine through the required
Agent Utilities core dependency (epistemic-graph[full]). The [mcp] extra keeps
the server connector-focused; [agent] also enables model orchestration. Local
deployments can use the bundled engine. For production or shared state, run
epistemic-graph as a dedicated database service and configure the runtime to use it.
Deployment recipes (single-node + Raft HA), connection configuration, and architecture
diagrams are documented in the
epistemic-graph deployment guide.
Repository Owners
Contribute
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
- Format code using
ruff format . - Lint code using
ruff check . - Validate type-safety with
mypy . - Run test suites using
pytest
Deploy with agent-os-genesis
This package can be provisioned for you — skill-guided — by the agent-os-genesis
universal skill (its single-package deploy mode): it picks your install method, seeds
secrets to OpenBao/Vault (or .env), trusts your enterprise CA, registers the MCP
server, and verifies it — the same machinery that stands up the whole Agent OS, narrowed
to just this package. Ask your agent to "deploy qbittorrent-agent with agent-os-genesis".
| Install mode | Command |
|---|---|
| Bare-metal, prod (PyPI) | uvx qbittorrent-mcp · or uv tool install qbittorrent-agent |
| Bare-metal, dev (editable) | uv pip install -e ".[all]" · or pip install -e ".[all]" |
| Container, prod | deploy the pinned ${QBITTORRENT_AGENT_AGENT_IMAGE} digest (see docker/agent.compose.yml) via docker-compose / podman-compose / kubernetes |
| Container, dev (editable) | deploy docker/compose.dev.yml (source-mounted at /src; edits live on restart) |
Secrets are read-existing + seeded via vault_sync — you are only prompted for what's missing.
Governed capability contract
This package ships a compact canonical skill surface with specialist procedures
kept as referenced workflows. The current MCP tools, skill metadata,
connector_manifest.yml, ontology, mappings, shapes, fixtures, migrations,
tool-schema fingerprints, and certification metadata form one versioned
capability contract. Validate them together; do not rely on stale tool names or
historical per-task skill wrappers.
Runtime endpoints, credentials, certificate trust, tenant identity, retention, and observability policy are deployment inputs and are never packaged values. See Configuration, trust, and privacy before enabling a network transport, connector ingestion, Arbora delegation, or trace export.
Metadata
Release files for qbittorrent-agent 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qbittorrent_agent-2.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / qbittorrent_agent-2.3.0-py3-none-any.whl
| Download URL | qbittorrent_agent-2.3.0-py3-none-any.whl |
|---|---|
| Size | 92.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00329819818d4954eab557ca5dc872a9934a438634cdbd250a4db472d628b29a
|
|
BLAKE2b-256 checksum How to use checksums |
ab190d472958999a3a758ed32cb06a777221c57adf38c3ace2aa453bfd87cb4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|