MCP-tasksforge

smirfolio/MCP-tasksforge

3.3

If you are the rightful owner of MCP-tasksforge and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server acts as a bridge between AI coding agents and the Project Management AI Assistant tasksforge.ai, facilitating efficient project implementation.

Tools
2
Resources
0
Prompts
0

TasksForge.ai - MCP Context Server

This project provides a Model Context Protocol (MCP) server designed to act as a bridge between an AI coding agent (like Cline, Claude Desktop, or a custom tool) and the Project Management AI Assistant tasksforge.ai.

It allows your AI agent to fetch detailed project context once, including requirements, user stories, and dependencies, and then assists in implementing the project user story by user story, persisting the progress along the way.

Features

  • Dynamic Context Injection: Fetches comprehensive project details from a remote API and provides it to the AI agent.
  • State Persistence: Tracks the implementation progress of user stories in a local .mcp_history.md file.
  • Local Caching: Saves the fetched project context to .mcp_project_context.md on the first run to speed up subsequent sessions.
  • Organized Workflow: All agent-related files (history, context, prompts) are stored neatly within a workflow directory inside your project.

How It Works

The workflow is designed to be efficient and stateful:

  1. User Setup: The developer configures their AI coding agent to use this MCP server, providing their Tasksforge secret key in https://www.tasksforge.ai/internalApp/settings.
  2. First Run: The agent, running in a project directory, detects that the local context is missing. It calls the MCP server to fetch project details from the Tasksforge API. The server then instructs the agent to save this context locally.
  3. Implementation: Guided by the prompt in workflow/prompt_implement_user_stories.md, the agent helps the developer implement user stories incrementally.
  4. Logging Progress: When a user story is complete, the agent calls the MCP server to save a timestamped completion report to workflow/.mcp_history.md.
  5. Subsequent Runs: On the next run, the agent loads the context and history directly from the local workflow directory, avoiding unnecessary API calls and immediately knowing the project's current state. No need to call the get_project_context again, but the log_task_completion tools would be availbale to persist AI Coding Agent completed tasks report

Setup and Installation

Follow these steps to get the MCP server ready to be used by your AI agent.

1. Prerequisites

  • Python 3.10+
  • uv for package management
  • An AI coding agent that supports MCP server configuration (e.g., Cline).

2. Clone the Server Repository

Clone this repository to a stable location on your machine. This is where the server code will live.

git clone <url_to_your_mcp_server_repo> MCP-tasksforge
cd MCP-tasksforge

3. Install Dependencies

Install the required Python packages.

In Celine, you can ask in the AI chat to install the MCP-tasksforge directly from the repository project ´´´ Hey Celine could you install this MCP server: @https://github.com/smirfolio/MCP-tasksforge ´´´ or manually:

git clone git@github.com:smirfolio/MCP-tasksforge.git

TIPS: Set the env variables, then you can start your MCP server in dev mode, with the command :

uv run mcp dev server.py

4. Configure the Server Environment running the Standalone MCP-server

The server needs the URL of your project management API. Create a .env file in the MCP-tasksforge directory. Get the personal secret key from Tasksforge.ai in https://www.tasksforge.ai/internalApp/settings -> Your temporary token.

Create a file named .env:

PROJECT_DIRECTORY="<absolute apth to your project working directory>"
SECRET_KEY="your_super_secret_key_12345_that_is_long_and_complex"

Claude Integration

one the installation package installed (uc, claude, mcp[cli]), you can follow these steps:

git clone git@github.com:smirfolio/MCP-tasksforge.git

#in your project directory: 
git init
 
claude mcp add MCP-tasksforge --env PROJECT_DIRECTORY=<folder project deriectory> SECRET_KEY="<Your TAsksforge Secret JWT>" -- uv run mcp run <path to mcp-server>/MCP-tasksforge/src/server.py

#verify the server is connect : 
claude mcp list 

# Response : 
~# Checking MCP server health...
~# MCP-tasksforge: uv run mcp run MCP-tasksforge/src/server.py - ✓ Connected

