mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Thirteen of sixteen MCP sidecar entries carried no enabled at all, so
collect_role_resources fell back to _looks_like_container and billed every
one of them as running. Three roles already gated theirs on mcp.enabled;
the rest now do the same, gitea twice because it is the only role with a
vendor container behind the adapter.
The fifteen adapter roles then read services.<key>.enabled instead of
mcp.enabled, so the compose block and the task gates follow the services
entry rather than running beside it on a second path. The six plugin and
native roles keep reading the topic: they ship no sidecar entry to point at.
The three-level resolution is not new. KEYCLOAK_LOGOUT_PANEL_ENABLED has
the same shape and depth and gates a task the same way, and the same value
reaches JAVASCRIPT_SERVICE_ENABLED, where service-gating.js throws on
anything but "true" or "false" — an unresolved chain would have been
killing keycloak's Playwright run since 575a5a87ac.
This does not change what the resource model counts: _is_enabled reads the
unrendered Jinja and still treats it as on. What it buys is one switch
instead of two, and a declaration that matches it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
28 lines
1.9 KiB
YAML
28 lines
1.9 KiB
YAML
---
|
|
application_id: web-svc-libretranslate # ID of the application
|
|
|
|
entity_name: "{{ application_id | get_entity_name }}"
|
|
|
|
LIBRETRANSLATE_SERVICE: "{{ entity_name }}"
|
|
LIBRETRANSLATE_IMAGE: "{{ lookup('config', application_id, 'services.libretranslate.image') }}"
|
|
LIBRETRANSLATE_VERSION: "{{ lookup('config', application_id, 'services.libretranslate.version') }}"
|
|
LIBRETRANSLATE_LOAD_ONLY: "{{ lookup('config', application_id, 'services.libretranslate.load_only') | join(',') }}"
|
|
LIBRETRANSLATE_MCP_ENABLED: "{{ lookup('config', application_id, 'services.libretranslatemcp.enabled') | bool }}"
|
|
LIBRETRANSLATE_MCP_SERVICE_KEY: "libretranslatemcp"
|
|
LIBRETRANSLATE_MCP_CONTAINER: "{{ lookup('config', application_id, 'services.libretranslatemcp.name') }}"
|
|
LIBRETRANSLATE_MCP_PORT: "{{ lookup('config', application_id, 'services.libretranslatemcp.ports.internal.http') }}"
|
|
LIBRETRANSLATE_MCP_BEARER: "{{ lookup('config', application_id, 'secrets.credentials.mcp_bearer') }}"
|
|
LIBRETRANSLATE_MCP_INSTANCE_DIR: "{{ [lookup('container', application_id, 'directories.instance'), 'mcp'] | path_join }}"
|
|
LIBRETRANSLATE_MCP_UPSTREAM_HOST: "{{ entity_name }}"
|
|
LIBRETRANSLATE_MCP_UPSTREAM_PORT: "{{ lookup('config', application_id, 'services.libretranslate.ports.internal.http') }}"
|
|
LIBRETRANSLATE_MCP_UPSTREAM_URL: "http://{{ LIBRETRANSLATE_MCP_UPSTREAM_HOST }}:{{ LIBRETRANSLATE_MCP_UPSTREAM_PORT }}"
|
|
LIBRETRANSLATE_MCP_CONTRACT:
|
|
provider: "{{ application_id }}"
|
|
upstream_url: "{{ LIBRETRANSLATE_MCP_UPSTREAM_URL }}"
|
|
auth_subject: "{{ lookup('config', application_id, 'mcp.auth_subject') }}"
|
|
mutating_tools_enabled: "{{ lookup('config', application_id, 'mcp.tools.mutating_tools_enabled') | bool }}"
|
|
tools: "{{ lookup('file', 'mcp/tools.json') | from_json }}"
|
|
limits: "{{ lookup('config', application_id, 'mcp.limits') }}"
|
|
schema_sha256: "{{ lookup('config', application_id, 'mcp.tools.schema_sha256') }}"
|
|
LIBRETRANSLATE_MCP_UPSTREAM_KEY: ""
|