wyoloservice2_mcp
This MCP server lets an AI agent manage NeuralForgeAI YOLO training cluster operations through natural-language tool calls.
Save cluster IP and Samba CIFS credentials locally.
Check overall cluster health, active workers, and task queue status.
Retrieve detailed training study telemetry, including progress, active invoker, and trial metrics.
Cancel a running training study and stop its trials/executor containers.
Generate a NeuralForgeAI training YAML configuration file for review.
Submit a generated YAML file to launch training on the cluster.
Check whether a dataset path exists on a remote Samba share via Docker.
Validate remote YOLO dataset structure for detect, segment, or classify tasks.
Allows AI agents to inspect and control YOLO training studies in a Train Service 2 / NeuralForgeAI cluster, including launching, canceling, and monitoring training jobs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wyoloservice2_mcp check the cluster status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 NeuralForgeAI MCP Server (wyoloservice-mcp)
An advanced, state-of-the-art Model Context Protocol (MCP) server that empowers AI agents to seamlessly interact with the NeuralForgeAI YOLO training cluster, remote Samba datasets, and distributed worker nodes. Designed and architected by William Rodriguez (Wisrovi), this MCP bridges the gap between Large Language Models and complex, remote MLOps infrastructure.
🛠️ Key Technologies and Libraries
The wyoloservice-mcp server is built on a modern asynchronous Python architecture utilizing the following key technologies and corporate libraries:
FastMCP / Model Context Protocol (v1.30+): Implements the official MCP standard protocol for exposing tools, prompts, and resources over stdio to LLM agents (Claude Desktop, Google Antigravity, OpenAI).
HTTPX & AnyIO: High-performance asynchronous HTTP client used for concurrent queries to the Kubernetes Cluster Admin API and distributed Celery worker endpoints.
Pydantic v2: Robust type validation and schema generation for MCP tool parameters and training configurations.
MLflow Client: Direct tracking and artifact inspection for experiments, models, and post-training explainability metrics.
PyYAML: Safe parsing and serializing of complex YOLO and Optuna Sweeper v2 training descriptors.
psutil: Cross-platform system and process resource monitoring.
Related MCP server: colab-autopilot
📖 Table of Contents
🌟 Introduction
In modern AI workflows, training YOLO models across a distributed cluster requires interacting with remote storage (CIFS/Samba), scheduling hyperparameter sweeps, and monitoring GPU instances. Typically, these tasks are manual and prone to human error.
The wyoloservice-mcp allows any LLM (like Claude, Gemini via Antigravity, or OpenAI) to act on your behalf inside the NeuralForge ecosystem. By defining standard tools via the MCP protocol, the AI can validate datasets remotely, construct complex YAML configuration files, launch training trials, and report back on convergence metrics—all through natural language.
🎯 Why Use This MCP?
Zero-Friction Orchestration: Stop writing
curlcommands or memorizing YAML schemas. Tell your agent: "Launch a detection training for project Alpha" and watch it happen.Embedded Intelligence: The MCP server doesn't just expose APIs; it injects strict workflow instructions into the LLM's prompt. It teaches the AI how to use the tools effectively.
Remote Execution: Bypasses local filesystem constraints by spinning up ephemeral Docker containers (
worker_executor) to validate data residing deep inside corporate Samba shares.Fully Traceable: The AI automatically modifies your local configuration files to inject return values (like
study_id), ensuring you never lose track of a running cluster job.
✨ Core Features
Stateful Credential Management: Securely stores and manages API and CIFS credentials locally (
~/.wyolo_mcp_config.json). The agent will ask for your credentials once and remember them across sessions.Remote Dataset Validation: Instead of downloading terabytes of images to your local machine, the MCP triggers a validation container inside the cluster that mounts the CIFS share directly, verifying YOLO structures (labels, directories,
yamlfiles) at the source.Comprehensive Cluster Monitoring: Fetches real-time telemetry from multiple endpoints (
/health,/workers, and/tasks) in a single parallelized HTTP call, giving the AI a holistic view of GPU availability and Celery queues.Sweeper YAML Generation (v2): Autogenerates NeuralForge "Sweeper v2" configuration files locally for user review. It intelligently discovers dataset classes and uses
getpass/socketto inject proper metadata and author tracing.1-Click Training Launch & Tracking: Submits configurations to the NeuralForge API and, upon success, automatically rewrites the local YAML file to include the assigned
study_id.
⚙️ Installation Guide
The package is officially published on PyPI. You can install it globally or inside a virtual environment.
From PyPI (Recommended)
pip install wyoloservice-mcpFrom Source (Development)
git clone https://github.com/wisrovi/wyoloservice2_mcp.git
cd wyoloservice2_mcp
pip install -e .Installation automatically exposes the global binary wyolo-mcp, which acts as the stdio server for the MCP protocol.
🔌 Connecting to AI Assistants
To give your AI access to these tools, you must register the wyolo-mcp binary in your client's configuration file.
For Antigravity (Gemini)
Edit your ~/.gemini/config/mcp.json:
{
"mcpServers": {
"neuralforge-mcp": {
"command": "</paht/to/environment>",
"env": {
"NEURALFORGE_API_URL": "http://<control_host_ip>:23442"
}
}
}
}For Claude Desktop
Edit your claude_desktop_config.json:
{
"mcpServers": {
"neuralforge-mcp": {
"command": "wyolo-mcp"
}
}
}For Opencode
Edit your ~/.config/opencode/opencode.jsonc:
{
"mcpServers": {
"neuralforge-mcp": {
"command": "wyolo-mcp"
}
}
}For Cursor IDE
Navigate to Cursor Settings > Features > MCP and add a new server using the command wyolo-mcp.
🛠️ Available Tools (Agent Capabilities)
When connected, the AI automatically gains access to an extensive 15-tool enterprise MLOps toolkit:
set_cluster_credentials(ip, cifs_user, cifs_pass)Saves cluster IP and Samba CIFS credentials securely to the local configuration file.
get_cluster_status()Aggregates
/health,/workers, and/tasksinto a unified diagnostic telemetry report with IP resolution and logging commands.
check_dataset_path(dataset_path)Performs a rapid remote existence and permission check on the remote Samba share via Docker.
validate_dataset_advanced(dataset_path, task)Deeply inspects the remote dataset structure, extracting classes, image counts, label bounding boxes, and directory integrity.
generate_training_yaml(config, output_dir)Generates strict NeuralForge Sweeper v2 YAML descriptors. Full support for YOLO26 architectures, multi-task targets (
detect,segment,classify,obb,pose), Optuna samplers (tpe,cmaes), and post-training XAI toggles.
launch_training(yaml_path)Submits the training job to the cluster and automatically writes back the assigned
study_idinto the local YAML file.
get_study_details(study_id)Fetches live Optuna trial progress, trial loss/mAP curves, active invokers, and execution status.
cancel_study(study_id)Gracefully terminates a running study and its active worker containers across the cluster.
manage_invoker_queues(worker_ip, action, mode, hours)Remotely pauses (temporarily until a specified time or perpetually) or resumes queue consumption on a specific GPU invoker.
recommend_training_node(min_vram_gb, batch_size)Queries the Kubernetes Cluster Admin API to recommend the optimal worker node based on GPU VRAM headroom, thermal load, and queue saturation.
estimate_study_duration(dataset_path, epochs, model)Projects expected training completion time in hours and minutes using historical cluster throughput benchmarks.
preflight_check_node(worker_ip, dataset_yaml)Validates node registration, CIFS storage reachability, and YAML configuration before job dispatch.
get_study_xai_metrics(study_id)Retrieves Explainable AI metrics from MLflow, including Deletion AUC fidelity scores, adversarial degradation (FGSM/PGD), and uncertainty quantification.
get_study_heatmaps_summary(study_id, top_n)Lists generated visual attention heatmaps (Eigen-CAM / Grad-CAM) from
extras/model_focus/with direct download URLs.
download_study_artifact(study_id, artifact_type, trial_id, output_path)Surgically retrieves specific assets (
best_weights,llm_report,xai_heatmaps, orlatex_tables) without downloading massive multi-gigabyte ZIP archives.
download_mlflow_study_artifacts(study_id)Downloads and packages all trials and checkpoints into a single consolidated archive.
🧠 Agentic Workflows & Examples
This MCP is embedded with "Agentic Prompting." This means the tool docstrings actively instruct the AI on how to behave. Here are some natural language prompts you can use with your AI:
Example 1: The Initial Setup
User: "I need to configure my NeuralForge cluster. The IP is 192.168.10.252, user is wisrovi, password is wyoloservice." AI: (Calls
set_cluster_credentials) "Credentials saved successfully! Your agent is now linked to the cluster."
Example 2: One-Shot Training
User: "Launch a classification training for the 'medical' project using the dataset
/datasets/AIDIAGNOST/classification/ages_classification/. Use 150 epochs, 3 trials, and YOLOv8s-cls." AI: (Callsvalidate_dataset_advancedto discover classes, thengenerate_training_yamlto build the sweeper config, and finallylaunch_trainingto submit it. It then updates the local YAML with the study_id). "Training launched! The study ID has been injected into your local YAML file."
Example 3: The "Magic" Status Check
User: "How is my training going?" AI: (Reads internal tool instruction: DO NOT ASK FOR ID. Scans local directory, finds the YAML file, reads the
study_idinside it, and callsget_study_details). "Your study 'medical_ages_classification' is currently on trial 2 of 3, achieving a top-1 accuracy of 94%."
🏗️ Architecture & Design
wyoloservice-mcp is built using the FastMCP framework. It utilizes httpx for asynchronous parallel requests to the NeuralForge API, preventing UI freezing on the agent's end.
For remote dataset validation, it employs the subprocess module to orchestrate docker run commands dynamically. By mounting the Samba CIFS network at runtime inside a lightweight wisrovi/train_service container, it entirely decouples the AI's local host constraints from the massive storage requirements of the training ecosystem.
Example to use
send a new train
get status over a train started
📜 Changelog & Version History
Version 0.4.3 (Current Release) - 2026-07-31
Broadcast Docker Pull: Added
trigger_broadcast_docker_pulltool to send Celery broadcast remote control signals to all active nodes, forcing them to execute adocker pullon the specified image for immediate updates.
Version 0.4.2 - 2026-07-31
Study Name Grouping: Removed the timestamp suffix from the Optuna/MLflow
study_nameinlaunch_private_test_trainingto allow runs targeting the same task type and IP to be grouped together under a single MLflow experiment.
Version 0.4.1 - 2026-07-31
Enriched Cluster Telemetry: Upgraded the
get_cluster_statustool to automatically resolve the physical IP address of workers executing active GPU training tasks and generate exactdocker logsand persistent loggingsshcommands.Launch Private Test Training: Added a fully self-contained
launch_private_test_trainingtool to launch a base test training study (supporting 'detection', 'classification', or 'segmentation') targeted directly to a specific worker IP using forced private routing parameters.
Version 0.4.0 - 2026-07-29
Invoker Queue Management: Added
manage_invoker_queuestool to remotely pause (temporal/perpetual) or resume public queue consumption on any specific invoker node by setting persistent states in Redis and sending instant Celery signals.
Version 0.3.0 - 2026-07-03
Optuna cancellation tool integration: Added
cancel_study(study_id)tool mapping the/study/{study_id}/cancelFastAPI endpoint.Prompt instructions tuning: Enhanced tools docstrings with explicit agent guidelines to automatically search the active directory for
.yamlfiles containing astudy_idbefore querying metrics.
Version 0.2.0 - 2026-05-20
Asynchronous parallel status checks: Implemented
get_cluster_status()grouping parallel API requests.Remote dataset validation: Integrated docker subprocess calls to execute validations on local hosts.
Version 0.1.0 (Initial Release) - 2026-02-28
FastMCP stdio server exposing credential config and base studies retrieval tools.
📝 License
This project is open-sourced under the MIT License.
Author: William Rodriguez (Wisrovi) AI Leader & Solutions Architect
Licensing and Usage
This project uses a PolyForm Noncommercial License model:
Community/Research: Licensed under the PolyForm Noncommercial. See LICENSE.
Commercial: Requires a commercial license. See COMMERCIAL.md for details.
Academic Research
If you use this project in academic research, you are required to cite this repository using the provided CITATION.cff and notify the author with a link to your publication.
Changelog
v0.5.1 (2026-11-03): Added vision style injection in
generate_training_yamlmatching task types for downstream Optuna fitness auto-mapping.v0.5.0 (2026-11-03): Added K8s cluster admin inspection tools (
recommend_training_node,estimate_study_duration,preflight_check_node), XAI metrics inspection tools, and surgical artifact downloading.v0.4.5 (2026-10-26): Added optional
timeparameter support toTrainingConfigandgenerate_training_yamltool for time-bounded YOLO training with auto-scaled timeouts.Bumped version due to License update to PolyForm Noncommercial and Dual Licensing model.
👤 Autor & Afiliación Oficial
William Steve Rodriguez Villamizar (Wisrovi)
Cargo: Principal AI Engineer & Applied AI Solutions Architect | Scientific Researcher
📧 Email: wisrovi.rodriguez@gmail.com
🌐 Portal Oficial: wisrovi.dev
💼 LinkedIn: wisrovi-rodriguez
🆔 ORCID: 0009-0005-0710-1861
📦 PyPI: pypi.org/user/wisrovi/
🐙 GitHub: @wisrovi
Available Tools
8 toolscancel_studyA
Cancel a running training study by its ID. This will stop the active trials and terminate the executor containers.
Inputs: study_id (required). Returns: result
check_dataset_pathB
Verify if a dataset path exists on the remote Samba share by spinning up a lightweight Docker container.
Inputs: path (required). Returns: result
generate_training_yamlA
Generate a NeuralForgeAI training YAML configuration file and save it to disk. This allows the user to inspect the file before launching the training. Returns the absolute path to the generated YAML file.
Inputs: config (required), output_dir. Returns: result
get_cluster_statusA
Get the overall status of the NeuralForgeAI cluster, including health metrics, active celery workers (invokers), and the current tasks queue.
Inputs: no named parameters. Returns: result
get_study_detailsA
Get detailed telemetry and status of a specific YOLO training study. Returns progress, active invoker, and current trial metrics.
IMPORTANT WORKFLOW FOR AGENTS: When the user asks 'how is my training going?' (or similar) without providing a study_id:
DO NOT ask the user for the study_id immediately.
First, search the current working directory for
.yamlfiles.Read the discovered
.yamlfiles to check if they contain astudy_idfield.If you find a
study_idinside a YAML file, automatically use this tool with that ID to check its status.Only ask the user for the ID or file path if you cannot find any
.yamlfiles with astudy_idin the current directory.
Inputs: study_id (required). Returns: result
launch_trainingA
Submit a locally saved YOLO training YAML configuration to the NeuralForgeAI cluster.
Use this after the user has reviewed and approved the YAML file generated by generate_training_yaml.
Inputs: yaml_path (required). Returns: result
set_cluster_credentialsA
Save the cluster IP and Samba CIFS credentials to a local configuration file. The agent should call this tool when the user provides the cluster IP and credentials.
Inputs: ip (required), cifs_pass (required), cifs_user (required). Returns: result
validate_dataset_advancedB
Validates a YOLO dataset structure by running an inspection script inside a Docker container connected to the remote CIFS share. Supports detect/segment (yaml) and classify (directory).
Inputs: dataset_path (required), task. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose: canceling, checking paths, generating YAML, cluster status, study details, launching, credentials, and dataset validation. No overlapping functionality.
All tools use snake_case with a consistent verb_noun pattern (e.g., cancel_study, generate_training_yaml). There are no naming convention conflicts.
8 tools is appropriate for the server's scope—covering credential setup, dataset validation, YAML generation, training launch, monitoring, and cancellation. No unnecessary tools.
The toolset covers the core training lifecycle, but lacks a tool to list existing studies or modify credentials after setup. The workflow instructs agents to find study IDs from local YAML files, which is a reasonable workaround.
Maintenance
Related MCP Connectors
On-demand GPU nodes for agents: create nodes, run commands, and submit jobs, billed by the minute.
Connect AI agents to Turbine Studio for strategies, backtests, research, and trading activity.
Connect AI agents to the Totem network for communication and work coordination.
Create, watch, pay for and connect hosted AI agent pods on AgentsPodium. Needs an API key.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage SLURM cluster jobs with safety guardrails, including file transfer, job submission, log reading, and remote command execution.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to autonomously manage Google Colab GPU sessions, submit and monitor training jobs, and debug/fix issues via an encrypted tunnel without requiring a browser tab.MIT
- FlicenseNot gradedqualityBmaintenanceEnables LLMs to manage and run machine learning training jobs on a remote server, including syncing code, submitting experiments, monitoring progress, reading TensorBoard metrics, and receiving completion notifications.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage GPU training end-to-end through natural language, including submitting and scheduling jobs, monitoring logs and metrics, diagnosing failures, comparing runs, and recommending the best checkpoints.Apache 2.0