Skip to content
/

MCP Shrimp Task Manager

mcp-shrimp-task-manager · cjo4m06/mcp-shrimp-task-manager · ★ 2.1k · last commit 2025-08-21

Primitive shape 16 total
MCP tools 16
00

Summary

MCP Shrimp Task Manager — Summary

MCP Shrimp Task Manager (cjo4m06/mcp-shrimp-task-manager) is an MCP server that transforms natural language task requests into structured development tasks with dependency tracking, chain-of-thought reflection, and iterative refinement. It is focused on AI Agents (Claude Code, Cursor, RooCode, Windsurf) and provides 16 MCP tools covering task planning, execution, decomposition, verification, reflection, and research. A optional React-based Task Viewer web UI runs at localhost:5173 for human visibility. Template-driven prompts in src/prompts/templates_en/ allow full customization of agent behavior. The framework emphasizes "chain-of-thought, reflection, and style consistency" — the process_thought tool requires the AI to articulate reasoning before acting. Tasks persist in a JSON file across sessions.

Differs from seeds: closest to taskmaster-ai (MCP server, task decomposition, dependency tracking, JSON persistence, Cursor primary) but Shrimp adds chain-of-thought enforcement via process_thought tool, a reflect_task quality review step, customizable prompt templates, a built-in web UI, and an optional sub-agent assignment system per task.

01

Overview

MCP Shrimp Task Manager — Origin and Philosophy

Origin

Author: cjo4m06. 2,103 stars, 251 forks. MIT license. JavaScript (Node.js). Created April 2025, last push August 2025. Multi-language documentation (10 languages). 18 contributors. Listed on Smithery.ai marketplace.

Philosophy

From README:

"Shrimp Task Manager is a task tool built for AI Agents, emphasizing chain-of-thought, reflection, and style consistency. It converts natural language into structured dev tasks with dependency tracking and iterative refinement, enabling agent-like developer behavior in reasoning AI systems."

Key Philosophical Positions

  1. Chain-of-thought before action: process_thought tool forces explicit reasoning articulation. The agent must think before implementing.

  2. Reflection as quality gate: reflect_task reviews and improves the approach before marking complete. Not just "done" — "reviewed and done."

  3. Style consistency via project rules: init_project_rules creates project-specific coding standards that all tasks follow. The agent learns the project's conventions.

  4. Structured task decomposition over ad-hoc planning: complex tasks are always broken into atomic, testable units with explicit dependencies before any implementation begins.

  5. Research before planning: research_mode enables systematic exploration of technologies/solutions BEFORE creating a plan — preventing mid-implementation pivots.

Agent System (v1 feature)

Specialized AI agents can be assigned to specific tasks via .claude/agents/ directory. The Task Viewer shows agent assignment dropdowns. Agents bring domain expertise (react-components.md, database-specialist.md) to appropriate tasks.

02

Architecture

MCP Shrimp Task Manager — Architecture

Distribution

Clone + npm build:

git clone https://github.com/cjo4m06/mcp-shrimp-task-manager.git
cd mcp-shrimp-task-manager
npm install && npm run build

Or via Smithery.ai marketplace.

Required Runtime

  • Node.js 18+
  • npm/yarn
  • MCP-compatible AI client (Claude Code, Cursor, Cline, Claude Desktop, etc.)

Configuration (.mcp.json)

{
  "mcpServers": {
    "shrimp-task-manager": {
      "command": "node",
      "args": ["/path/to/dist/index.js"],
      "env": {
        "DATA_DIR": "/path/to/shrimp_data",
        "TEMPLATES_USE": "en",
        "ENABLE_GUI": "false"
      }
    }
  }
}

Directory Structure

cjo4m06/mcp-shrimp-task-manager/
├── src/
│   ├── index.ts               # MCP server entry point
│   ├── models/                # Task, dependency models
│   ├── tools/                 # MCP tool handlers
│   │   ├── task/              # Task CRUD tools
│   │   ├── project/           # Project rules tools
│   │   ├── research/          # Research mode tool
│   │   └── thought/           # process_thought tool
│   ├── prompts/               # Template system
│   │   ├── templates_en/      # English prompt templates (16 files)
│   │   ├── templates_zh/      # Chinese prompt templates
│   │   ├── generators/        # TypeScript generators per tool
│   │   └── loader.ts          # Template loader
│   └── public/                # Web GUI static files
├── tools/
│   └── task-viewer/           # React Task Viewer app
│       ├── src/               # React components
│       └── package.json       # port 5173
├── .claude/
│   └── settings.local.json    # Claude Code MCP config
├── shrimp-rules.en.md         # English project rules template
├── shrimp-rules.md            # Chinese project rules template
└── smithery.yaml              # Smithery marketplace config

