mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Every MCP tool is now one /api/ai call with minimal text rendering;
the formatting, link building, and truncation logic it used to carry
untested lives (tested) in modules/ai. Tool names are unchanged for
external clients; a source-scan test guards the names and that the
proxy only reaches /api/ai. New lean blueprint endpoints back the two
tools that had no equivalent: GET archives/{id} (detail + snapshot
history) and GET videos/{id}/comments (paged author lines). Paged
content is read up to the old 50k-char bound. get_inventory_items now
takes the inventory slug (inventories are config-only; the old
numeric-id endpoint no longer exists). This also brings wrolpi_mcp
into version control (venv/ is already gitignored).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
11 lines
427 B
Python
11 lines
427 B
Python
"""Configuration for the WROLPi MCP server."""
|
|
import os
|
|
|
|
# WROLPi API base URL. Override with WROLPI_API_URL environment variable.
|
|
API_BASE_URL = os.environ.get("WROLPI_API_URL", "https://localhost:8443")
|
|
|
|
# Whether to verify TLS certificates (WROLPi uses self-signed certs locally).
|
|
VERIFY_TLS = os.environ.get("WROLPI_VERIFY_TLS", "false").lower() in ("true", "1", "yes")
|
|
|
|
# Default search result limit.
|
|
DEFAULT_LIMIT = 10
|