npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@codewithdan/ai-repo-adventures-mcp

v1.10.3

Published

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

Readme

@codewithdan/ai-repo-adventures-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

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

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

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

For Development

npm install @codewithdan/ai-repo-adventures-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
REPO_ADV_LLM_API_KEY=your_openai_key_here
REPO_ADV_LLM_BASE_URL=https://api.openai.com/v1
REPO_ADV_LLM_MODEL=gpt-4o-mini

# GitHub Models (Free tier available - but very limited and will only work with very small scenarios)
GITHUB_TOKEN=your_github_token_here
REPO_ADV_LLM_BASE_URL=https://models.inference.ai.azure.com
REPO_ADV_LLM_MODEL=gpt-4o-mini

# Azure OpenAI
REPO_ADV_LLM_API_KEY=your_azure_key_here
REPO_ADV_LLM_BASE_URL=https://your-resource.openai.azure.com/openai/deployments/your-deployment
REPO_ADV_LLM_MODEL=gpt-4o
REPO_ADV_LLM_API_VERSION=2025-01-01-preview

# Local Ollama
REPO_ADV_LLM_BASE_URL=http://localhost:11434/v1
REPO_ADV_LLM_API_KEY=ollama
REPO_ADV_LLM_MODEL=gemma3:27b

Adventure Configuration

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

{
  "adventure": {
    "name": "Your Project Name",
    "description": "Brief description of what your project does",
    "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

Links