Add read-only txAdmin status and resource list tools
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start in mcp-server/tools/txadmin_client.py (TxAdminClient.request) and mcp-server/tools/txadmin.py, where txadmin_resource_control only renders txAdmin's toast. Confirm which panel endpoints return server status and resource states, then add read-only tools registered in mcp-server/server.py. Done means both tools return state without side effects and are covered by tests against a fake local panel, with endpoints documented in skills/txadmin-integration/SKILL.md.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Every txAdmin tool except player search is a write action, and none can report state afterwards. Add read-only tools for server status and the resource list so the agent can confirm that a restart or ensure actually worked.
Where
mcp-server/tools/txadmin.py:39-60(txadmin_server_control)mcp-server/tools/txadmin.py:63-90(txadmin_resource_control, fallback "command sent")mcp-server/tools/txadmin_client.py:156-166(TxAdminClient.request)mcp-server/server.py:139-200(txAdmin tool registrations)
Details
txadmin_resource_control POSTs /fxserver/commands and renders only txAdmin's toast, falling back to Resource '<name>' <action> command sent.. Nothing reports whether the server is online, starting or crashed, which resources are started, or whether a resource failed with a script error.
Impact
After "restart my resource", the agent cannot tell whether the resource came up, which is the core of the edit, restart, verify loop the txAdmin integration exists for.
Suggested fix
- Add
txadmin_status_tool(server status and uptime) andtxadmin_resource_list_tool(filter)returning resource names and states, using txAdmin's existing panel endpoints. Open question: confirm which endpoints and payloads are stable across txAdmin versions. - Optionally let
txadmin_resource_controlpoll the resource state after the command and report "started" or "failed". - Mark both new tools as read-only for MCP clients.
Acceptance criteria
- The agent can query server status and the resource list without side effects.
- Endpoint choices are documented in
skills/txadmin-integration/SKILL.md, including the txAdmin versions tested. - New tools have tests against a fake local panel.
Getting started
- Relevant files:
mcp-server/tools/txadmin.py,mcp-server/tools/txadmin_client.py,mcp-server/server.py - How to run checks: there is no test suite yet; run the MCP server with
cd mcp-server && pip install -r requirements.txt && python server.py, and CI checks live in.github/workflows/validate.yml - Related docs:
skills/txadmin-integration/SKILL.md,docs/ROADMAP.md(Milestone 4)
Filed by repo-audit/full-audit at 701824d. Severity: medium. Effort: S. audit-key: enhancement|mcp-server/tools/txadmin.py|txadmin_status
- Lenguaje dominante
- Python
- Estrellas
- 7
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/CFX-Developer-Tools
-
help wanted severity: low tech-debt
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
TMHSDigital/CFX-Developer-Tools#79 ·
Los mantenedores suelen responder en 1 día
-
enhancement help wanted severity: low
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
TMHSDigital/CFX-Developer-Tools#68 ·
Los mantenedores suelen responder en 1 día
-
help wanted severity: low tech-debt
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
TMHSDigital/CFX-Developer-Tools#66 ·
Los mantenedores suelen responder en 1 día
-
dependencies severity: low
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
TMHSDigital/CFX-Developer-Tools#62 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement severity: medium
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
TMHSDigital/CFX-Developer-Tools#58 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/CFX-Developer-Tools
Issues similares
-
A new VOLTTRON_HOME starts with agent isolation mode on (string comparison of a boolean default)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
llm translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FAIRmat-NFDI/sand#239 ·
Los mantenedores suelen responder en 1 día
-
bug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
coco-research/coco#539 ·
Los mantenedores suelen responder en 1 día
-
dependencies
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
JustBeanie/hass-volcano-hybrid#34 ·
Los mantenedores suelen responder en 1 día