Socket
Book a DemoInstallSign in
Socket

@codewithdan/ai-repo-adventure-mcp

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codewithdan/ai-repo-adventure-mcp

MCP server for AI-powered code repository exploration through interactive storytelling

1.0.19
latest
Source
npmnpm
Version published
Weekly downloads
67
-94.14%
Maintainers
1
Weekly downloads
 
Created
Source

@codewithdan/ai-repo-adventure-mcp

MCP (Model Context Protocol) server for AI-powered code repository exploration through interactive storytelling. Turn your codebase into an engaging adventure!

Features

  • 🎮 Story-based Code Exploration: Interactive "choose your own adventure" experience
  • 🤖 AI-Powered Narratives: Dynamic story generation using LLMs
  • 🌟 Multiple Themes: Space, Mythical, Ancient, and Developer themes
  • 📚 Educational Analogies: Complex concepts explained through storytelling
  • 🔍 Smart Code Analysis: Automatic detection of technologies and patterns
  • 📊 Progress Tracking: Track exploration completion

Installation

For Claude Desktop

  • Install the package globally:
npm install -g @codewithdan/ai-repo-adventure-mcp
  • Add to Claude Desktop configuration:

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "repo-adventure": {
      "command": "npx",
      "args": ["@codewithdan/ai-repo-adventure-mcp"],
      "cwd": "/path/to/project/you/want/to/explore"
    }
  }
}

For Development

npm install @codewithdan/ai-repo-adventure-mcp

Available MCP Tools

start_adventure

Analyzes your repository and presents theme options.

Parameters:

  • projectPath (optional): Path to project directory

choose_theme

Generates a themed narrative adventure based on your selection.

Parameters:

  • theme: "space", "mythical", "ancient", or "developer"

explore_quest

Explores specific parts of your codebase through narrative.

Parameters:

  • choice: Quest number or title

view_progress

Shows your exploration progress and remaining quests.

Configuration

LLM Setup (Optional)

Create a .env file in your project:

# OpenAI
LLM_API_KEY=your_openai_key_here
LLM_BASE_URL=https://api.openai.com/v1
LLM_MODEL=gpt-4o-mini

# GitHub Models (free tier)
GITHUB_TOKEN=your_github_token_here
LLM_BASE_URL=https://models.inference.ai.azure.com
LLM_MODEL=gpt-4o-mini

# Azure OpenAI
LLM_API_KEY=your_azure_key_here
LLM_BASE_URL=https://your-resource.openai.azure.com/openai/deployments/your-deployment
LLM_MODEL=gpt-4o
LLM_API_VERSION=2025-01-01-preview

# Local Ollama
LLM_BASE_URL=http://localhost:11434/v1
LLM_API_KEY=ollama
LLM_MODEL=llama3.2

Adventure Configuration

Create an adventure.config.json in your project root:

{
  "adventure": {
    "name": "Your Project Name",
    "url": "https://github.com/yourusername/yourrepo"
  },
  "quests": [
    {
      "title": "Core Features",
      "description": "Explore the main functionality",
      "files": [
        {
          "path": "src/main.ts",
          "description": "Main entry point",
          "highlights": [
            {
              "name": "initializeApp",
              "description": "Application initialization"
            }
          ]
        }
      ]
    }
  ]
}

Example Usage Flow

1. start_adventure() 
   → Analyzes your project
   → Returns: "Choose Your Theme: 1. 🚀 Space 2. 🏰 Mythical 3. 🏛️ Ancient"

2. choose_theme("space")
   → Generates personalized story
   → Returns: Space-themed narrative with quest options

3. explore_quest("1")
   → Explores specific code area
   → Returns: Detailed narrative with code insights

4. view_progress()
   → Shows completion status
   → Returns: "33% complete, 2 quests remaining"

Supported Technologies

Automatically detects and creates characters for:

  • Languages: TypeScript, JavaScript, Python, Java, Go, Rust, C#
  • Frameworks: React, Vue, Angular, Node.js, Express
  • Databases: MongoDB, PostgreSQL, MySQL
  • Tools: Docker, Kubernetes, Jest, Cypress
  • APIs: REST, GraphQL

Requirements

  • Node.js 18.0.0 or higher
  • Claude Desktop (or compatible MCP client)
  • Optional: LLM API key for dynamic content

License

MIT

Author

Dan Wahlin

  • GitHub Repository
  • Report Issues
  • NPM Package

Keywords

mcp

FAQs

Package last updated on 22 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.