Target AI Tools

Claude Code (primary), Cursor, RooCode, Windsurf, Cline (VSCode), Claude Desktop. Any MCP-compatible client.

03

Components

MCP Shrimp Task Manager — Components

MCP Tools (16 total)

Task Management

Tool Purpose
plan_task Create comprehensive task plan from natural language description
execute_task Execute a specific task with full context
list_tasks Display all tasks with status
delete_task Remove a task from the queue
complete_task Mark task as completed
update_task Modify task details

Advanced Task Operations

Tool Purpose
split_tasks Break complex tasks into atomic subtasks with dependencies
analyze_task Deep analysis of task requirements before implementation
verify_task Validate task completion against requirements
reflect_task Review and improve task approach (quality gate)
query_task Search tasks by criteria

Task Memory & History

Tool Purpose
get_task_detail Retrieve detailed task information
clear_all_tasks Remove all tasks (with automatic backup)

Project Management

Tool Purpose
init_project_rules Initialize project coding standards
research_mode Systematic technology/solution exploration

Thought Processing

Tool Purpose
process_thought Process and structure agent reasoning (internal chain-of-thought)

Template System (src/prompts/templates_en/)

16 customizable template files (one per tool):

  • analyzeTask, clearAllTasks, deleteTask, executeTask, getTaskDetail
  • initProjectRules, listTasks, planTask, processThought, queryTask
  • reflectTask, researchMode, splitTasks, toolsDescription, updateTaskContent, verifyTask

Web UI (Task Viewer)

React app in tools/task-viewer/. Port 5173. Features:

  • Task table (sortable by status, agent, date, name, dependencies)
  • Color-coded status badges
  • Agent assignment dropdown + AI bulk assignment (GPT-4)
  • Robot emoji (🤖) copy-task-instruction-to-clipboard
  • Multi-profile support
  • Dependency navigation (click-to-navigate)
  • Lightweight web GUI (lightweight, ENABLE_GUI=true)

Claude Code Settings

.claude/settings.local.json — MCP server config for Claude Code.

05

Prompts

MCP Shrimp Task Manager — Prompts

The prompt system is template-based. Templates in src/prompts/templates_en/ are loaded by TypeScript generators that inject context (task list, dependencies, completion status).

Prompt 1: planTask generator (src/prompts/generators/planTask.ts)

Technique: Context injection with truncated task history. Shows up to 10 completed tasks (with completion timestamps), all pending tasks (with dependencies). Prevents overly long prompts while preserving dependency context.

// Completed tasks — max 10 shown
const tasksToShow = completedTasks.length > 10 
  ? completedTasks.slice(0, 10) 
  : completedTasks;

// Each task rendered as:
// 1. **TaskName** (ID: `task-id`)
//    - description:[first 100 chars]
//    - completedAt:YYYY-MM-DD HH:mm:ss

// If more than 10: note appended "(只顯示前10個,共 N 個)"

// Pending tasks include dependency list

Design choice: truncation to 10 completed tasks + description.substring(0, 100) is deliberate token conservation. Shows enough context for planning without consuming the full task history.

Prompt 2: process_thought (src/prompts/templates_en/processThought)

Technique: Forced chain-of-thought. The tool description requires the agent to explicitly articulate reasoning, alternatives considered, and decision rationale BEFORE executing any action.

From tools.md description:

Tool: process_thought
Description: Process and structure thoughts
Example Usage: "Internal use by agent"

The process_thought tool is the enforcement mechanism for chain-of-thought — the MCP server calls it internally as a prerequisite step before certain operations.

Prompt 3: shrimp-rules.en.md (project rules template)

Technique: Convention injection via project rules. init_project_rules creates a shrimp-rules.md in the project based on the template. This file injects coding style, architecture patterns, and project conventions into every task execution.

