MCP Agile Flow
Flujo ágil de MCP
Un sistema integral para gestionar flujos de trabajo de desarrollo ágil asistidos por IA con una API moderna basada en recursos utilizando FastMCP.
Estado
✅ Migración completa : La migración del servidor heredado a la implementación de FastMCP se ha completado. Se han eliminado todo el código y las pruebas heredadas.
Related MCP server: AI Pull Request Generator
Descripción general
El proyecto MCP Agile Flow utiliza un enfoque basado en recursos con FastMCP del SDK oficial de MCP, centrándose en:
Diseño de API RESTful : URI de recursos limpios e intuitivos para el acceso a datos
Arquitectura centrada en los recursos : optimizada para la recuperación de datos y la representación del estado
Herramientas orientadas a la acción : herramientas utilizadas únicamente para operaciones que modifican el estado
Características principales
Documentación ágil : genere y mantenga documentación completa de IA
Estructura del proyecto : organice su proyecto con archivos y directorios generados por IA
Integración IDE : Integración directa con varios IDE de IA (Cursor, Windsurf, Cline)
Gestión del flujo de trabajo : seguimiento de historias y progreso ágiles
Estructura de API intuitiva : recursos organizados en una jerarquía RESTful
Integración simplificada : mapeo directo a URI de recursos
Rendimiento mejorado : optimizado para patrones de acceso a datos
Empezando
Para utilizar MCP Agile Flow:
Instalar el paquete:
pip install mcp-agile-flowImporta en tu código:
from mcp_agile_flow import call_tool, call_tool_sync # Use async interface result = await call_tool("get-project-settings", {}) # Or use sync interface result = call_tool_sync("get-project-settings", {})
Configuración del cliente MCP
Importante: Se requiere actualización de configuración
Si ya había configurado MCP Agile Flow, debe actualizar su configuración. El módulo fastmcp_server.py se ha eliminado como parte de la limpieza de código y la funcionalidad se ha consolidado en el paquete principal.
Actualice la configuración de su cliente MCP desde:
{
"name": "mcp-agile-flow",
"server": {
"type": "module",
"module": "mcp_agile_flow.fastmcp_server",
"entry_point": "run"
}
}A:
{
"name": "mcp-agile-flow",
"server": {
"type": "module",
"module": "mcp_agile_flow",
"entry_point": "main"
}
}Para los usuarios de Cursor, actualice también el archivo mcp.json (normalmente en ~/.cursor/mcp.json):
"mcp-agile-flow": {
"command": "/path/to/python",
"args": [
"-m",
"mcp_agile_flow" // Updated from "mcp_agile_flow.fastmcp_server"
],
"autoApprove": [
// ...
]
}Uso de la línea de comandos
También puedes ejecutar el servidor directamente desde la línea de comandos:
# Using Python (logs disabled by default)
python -m mcp_agile_flow
# Enable normal logging
python -m mcp_agile_flow --verbose
# Debug mode (most verbose logging)
python -m mcp_agile_flow --debugHerramientas disponibles
El flujo ágil MCP proporciona varias herramientas:
get-project-settings: obtiene la configuración del proyecto, incluidas las rutas y las variables de entornoinitialize-ide: inicializa la estructura del directorio del proyecto para IDE específicosinitialize-ide-rules: inicializa archivos de reglas de IA para IDE específicosprime-context: analizar la documentación del proyecto y generar comprensión contextualmigrate-mcp-config: migrar la configuración de MCP entre diferentes IDEthink: Registrar un pensamiento para un razonamiento complejo y un análisis paso a pasoget-thoughts: recupera todos los pensamientos registrados en la sesión actualclear-thoughts: borra todos los pensamientos registrados de la sesión actualget-thought-stats: Obtenga estadísticas sobre los pensamientos registrados en la sesión actualprocess-natural-language: Procesar comandos de lenguaje natural y dirigirlos a las herramientas adecuadas
Comandos de lenguaje natural
MCP Agile Flow admite comandos en lenguaje natural, lo que facilita la interacción con las herramientas sin tener que recordar los nombres exactos de los comandos. Simplemente use frases conversacionales y el sistema detectará automáticamente su intención y la asignará a las herramientas adecuadas con los parámetros correctos.
Tipos de comandos admitidos
Comandos de migración
Para migrar la configuración de MCP entre diferentes IDE:
Migrar la configuración de MCP a Claude-desktop
Migrar la configuración de Cursor a Claude-desktop
Copiar la configuración de MCP a Windsurf
"Transferir configuración a cline"
"Mover la configuración de MCP del cursor a la ubicación"
Si no se especifica el IDE de origen, el valor predeterminado es "cursor".
Nota : Los nombres de IDE válidos son: "cursor", "windsurf-next", "windsurf", "cline", "roo" y "claude-desktop".
Comandos de inicialización
Para inicializar un proyecto con reglas para un IDE específico:
"Inicializa el IDE de Claude"
"Reglas de configuración para windsurf"
"crear IDE para cline"
"inicializar reglas para el copiloto"
Comandos de configuración del proyecto
Para obtener configuraciones completas del proyecto:
"obtener la configuración del proyecto"
"mostrar configuración"
"configuración del proyecto"
Comandos de análisis de contexto
Para analizar la documentación del proyecto:
"contexto principal"
"Analizar el contexto del proyecto"
"construir contexto"
Comandos de pensamiento
Para registrar un pensamiento:
"Piensa en [tu pensamiento aquí]"
Ejemplos de uso
A continuación se muestran algunos ejemplos de cómo utilizar estos comandos:
from mcp_agile_flow import process_natural_language
# Migrate configuration from Cursor to Claude
result = process_natural_language("migrate mcp config to claude-desktop")
# Initialize rules for Windsurf
result = process_natural_language("initialize ide for windsurf")
# Get project settings
result = process_natural_language("get project settings")
# Prime the context
result = process_natural_language("prime context")
# Record a thought
result = process_natural_language("think about how to improve code quality")Uso desde la línea de comandos
También puede utilizar comandos de lenguaje natural con la CLI de MCP Agile Flow:
python -m mcp_agile_flow process-natural-language "migrate mcp config to claude-desktop"Manejo de errores
Si el sistema no puede reconocer un comando, devolverá un mensaje de error explicando que no se detectó ningún comando y sugiriendo utilizar una redacción más específica.
Extendiendo comandos
La detección de comandos en lenguaje natural se implementa en utils.py mediante expresiones regulares. Para añadir compatibilidad con nuevos patrones de comando, añada los patrones de expresiones regulares adecuados a la función detect_mcp_command .
Desarrollo
Para prepararse para el desarrollo:
Clonar el repositorio:
git clone https://github.com/yourusername/mcp-agile-flow.git cd mcp-agile-flowCrear un entorno virtual:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activateInstalar dependencias de desarrollo:
pip install -e ".[dev]"Ejecutar pruebas:
pytestComandos Makefile comunes:
make test # Run all tests make test-nl-commands # Test natural language command functionality make test-core # Run core tests only make coverage # Generate coverage report make clean # Clean build artifacts make clean-all # Clean everything including venv make clean-archived # Remove archived legacy files
Licencia
Este proyecto está licenciado bajo la licencia MIT - Consulte el archivo de LICENCIA para obtener más detalles.
Available Tools
13 toolsclear_thoughtsA
Clear recorded thoughts.
This tool removes previously recorded thoughts, optionally filtered by category. If no category is specified, all thoughts will be cleared.
Inputs: category.
detect_thinking_directiveB
Detect thinking directives.
This tool analyzes text to detect directives suggesting deeper thinking, such as "think harder", "think deeper", "think again", etc.
Inputs: text (required).
get_project_settingsB
Get the project settings for the current working directory or a proposed path.
Returns configuration settings including project path, type, and metadata.
If proposed_path is not provided or invalid, uses the current directory.
Inputs: proposed_path.
get_thoughtsB
Retrieve recorded thoughts.
This tool retrieves all previously recorded thoughts, optionally filtered by category. You can also choose to organize them hierarchically by depth.
Inputs: category, organize_by_depth.
get_thought_statsB
Get statistics about recorded thoughts.
This tool provides statistics about recorded thoughts, such as count and depth distribution. Results can be filtered by category.
Inputs: category.
initialize_ideB
Initialize IDE project structure with appropriate directories and config files.
This tool sets up the necessary directories and configuration files for IDE
integration, including .ai-templates directory and IDE-specific rules.
Note: If project_path is omitted, not a string, invalid, or the directory doesn't exist,
the current working directory will be used automatically.
Inputs: ide_type, project_path.
initialize_ide_rulesB
Initialize IDE rules for a project.
This tool sets up IDE-specific rules for a project, creating the necessary
files and directories for AI assistants to understand project conventions.
Note: If project_path is omitted, not a string, or invalid, the current working
directory will be used automatically.
Inputs: ide, project_path.
migrate_mcp_configB
Migrate MCP configuration between different IDEs.
This tool helps migrate configuration and rules between different IDEs,
ensuring consistent AI assistance across different environments.
Note: If project_path is omitted, not a string, or invalid, the current working
directory will be used automatically.
Inputs: from_ide, project_path, to_ide.
prime_contextB
Prime project context by analyzing documentation and structure.
This tool analyzes the project structure and documentation to provide
context information for AI assistants working with the project.
Note: If project_path is omitted, not a string, or invalid, the current working
directory will be used automatically.
Inputs: depth, project_path.
process_natural_languageA
Process natural language command and route to appropriate tool.
This tool takes a natural language query and determines which tool to call with what parameters, providing a way to interact with the MCP Agile Flow tools using natural language.
Inputs: query (required).
should_thinkC
Assess whether deeper thinking is needed for a query.
This tool analyzes a query to determine if it requires deeper thinking, based on complexity indicators and context.
Inputs: query (required).
thinkC
Record a thought for later reference and analysis.
This tool allows you to record thoughts during development or analysis processes. Thoughts can be organized by category and depth to create a hierarchical structure of analysis.
Inputs: thought (required), category, depth, metadata, +2 more.
think_moreC
Get guidance for thinking more deeply.
This tool provides suggestions and guidance for thinking more deeply about a specific query or thought.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The tools have some clear distinctions but significant overlap exists. Tools like think, think_more, should_think, and detect_thinking_directive all relate to thinking processes with unclear boundaries. Similarly, initialize_ide and initialize_ide_rules appear to serve very similar purposes. The descriptions help differentiate them somewhat, but an agent could easily misselect between these overlapping tools.
The naming follows a consistent snake_case pattern throughout, which is good. Most tools use verb_noun or verb_adjective_noun patterns (e.g., clear_thoughts, get_project_settings). The main deviation is process_natural_language which uses a verb_adjective_noun pattern that still fits the overall style, keeping the naming mostly predictable and readable.
With 13 tools, the count is reasonable for a server focused on agile development workflows and thinking assistance. It's slightly on the higher side but still manageable. The tools cover multiple aspects of the domain without feeling excessively bloated, though some consolidation might improve coherence.
The server covers thinking processes and IDE/project setup reasonably well, but there are notable gaps. For thinking workflows, there's good recording and analysis but limited action-oriented tools. For project management, there are initialization tools but no ongoing management, update, or collaboration features. The natural language processing tool provides routing but doesn't complete the surface for a comprehensive agile flow system.
Related MCP Connectors
Work management where AI agents are first-class members: tasks, projects, memory over hosted MCP
Project management shared by people and AI agents, with persistent project state through MCP.
MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA FastAPI-based implementation of the Model Context Protocol that enables standardized interaction between AI models and development environments, making it easier for developers to integrate and manage AI tasks.10MIT
- FlicenseNot gradedqualityDmaintenanceAn AI-powered FastMCP server tool that automates the process of planning tasks, generating code, and creating GitHub pull requests.-
- AlicenseAqualityDmaintenanceA MCP server that enables human-in-the-loop workflow in AI-assisted development tools by allowing users to run commands, view their output, and provide textual feedback directly to the AI assistant.11,703MIT
- FlicenseBqualityDmaintenanceMCP server that enables human-in-the-loop workflow in AI-assisted development tools by allowing users to provide direct feedback to AI agents without consuming additional premium requests.11-