Skip to main content
Glama
kkani95

Task-Guide-MCP

by kkani95

Task Guide MCP Server

An MCP (Model Context Protocol) server for improving AI Agent task performance. It addresses AI performance degradation issues that occur as projects become larger by providing task area segmentation, hierarchical RAG, and hybrid search capabilities.

Key Features

1. Guidance Management

  • create_guidance: Creates a new task guidance

  • update_guidance: Updates an existing guidance

  • list_guidances: Lists all guidances

  • get_guidance: Retrieves a specific guidance

  • delete_guidance: Deletes a guidance

2. Hierarchical RAG

  • Indexes codebase in hierarchical structure (directory, file, function, class)

  • Progressive exploration from high-level concepts to detailed information

  • Dynamically combines relevant context based on required abstraction level

  • Combines vector (semantic) search with structural indexing

  • Relationship-based search through knowledge graphs

  • Combines high-precision evidence, code, and decision history

  • index_guidance: Indexes codebase and documents for a guidance

  • search: Performs hybrid search

  • build_hierarchy: Builds codebase hierarchical structure

Related MCP server: Agent Memory MCP

Installation and Execution

1. Install Dependencies

npm install

2. Build

npm run build

3. Development Mode

npm run dev

4. Production Execution

npm start

Usage

MCP Client Configuration

Configure the server in your MCP client as follows:

{
  "mcpServers": {
    "task-guide": {
      "command": "node",
      "args": ["/path/to/task-guide-mcp/dist/index.js"]
    }
  }
}

Guidance Creation Example

// Create a new guidance
await mcp.callTool('create_guidance', {
  title: 'React Component Development',
  objective: 'Develop reusable React components',
  technicalConstraints: [
    'Use TypeScript',
    'Use only functional components',
    'Tailwind CSS styling'
  ],
  workRules: [
    'Components follow single responsibility principle',
    'Props defined with interfaces',
    'Storybook documentation required'
  ],
  completionCriteria: [
    'Component functions correctly',
    'No TypeScript errors',
    'Storybook stories completed'
  ],
  tags: ['react', 'typescript', 'component'],
  priority: 'high'
});

Search Example

// Hybrid search
const results = await mcp.callTool('search', {
  query: 'React component',
  type: 'code',
  limit: 5,
  threshold: 0.7
});

Project Structure

task-guide-mcp/
├── src/
│   ├── types/
│   │   └── index.ts              # Type definitions
│   ├── core/
│   │   ├── guidance-manager.ts   # Guidance management
│   │   ├── hierarchical-rag.ts   # Hierarchical RAG
│   │   └── hybrid-search.ts      # Hybrid search
│   └── index.ts                  # MCP server main
├── guidance/                     # Guidance repository
│   ├── {guidance-id}/
│   │   └── summary.json         # Guidance summary
│   └── metadata/
│       └── {guidance-id}.vec    # Metadata vector
├── data/
│   └── search.db                # Search database
├── package.json
├── tsconfig.json
└── README.md

Technology Stack

  • TypeScript: Type safety

  • @modelcontextprotocol/sdk: MCP protocol implementation

  • better-sqlite3: Vector and structural index storage

  • OpenAI API: Embedding generation (future implementation)

  • Hierarchical RAG: Codebase structure analysis

  • Hybrid Search: Vector + structural search

License

MIT License

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An intelligent task management system that provides structured workflows for AI Agents to plan, decompose, and execute complex programming tasks. It features a dedicated research mode for technical investigations and a task memory function to optimize workflows and avoid redundant coding work.
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    A high-performance persistent memory layer for AI agents with multi-modal support, 47 retrieval channels, and 50-tier guardian chains, integrating 12+ memory approaches into a unified architecture.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents with long-term memory and retrieval-augmented generation (RAG) capabilities, allowing them to recall past conversations, search local files, and learn user preferences.
    MIT