MCP Agile Flow

MCP Agile Flow

A comprehensive system for managing AI-assisted agile development workflows with a modern, resource-based API using FastMCP.

Category
Visit Server

Tools

get_project_settings

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.

think

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.

get_thoughts

Retrieve recorded thoughts. This tool retrieves all previously recorded thoughts, optionally filtered by category. You can also choose to organize them hierarchically by depth.

clear_thoughts

Clear recorded thoughts. This tool removes previously recorded thoughts, optionally filtered by category. If no category is specified, all thoughts will be cleared.

get_thought_stats

Get statistics about recorded thoughts. This tool provides statistics about recorded thoughts, such as count and depth distribution. Results can be filtered by category.

detect_thinking_directive

Detect thinking directives. This tool analyzes text to detect directives suggesting deeper thinking, such as "think harder", "think deeper", "think again", etc.

should_think

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.

think_more

Get guidance for thinking more deeply. This tool provides suggestions and guidance for thinking more deeply about a specific query or thought.

initialize_ide

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.

initialize_ide_rules

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.

prime_context

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.

migrate_mcp_config

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.

process_natural_language

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.

README

MCP Agile Flow

Coverage

A comprehensive system for managing AI-assisted agile development workflows with a modern, resource-based API using FastMCP.

Status

Migration Complete: The migration from legacy server to FastMCP implementation is fully complete. All legacy code and tests have been removed.

Overview

The MCP Agile Flow project uses a resource-based approach with FastMCP from the official MCP SDK, focusing on:

  • RESTful API Design - Clean, intuitive resource URIs for data access
  • Resource-First Architecture - Optimized for data retrieval and state representation
  • Action-Oriented Tools - Tools used only for operations that modify state

Key Features

  • Agile Documentation: Generate and maintain comprehensive AI documentation
  • Project Structure: Organize your project with AI-generated files and directories
  • IDE Integration: Direct integration with various AI IDEs (Cursor, Windsurf, Cline)
  • Workflow Management: Track agile stories and progress
  • Intuitive API Structure: Resources organized in a RESTful hierarchy
  • Simplified Integration: Direct mapping to resource URIs
  • Improved Performance: Optimized for data access patterns

Getting Started

To use MCP Agile Flow:

  1. Install the package:

    pip install mcp-agile-flow
    
  2. Import in your code:

    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", {})
    

MCP Client Configuration

Important: Configuration Update Required

If you had previously configured MCP Agile Flow, you need to update your configuration. The fastmcp_server.py module has been removed as part of code cleanup, and functionality has been consolidated into the main package.

Update your MCP client configuration from:

{
    "name": "mcp-agile-flow",
    "server": {
        "type": "module",
        "module": "mcp_agile_flow.fastmcp_server",
        "entry_point": "run"
    }
}

To:

{
    "name": "mcp-agile-flow",
    "server": {
        "type": "module",
        "module": "mcp_agile_flow",
        "entry_point": "main"
    }
}

For Cursor users, also update the mcp.json file (typically at ~/.cursor/mcp.json):

"mcp-agile-flow": {
  "command": "/path/to/python",
  "args": [
    "-m",
    "mcp_agile_flow"  // Updated from "mcp_agile_flow.fastmcp_server"
  ],
  "autoApprove": [
    // ...
  ]
}

Command Line Usage

You can also run the server directly from the command line:

# 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 --debug

Available Tools

The MCP Agile Flow provides several tools:

  • get-project-settings: Get project settings including paths and environment variables
  • initialize-ide: Initialize project directory structure for specific IDEs
  • initialize-ide-rules: Initialize AI rule files for specific IDEs
  • prime-context: Analyze project documentation and build contextual understanding
  • migrate-mcp-config: Migrate MCP configuration between different IDEs
  • think: Record a thought for complex reasoning and step-by-step analysis
  • get-thoughts: Retrieve all thoughts recorded in the current session
  • clear-thoughts: Clear all recorded thoughts from the current session
  • get-thought-stats: Get statistics about the thoughts recorded in the current session
  • process-natural-language: Process natural language commands and route to appropriate tools

Natural Language Commands

MCP Agile Flow supports natural language commands, making it easier to interact with the tools without remembering exact command names. Simply use conversational phrases, and the system will automatically detect your intent and map them to the appropriate tools with the correct parameters.

Supported Command Types

Migration Commands

To migrate MCP configuration between different IDEs:

  • "migrate mcp config to claude-desktop"
  • "migrate config from cursor to claude-desktop"
  • "copy mcp settings to windsurf"
  • "transfer config to cline"
  • "move mcp settings from cursor to roo"

If the source IDE is not specified, it defaults to "cursor".

Note: Valid IDE names are: "cursor", "windsurf-next", "windsurf", "cline", "roo", and "claude-desktop".

Initialization Commands

To initialize a project with rules for a specific IDE:

  • "initialize ide for claude"
  • "setup rules for windsurf"
  • "create ide for cline"
  • "initialize rules for copilot"

Project Settings Commands

To get comprehensive project settings:

  • "get project settings"
  • "show settings"
  • "project settings"

Context Analysis Commands

To analyze project documentation:

  • "prime context"
  • "analyze project context"
  • "build context"

Thinking Commands

To record a thought:

  • "think about [your thought here]"

Usage Examples

Here are some examples of how to use these commands:

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")

Using from Command Line

You can also use natural language commands with the MCP Agile Flow CLI:

python -m mcp_agile_flow process-natural-language "migrate mcp config to claude-desktop"

Error Handling

If the system cannot recognize a command, it will return an error message explaining that no command was detected and suggesting to use more specific wording.

Extending Commands

The natural language command detection is implemented in utils.py using regular expressions. To add support for new command patterns, add appropriate regex patterns to the detect_mcp_command function.

Development

To set up for development:

  1. Clone the repository:

    git clone https://github.com/yourusername/mcp-agile-flow.git
    cd mcp-agile-flow
    
  2. Create a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install development dependencies:

    pip install -e ".[dev]"
    
  4. Run tests:

    pytest
    
  5. Common Makefile commands:

    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
    

License

This project is licensed under the MIT License - See LICENSE file for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured