New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

devdox-mcp-server

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devdox-mcp-server

MCP server for serving documentation and rules from GitHub repositories to AI agents

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
1
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

DevDox MCP Server

A Model Context Protocol (MCP) server that serves developer documentation from GitHub repositories.

Overview

This MCP server loads and indexes markdown documentation files from a GitHub repository with a specific directory structure, allowing AI assistants to access and retrieve documentation content through standardized tools.

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • Git (if using clone mode)

Quick Start

To use the MCP server with Claude Code add the following to your Claude Code MCP configuration (eg in .mcp.json):

{
  "mcpServers": {
    "devdox": {
      "command": "npx",
      "args": ["-y", "devdox-mcp-server"],
      "env": {
        "DEVDOX_GITHUB_REPO_URL": "https://github.com/owner/repo",
        "DEVDOX_PROJECT_HANDLE": "my-project"
      }
    }
  }
}

If your using cursor, windsurf etc. then use the equivalent mcp installation workflow.

Configuration

The server takes the following environment variables:

  • DEVDOX_GITHUB_REPO_URL (required): The URL of your GitHub repository containing the documentation/rules for your AI agents
  • DEVDOX_PROJECT_HANDLE (required): The project handle/directory name within the repository
  • DEVDOX_USE_GITHUB_API (optional): Set to true to use GitHub API instead of cloning (default: false)
  • DEVDOX_GITHUB_TOKEN (optional): GitHub personal access token for API requests (recommended when using API mode)

Your Dev Docs/Rules Repository Structure

The server expects your Docs repository to follow this structure:

projects/
  project1-handle/
    devdocs/
      doc1.md
      doc2.md
      subfolder/
        doc3.md
  project2-handle/
    devdocs/
      anotherdoc.md

Running the Server

Development Mode

DEVDOX_GITHUB_REPO_URL=https://github.com/owner/repo DEVDOX_PROJECT_HANDLE=my-project npm run dev

Production Mode

DEVDOX_GITHUB_REPO_URL=https://github.com/owner/repo DEVDOX_PROJECT_HANDLE=my-project npm start

Using GitHub API Mode

DEVDOX_GITHUB_REPO_URL=https://github.com/owner/repo DEVDOX_PROJECT_HANDLE=my-project DEVDOX_USE_GITHUB_API=true DEVDOX_GITHUB_TOKEN=your-token npm start

Claude Code Configuration

To use this server with Claude Code, add the following to your MCP settings:

{
  "mcpServers": {
    "devdox": {
      "command": "npx",
      "args": ["-y", "devdox-mcp-server"],
      "env": {
        "DEVDOX_GITHUB_REPO_URL": "https://github.com/owner/repo",
        "DEVDOX_PROJECT_HANDLE": "my-project"
      }
    }
  }
}

Available Tools

The server provides two tools:

  • listDocs: Returns a list of all available documentation titles

    • No parameters required
    • Returns: Array of document titles
  • getDoc: Retrieves a specific document by its title

    • Parameters:
      • title (string, required): The title of the document to retrieve
    • Returns: The markdown content of the document

Document Title Resolution

Documents are indexed by title, which is determined in the following order:

  • Front matter title field (if using YAML front matter)
  • First H1 heading in the markdown content
  • Filename (converted from kebab-case to Title Case)

Development

Scripts

  • npm run build: Build the TypeScript code
  • npm run dev: Run in development mode with hot reload
  • npm run lint: Run ESLint
  • npm run typecheck: Run TypeScript type checking

Project Structure

src/
  index.ts       # Main entry point
  server.ts      # MCP server implementation
  github.ts      # GitHub loading functionality
  indexer.ts     # Document indexing logic
  types.ts       # TypeScript type definitions

Troubleshooting

  • Repository not found: Ensure the DEVDOX_GITHUB_REPO_URL is correct and accessible
  • Project not found: Verify that DEVDOX_PROJECT_HANDLE matches a directory in the projects/ folder
  • API rate limits: When using GitHub API mode, provide a DEVDOX_GITHUB_TOKEN to increase rate limits
  • Permission denied: Ensure you have access to clone the repository (for clone mode) or API access (for API mode)

License

MIT

Keywords

mcp

FAQs

Package last updated on 22 Jul 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