#now you cane start your claude coding agent in your project directory:: 
claude .

At this point you can start fetching your projects detail from the tasksForge.ai

Fetch the project {id} context

This would fetch the project and save the details into workflow/.mcp_project_context.md

Cline Integration

Your AI coding agent needs to know how to run this server. You will configure this in your agent's settings, typically in a JSON configuration file. Here is a template based on the provided format.

  • You can ask your Celine agent to implement the MCP server :
 Hey Cline, add this MCP server from @https://github.com/smirfolio/MCP-tasksforge
  • Celine AI agent will clone the MCP-tasksforge into the current working directory

  • Open the Cline MCP settings file:

    • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Celine AI agent must create the cline_mcp_settings.json bellow an example of the mcp json settings, the <TO-MCP-SERVER-FOLDER> may be the current working directory

Example Configuration in Celine AI Agent:

{
    "mcpServers": {
        "ai-project-forge": {
            "name": "AI Project Forge",
            "command": "uv",
            "args": [
                "run",
                "mcp",
                "run",
                "<TO-MCP-SERVER-FOLDER>/MCP-tasksforge/src/server.py"
            ],
            "env": {
                "SECRET_KEY": "<Your TAsksforge Secret JWT>",
                "PROJECT_DIRECTORY": "{project_dir}"
            }
        }
    }
}
  • Celine may ask you for your Your temporary token, provide him with your secret, and ask him to continue installing the MCP-server

How to fill out the template:

  • <TO-MCP-SERVER-FOLDER>: Replace this with the absolute path to the directory where you cloned MCP-tasksforge.
  • "env": This is the most important part.
    • "SECRET_KEY": Replace <Your TAsksforge Secret JWT> with the full JWT you obtain from your Tasksforge application's user settings.
    • "PROJECT_DIRECTORY": The value {project_dir} is a special placeholder that your AI agent (like Cline) should dynamically replace with the absolute path of the project folder you are currently working in. This tells the server where to create the workflow directory.

You are now able to ask your AI Agent to restart the MCP server

Usage Workflow

Once configured, using the server via your AI agent is simple.

1. Initializing a Project

  1. Open a terminal in the root of your project folder (e.g., ~/my-cool-app).
  2. Make sure it's a Git repository (git init if it's not).
  3. Start a conversation with your AI agent and ask it to work on the project, providing the project ID. For example:

    "Hey, Celine, fetch the project 478." or "Fetch the project 478 for the context."

The agent will automatically:

  • Call the MCP server to fetch the context from the API and will save this context to workflow/.mcp_project_context.md.
  • Present you with the project title and analysis, then wait for your command.

2. Implementing User Stories

  • Instruct the agent to start a specific user story: "Start implementing user story #1".
  • The agent will follow the rules in the prompt, working incrementally and waiting for your confirmation at each step.

3. Completing a Session

  • When a user story is finished, the agent will generate a "Task Completed" summary.
  • It will then automatically call the MCP server to append this summary, along with a timestamp, to workflow/.mcp_history.md.
  • The agent will then stop and wait for your next instruction.

4. Starting a New Session

  • Simply start a new conversation with the agent in the same project directory.
  • Add the workflow/ folder to the AI coding assistant context
  • The agent will now find and read the local workflow/.mcp_project_context.md and workflow/.mcp_history.md files, giving it instant knowledge of the project's state without needing to call the API again.

Tips After completing a user story, start a completely new chat session for the next one. Provide the AI with the relevant project files workflow/ and ask it to summarize the work just completed and what remains. This significantly reduces token consumption, as the context in a single chat increases dramatically with each interaction.

Server Tools Reference

The MCP server exposes the following tools for the AI agent to use:

ToolParametersDescription
get_project_contextproject_id: intFetches the full project context from the remote API.
log_task_completioncompletion_report: strAppends a timestamped summary to workflow/.mcp_history.md.

Special thanks to @CodingtheFuture for not only contributing amazing content but for inspiring and uplifting our entire community.