The template is visible at: shrimp-rules.en.md in the repository root — a structured rules document covering code style, architecture, testing, naming, and agent behavior expectations.

09

Uniqueness

MCP Shrimp Task Manager — Uniqueness and Positioning

Differs from Seeds

Closest to taskmaster-ai (MCP server, task decomposition, dependency tracking, JSON persistence, multi-AI-client) but Shrimp adds several elements absent in taskmaster:

  1. process_thought MCP tool: enforces chain-of-thought via a dedicated MCP tool call — the agent MUST articulate reasoning through a structured tool before acting. taskmaster has no equivalent.

  2. reflect_task quality review: a reflection step after execution that reviews and improves the approach. taskmaster has analyze-complexity but no post-execution reflection gate.

  3. Customizable prompt templates: src/prompts/templates_en/ allows full customization of every tool's behavior per project. taskmaster uses hardcoded prompts.

  4. Built-in React Task Viewer: taskmaster-ai has a UI via the task-viewer npm package. Shrimp's Task Viewer is bundled in the repo with drag-and-drop, agent assignment, and GPT-4 bulk assignment.

  5. Sub-agent assignment system: tasks can be assigned to specialized Claude Code agents (persona files). The Task Viewer's 🤖 copy feature generates the exact command to dispatch a specialized agent to a task. taskmaster has no agent specialization.

  6. research_mode tool: systematic technology exploration before planning. taskmaster has no pre-planning research tool.

Positioning

Shrimp targets developers who want rigorous, reflection-driven task execution with visible reasoning. The chain-of-thought + reflection philosophy makes it suitable for complex, multi-step projects where understanding WHY the agent made decisions matters as much as the outcome.

Observable Failure Modes

  1. Prompt template coupling: customized templates in templates_en/ must be maintained alongside server updates — template schema changes can break customizations.
  2. GPT-4 bulk assignment: the AI-powered agent assignment feature requires an OpenAI API key and network access — a surprising external dependency in what is otherwise a local MCP server.
  3. DATA_DIR misconfiguration: tasks.json path is configured via env var — wrong path means agents start fresh each session.
  4. Last push August 2025: ~9 months since last commit as of May 2026 — possible maintenance stagnation.
04

Workflow

MCP Shrimp Task Manager — Workflow

Phases

Phase Tool Artifact
1. Project init init_project_rules shrimp-rules.md (coding standards)
2. Research (optional) research_mode Technology exploration notes
3. Task planning plan_task Task record in DATA_DIR/tasks.json
4. Task analysis analyze_task Detailed requirements breakdown
5. Task decomposition split_tasks Subtasks with dependencies
6. Chain-of-thought process_thought Structured reasoning (internal)
7. Execution execute_task Code changes
8. Reflection reflect_task Quality review of approach
9. Verification verify_task Completion validation
10. Completion complete_task Task marked done

Continuous Mode

"Execute task" → continuous mode → agent processes all pending tasks automatically in dependency order.

Approval Gates

Gate Type Mechanism
Verify task Human review verify_task — validates completion against requirements
Reflect task Agent self-review reflect_task — agent reviews and improves its own approach

Prompt Chaining

Yes — plan_task output → split_tasks input → execute_task context → verify_task requirements. Each tool's output drives the next tool's input.

Task Persistence

Tasks persist in DATA_DIR/tasks.json across sessions. "Never lose your place, even with token limits" — session restart picks up where it left off.

Verbatim planTask Prompt Architecture

The planTask.ts generator (from source):

// Considers existing tasks (completed + pending, up to 10 shown)
// Injects task descriptions, dependencies, completion timestamps
// Generates final prompt from loadPrompt("planTask.md") template
// Passes memoryDir for context storage
06

Memory Context

MCP Shrimp Task Manager — Memory and Context

State Storage

Tasks (primary)

  • File: $DATA_DIR/tasks.json (configurable via env)
  • Content: all tasks with status, subtasks, dependencies, descriptions, completedAt timestamps
  • Persistence: project-scoped (per DATA_DIR)
  • Format: JSON

Task Backups

  • clear_all_tasks creates automatic backup before clearing
  • Backup location: DATA_DIR (implementation detail)

Memory Directory (memoryDir)

  • Referenced in planTask generator — additional context storage per task
  • Content: extended task context, research notes, intermediate artifacts

Cross-Session Continuity

Tasks persist in tasks.json across sessions. Token limit recovery is explicit in the README:

"Never lose your place, even with token limits" "Lost context — Start new session, system will resume"

Session restart: plan_task re-reads existing tasks.json → presents current state → resumes from last incomplete task.

Context Window Management

The planTask generator deliberately truncates completed task history (max 10 shown, descriptions max 100 chars) to prevent prompts from consuming excessive context window.

query_task tool allows targeted retrieval of specific task details without loading all task history.

No Vector Memory

No vector search, no embeddings, no semantic retrieval. Pure structured JSON with full-text query.

07

Orchestration

MCP Shrimp Task Manager — Orchestration

Multi-Agent Support

Limited — the agent assignment system allows different AI agents (persona files in .claude/agents/) to be assigned to specific tasks. The Task Viewer UI shows "Parallel Execution" as a use case: open multiple terminals with different AI agents and assign tasks. However, this is manual coordination, not automated multi-agent orchestration.

Orchestration Pattern

Task-decomposition-tree: complex tasks are decomposed into a dependency DAG by split_tasks. Execution follows dependency order. This is the closest to task-decomposition-tree among the seeds.

Execution Mode

Interactive loop — the human triggers phases manually or uses "continuous mode" to run all pending tasks automatically in dependency order.

Isolation

None — agents work in-place in the project directory.

Chain-of-Thought Enforcement

The process_thought MCP tool enforces pre-execution reasoning. This is the only framework in the corpus that has a dedicated MCP tool for chain-of-thought rather than prompting the agent to think.

Multi-Model

Not natively. The framework routes all calls through whichever MCP client the user configures. Different agents assigned to different tasks could use different models but this is not automated within the framework.

08

Ui Cli Surface

MCP Shrimp Task Manager — UI and CLI Surface

Task Viewer (React Web App)

Port: 5173 (development server)

Tech Stack: React (TypeScript), file-path reading (no REST API call — reads tasks.json directly)

Launch:

cd tools/task-viewer
npm install
npm run start:all  # starts both backend and frontend
# Access at http://localhost:5173

Features:

  • Task table with sortable columns (Task#, Status, Agent, Created, Name, Dependencies, Actions)
  • Color-coded status badges: 🟡 Pending, 🔵 In Progress, 🟢 Completed, 🔴 Blocked
  • Agent assignment dropdown per task
  • Agent Viewer popup (browse and select agents from .claude/agents/)
  • 🤖 Robot emoji → copy task execution instruction to clipboard
  • Multi-profile support (draggable profile tabs)
  • Task detail navigation (← Previous / Next → buttons)
  • AI-powered bulk agent assignment (uses GPT-4 to analyze tasks and assign appropriate agents)

Lightweight Web GUI (ENABLE_GUI=true)

Optional minimal web interface:

ENABLE_GUI=true

Provides quick task overview without the full React Task Viewer.

No Dedicated CLI

MCP server only — no standalone CLI. Invoked via node dist/index.js as an MCP server subprocess.

MCP Protocol

stdio — spawned as a child process by the MCP client (Claude Code, Cursor, etc.). All tools accessed via MCP protocol.

Smithery Marketplace

Listed at: smithery.ai/server/@cjo4m06/mcp-shrimp-task-manager. One-click install via Smithery.

Related frameworks

same archetype · same primary tool · same memory type

Taskmaster AI ★ 27k

Converts a PRD into a dependency-ordered JSON task graph that AI coding agents execute one task at a time, eliminating context…

ccmemory ★ 1

Accumulates decisions, corrections, and failed approaches from Claude Code sessions into a queryable Neo4j graph so each new…

Pimzino spec-workflow-mcp ★ 4.2k

MCP server providing spec-driven development workflow with dashboard-backed approval gates, implementation logging, and VSCode…

Bernstein ★ 460

Govern parallel CLI coding agents with a deterministic Python scheduler, HMAC-chained audit trail, and compliance-ready signed…

LeanSpec ★ 252

Provides a unified spec CLI and MCP server over any existing spec backend (markdown, GitHub Issues, ADO), making spec-driven…

Specs Workflow MCP ★ 127

Enforces Requirements → Design → Tasks workflow via a single MCP tool with persistent JSON progress tracking that survives…