StoryCrafter MCP Server

Version 1.0.0 - AI-Powered Backlog Generator for VISHKAR Project Context

Two-phase workflow: Fast epic generation (Claude Sonnet 4.5) + Detailed story generation (GPT-5) with iterative refinement

Available Endpoints

Available Tools (4 total)

Two-phase workflow: Fast epics first, then detailed stories. Iterative refinement supported.

Phase 1: Epic Generation ⚔

Phase 2: Story Generation šŸ”„

Recommended Workflow:

  1. Call generate_epics with VISHKAR project context (15-20s)
  2. Review epics, use regenerate_epic for any that need refinement
  3. Call generate_stories with approved epics (3-5min)
  4. Use regenerate_story for any stories needing improvement

Usage

Health Check

GET /api/mcp

Response:
{
  "name": "StoryCrafter MCP",
  "version": "1.0.0",
  "tools": ["generate_epics", "generate_stories", "regenerate_epic", "regenerate_story"],
  "service_url": "https://storycrafter-service.vercel.app",
  "status": "healthy"
}

Example: Generate Epics

POST /api/mcp
Content-Type: application/json

{
  "method": "tools/call",
  "params": {
    "tool": "generate_epics",
    "arguments": {
      "project_context": {
        "project_summary": {
          "name": "TaskMaster",
          "description": "Task Management App with offline support",
          "target_users": "Remote teams needing offline task management"
        },
        "final_decisions": {
          "technical_stack": "React Native, IndexedDB, Service Workers",
          "timeline": "4 weeks",
          "team_size": "2 developers",
          "priorities": ["Offline support", "Task CRUD", "Sync"]
        }
      }
    }
  }
}

Example: Generate Stories

POST /api/mcp
Content-Type: application/json

{
  "method": "tools/call",
  "params": {
    "tool": "generate_stories",
    "arguments": {
      "project_context": { /* same as above */ },
      "epics": [
        {
          "id": "EPIC-1",
          "title": "User Authentication & Profile",
          "description": "Secure user authentication system",
          "priority": "high",
          "category": "security"
        }
        /* ... more epics from generate_epics output */
      ]
    }
  }
}

Example Response

{
  "content": [
    {
      "type": "text",
      "text": {
        "success": true,
        "backlog": {
          "project": {
            "name": "TaskMaster",
            "description": "Task Management App with offline support"
          },
          "epics": [
            {
              "id": "EPIC-1",
              "title": "User Authentication & Profile Management",
              "description": "Core user authentication with secure profile management",
              "stories": [
                {
                  "id": "STORY-1",
                  "title": "User Registration with Email Verification",
                  "description": "As a new user, I want to register...",
                  "acceptance_criteria": [...],
                  "technical_tasks": [...],
                  "story_points": 5,
                  "estimated_hours": 12
                }
              ]
            }
          ]
        },
        "summary": {
          "total_epics": 8,
          "total_stories": 36,
          "total_estimated_hours": 458,
          "generated_at": "2025-10-25T15:30:00Z"
        }
      }
    }
  ]
}

VISHKAR Integration

StoryCrafter works with VISHKAR project context (project_summary + final_decisions):

VISHKAR Provides:

  • project_summary - Project name, description, target users, goals
  • final_decisions - Technical stack, timeline, team size, priorities, constraints
  • questions_and_answers (optional) - Clarifications from consensus discussion

StoryCrafter Generates:

  1. generate_epics - 5-8 high-level epics (15-20s)
  2. User reviews epics - Feedback loop with regenerate_epic
  3. generate_stories - Comprehensive user stories for epics (3-5min)
  4. User reviews stories - Feedback loop with regenerate_story
  5. Final Output - Complete, validated backlog ready for JIRA

Architecture

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Vishkar Agent   │
│  (User Request)  │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
         │ MCP Protocol
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā–¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│ StoryCrafter MCP     │ (Next.js - This Service)
│ /api/mcp             │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
         │ HTTP
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā–¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│ StoryCrafter Service │ (Python/FastAPI)
│ - Claude Sonnet 4.5  │ (Epic Structure)
│ - GPT-5              │ (Story Details)
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Costs & Performance

Per Backlog Generation:

  • Claude Sonnet 4.5: ~$0.15 (epic structure)
  • GPT-5: ~$0.29 (story expansion)
  • Total: ~$0.44
  • Duration: 30-60 seconds