LivingDocs MCP server

LivingDocs MCP server

livingdocs•bydinesh-mys

An MCP server that monitors documentation health in repositories, detecting stale doc comments, knowledge gaps, and departure risk.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Scans a repository and lists stale documentation files with a staleness percentage.
  • •Answers natural-language questions about a codebase using its documentation and a semantic search index.
  • •Detects undocumented files ranked by commit activity and identifies sole-contributor bus-factor risks.
  • •Generates documentation updates via Claude and can write them to source files, docs files, or Confluence pages.

BEST FOR

  • •Teams wanting to identify which code documentation has drifted from the code it describes.
  • •Organizations assessing bus-factor risk by finding files dominated by a single author.
  • •Making engineering discussions from Slack, Teams, and email searchable alongside code documentation.

ABOUT LIVINGDOCS

LivingDocs MCP server is cataloged as an MCP server attributed to dinesh-mys. An MCP server that monitors documentation health in repositories, detecting stale doc comments, knowledge gaps, and departure risk. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for LivingDocs MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which languages does LivingDocs support?

It supports C#, TypeScript, JavaScript, Python, and Go.

Which MCP clients can use the LivingDocs server?

The documentation describes setup for Claude Desktop, Claude Code, and GitHub Copilot in VS Code agent mode.

Upstream README

View this exact version on GitHub

README.md · 40bb64d88e56 · Fetched 2026-11-13 11:39:27 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

LivingDocs

NuGet Version NuGet Downloads GitHub Issues GitHub Discussions MIT License

AI-powered documentation health monitor. Detects stale code comments, finds knowledge gaps, alerts on departure risk, and ingests Slack, Teams, and email conversations — so your entire org's knowledge stays searchable and current.

Install

Requires .NET 10 SDK.

dotnet tool install -g LivingDocs.Mcp

Tools

ToolTierDescription
scan_repoFreeScan a repo and list stale doc files with staleness % (0–100%)
query_docsFreeAnswer natural-language questions about your codebase using its doc comments
index_repoFreeBuild or refresh the semantic search index for a repository
suggest_doc_updateFreeAsk Claude to rewrite a stale doc comment
write_backFreeWrite Claude-generated doc updates directly to source files
detect_gapsFreeFind files with zero documentation, ranked by commit activity
departure_riskFreeIdentify authors who are the sole contributor to critical files (bus factor)
write_docsProWrite updated docs to docs/<File>.md with a UTC timestamp — full audit trail
sync_confluenceProWrite updated docs back to Confluence pages
scan_orgProScan all repos in a GitHub org and return an org-wide report
index_slackProIndex a Slack channel into the knowledge base — searchable via query_docs
index_teamsProIndex a Microsoft Teams channel into the knowledge base
index_emailProIndex an IMAP email folder into the knowledge base

Quick test

livingdocs-mcp scan /path/to/your/repo
Scanning /path/to/repo ...
Files examined : 12
Stale docs     : 2

  [██████████]  100%  src/Tax.cs
               doc updated : 2024-09-01
               code changed: 2025-01-15

  [████░░░░░░]   40%  src/Auth.cs
               doc updated : 2024-12-01
               code changed: 2025-01-28

Setup — Claude Desktop

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

{
  "mcpServers": {
    "livingdocs": {
      "command": "livingdocs-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Restart Claude Desktop. The tools will appear under the + menu.


Setup — Claude Code

Add a .mcp.json file to your project root:

{
  "mcpServers": {
    "livingdocs": {
      "command": "livingdocs-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Or register globally:

claude mcp add livingdocs -s user -- livingdocs-mcp

Then in Claude Code chat:

scan this repo for stale docs              → uses scan_repo
what does the Auth module do?              → uses query_docs
suggest a fix for src/Tax.cs              → uses suggest_doc_update
find undocumented files                   → uses detect_gaps
who owns the payments module?             → uses departure_risk

Setup — GitHub Copilot (VS Code)

VS Code 1.99+ supports MCP servers in Copilot agent mode. Add a .vscode/mcp.json file to your project:

{
  "servers": {
    "livingdocs": {
      "type": "stdio",
      "command": "livingdocs-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-..."
      }
    }
  }
}

Open the Copilot chat panel, switch to Agent mode, and the tools will be available.

Note: The @livingdocs Copilot Extension agent is built and deployed but pending GitHub Copilot plan availability for agent URL registration. The MCP server path above works fully in the meantime.


Setup — GitHub Webhook

The webhook integration watches every PR merge in your repo and automatically posts a stale-doc report as a PR comment. Optionally sends a Slack notification with an Auto-draft button that generates doc fixes in one click.

1. Deploy LivingDocs.CopilotExt

The webhook handler runs as a web service. Deploy it to any host (Railway, Fly.io, a VPS):

# Docker
docker build -t livingdocs-ext .
docker run -p 8080:8080 \
  -e ANTHROPIC_API_KEY=sk-ant-... \
  -e GITHUB_WEBHOOK_SECRET=your-secret \
  -e LIVINGDOCS_REPO_PATH=/path/to/local/repo \
  livingdocs-ext

2. Register the webhook in GitHub

Go to your repository → Settings → Webhooks → Add webhook:

FieldValue
Payload URLhttps://your-server/api/github/webhook
Content typeapplication/json
SecretAny random string — set as GITHUB_WEBHOOK_SECRET
EventsSelect individual events → check Pull requests only

3. Set required environment variables

VariableRequiredDescription
GITHUB_WEBHOOK_SECRETYesMust match the secret entered in GitHub
LIVINGDOCS_REPO_PATHYesAbsolute path to the local clone of the repository
GITHUB_TOKENRecommendedPAT with repo scope — needed to post PR comments and fetch diffs
ANTHROPIC_API_KEYYesFor AI impact analysis and semantic doc mapping
SLACK_WEBHOOK_URLOptionalIncoming webhook URL for Slack stale-doc alerts
SLACK_SIGNING_SECRETOptionalEnables the Auto-draft Slack button (Slack App → Basic Information)

4. What happens on each merged PR

  1. GitHub sends a pull_request event with action: closed, merged: true
  2. LivingDocs validates the HMAC-SHA256 signature
  3. Fetches changed files from the GitHub API
  4. Runs stale-doc detection against the local repo
  5. Calls Claude to analyse the diff and map affected .md docs
  6. Posts a report as a PR comment
  7. Sends a Slack notification (if configured) with an Auto-draft top doc button

Pro tier

7-day free trial available — no credit card required to start.

Pro tools require a license key:

export LIVINGDOCS_LICENSE_KEY=LD-xxxx-xxxx-xxxx

Or add it to the env block in your MCP config:

{
  "mcpServers": {
    "livingdocs": {
      "command": "livingdocs-mcp",
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "LIVINGDOCS_LICENSE_KEY": "LD-xxxx-xxxx-xxxx"
      }
    }
  }
}

Start a 7-day free trial — LivingDocs Pro (then $10/month).


Free tool — detect_gaps

Finds source files that have zero documentation comments and ranks them by commit activity. The busiest undocumented files are the highest-priority knowledge gaps — code that changes frequently but is never explained.

Usage in Claude:

detect_gaps on /path/to/repo

Example output:

Knowledge gaps in '/path/to/repo'
Files scanned: 42  |  Documented: 28  |  Undocumented: 14 (33%)

Top undocumented files by activity:
  src/payments/retry.ts          42 commits    last changed 2024-11-03  by Alice
  src/auth/session.ts            31 commits    last changed 2025-01-08  by Bob

To add docs to the highest-priority file, run:
  suggest_doc_update on /path/to/repo src/payments/retry.ts

Free tool — departure_risk

Identifies authors who are the sole or dominant contributor to critical files — the classic "bus factor 1" problem. Files where one person accounts for ≥60% of commits and has ≥5 total commits are flagged as single points of knowledge.

Usage in Claude:

departure_risk on /path/to/repo

Example output:

Departure risk analysis for '/path/to/repo'
Files analysed: 42  |  High-risk files: 8

Authors with exclusive knowledge:

  Alice Chen  (6 files)
    • src/auth/session.ts        12 commits  (83% by Alice Chen)
    • src/payments/retry.ts       9 commits  (75% by Alice Chen)

  Bob Smith  (2 files)
    • src/core/engine.go         22 commits  (91% by Bob Smith)

To generate a handover doc for the riskiest file:
  suggest_doc_update on /path/to/repo src/auth/session.ts

Pro tool — write_docs

Detects stale doc comments in a file, generates updated documentation via Claude, and appends the results to docs/<FileName>.md inside your repository — with a UTC timestamp on every run. Each run adds a new dated section, building a full audit trail of how your documentation evolved over time.

Usage in Claude:

write_docs on /path/to/repo for src/Tax.cs

Creates or appends to docs/Tax.md:

# Tax.cs — LivingDocs Documentation

<!-- LivingDocs update: 2026-05-19 10:32 UTC | src/Tax.cs -->
## 2026-05-19

### TaxCalculator.Calculate
Calculates net tax payable given gross income, deductions, and the current financial year slab rates...

*Confidence: 92%*

---

Pro tool — sync_confluence

Detects stale doc comments in a file, generates updated documentation via Claude, and writes the results to the matching Confluence page (creates it if it doesn't exist).

Required env vars:

VariableDescription
CONFLUENCE_BASE_URLYour Confluence Cloud URL, e.g. https://mycompany.atlassian.net/wiki
CONFLUENCE_EMAILAtlassian account email
CONFLUENCE_API_TOKENAPI token from id.atlassian.com/manage-profile/security/api-tokens
CONFLUENCE_SPACE_KEYTarget space key, e.g. DEV (visible in the space URL)

Usage in Claude:

sync_confluence on /path/to/repo for src/Tax.cs

Pro tool — scan_org

Scans every repository in a GitHub organisation and returns an org-wide staleness report. Shallow-clones each repo, runs stale-doc detection, then cleans up.

Required env vars:

VariableDescription
GITHUB_TOKENPersonal access token with repo and read:org scopes

Usage in Claude:

scan_org on my-company

Example output:

Org: my-company — 8 repos scanned | 142 files | 5 stale docs

⚠️ Repos with stale docs
api-service — 3 stale / 48 files
  - src/Auth.cs (100%)
  - src/Tax.cs (80%)

✅ Clean repos (6)
frontend, user-service, admin-api, ...

Pro tool — index_slack

Fetches messages from a Slack channel and adds them to the repository's knowledge index. Once indexed, query_docs returns results from Slack discussions alongside code documentation — so "why did we choose Postgres?" finds both code comments and the Slack thread where the decision was made.

Threads are grouped so context is preserved. Bot messages, join/leave events, and messages under 30 characters are filtered out automatically.

Required env vars:

VariableDescription
SLACK_BOT_TOKENBot token (xoxb-...) — Slack App → OAuth & Permissions

Bot OAuth scopes required: channels:history, channels:read

Usage in Claude:

index_slack on /path/to/repo C1234ABCD

Then query across code + Slack:

query_docs on /path/to/repo "how does the auth flow work?"

Pro tool — index_teams

Fetches messages from a Microsoft Teams channel via the Graph API and adds them to the knowledge index. Uses client credentials OAuth — no user sign-in required.

Required env vars:

VariableDescription
TEAMS_TENANT_IDAzure AD tenant ID
TEAMS_CLIENT_IDAzure AD app (client) ID
TEAMS_CLIENT_SECRETAzure AD client secret

Azure AD app setup:

  1. Register an app in Azure portal → App registrations
  2. Add application permission: ChannelMessage.Read.All
  3. Grant admin consent
  4. Create a client secret
  5. Get team/channel IDs from Graph Explorer

Usage in Claude:

index_teams on /path/to/repo <teamId> <channelId>

Pro tool — index_email

Fetches emails from an IMAP mailbox folder and adds them to the knowledge index. Engineering discussions, incident reports, and architectural decisions in email become searchable alongside code documentation. Email quoting (> lines) is stripped automatically.

Works with Gmail app passwords, Microsoft 365, and any standard IMAP provider.

Required env vars:

VariableDescription
IMAP_HOSTIMAP server hostname, e.g. imap.gmail.com
IMAP_USERNAMEEmail address
IMAP_PASSWORDPassword or app password
IMAP_PORTPort (default 993)

Gmail setup: Use an App Password — not your account password. Requires 2-Step Verification.

Usage in Claude:

index_email on /path/to/repo folder=Engineering

For best results, create a dedicated folder (e.g. Engineering/Architecture) and filter relevant emails into it.


Enterprise tier

Enterprise licenses run fully offline — no internet required for license validation. Ideal for air-gapped environments and regulated industries.

How it works:

  1. Contact [dinesh@novaders.com](mailto:dinesh@novaders.com?subject=LivingDocs Enterprise) with your company name and team size
  2. Receive a signed JWT license key and invoice
  3. Set LIVINGDOCS_LICENSE_KEY=<jwt> — validation happens locally, no external API calls

Enterprise features:

  • Offline JWT license validation (RSA-256 signed — works in air-gapped networks)
  • Azure OpenAI support — use your own Azure deployment instead of Anthropic
  • Self-contained binary — no .NET SDK required, download from GitHub Releases
  • Priority support and custom invoicing (annual or one-time)

Azure OpenAI setup:

{
  "mcpServers": {
    "livingdocs": {
      "command": "livingdocs-mcp",
      "env": {
        "LIVINGDOCS_LICENSE_KEY": "<enterprise-jwt>",
        "AZURE_OPENAI_ENDPOINT": "https://your-resource.openai.azure.com",
        "AZURE_OPENAI_API_KEY": "your-azure-key",
        "AZURE_OPENAI_DEPLOYMENT": "gpt-4o"
      }
    }
  }
}

Environment variables

VariableRequiredDescription
ANTHROPIC_API_KEYYes (AI features)Anthropic API key — not needed if using Azure OpenAI
LIVINGDOCS_LICENSE_KEYYes (Pro/Enterprise)LD-xxxx key from Polar.sh or JWT from Novaders LLP
AZURE_OPENAI_ENDPOINTEnterpriseAzure OpenAI resource endpoint
AZURE_OPENAI_API_KEYEnterpriseAzure OpenAI API key
AZURE_OPENAI_DEPLOYMENTEnterpriseAzure OpenAI deployment name, e.g. gpt-4o
GITHUB_TOKENRecommendedPAT with repo + read:org scopes — for scan_org, PR comments, and private repos
GITHUB_WEBHOOK_SECRETWebhookHMAC secret — must match the secret set in GitHub repo webhook settings
LIVINGDOCS_REPO_PATHWebhookAbsolute path to the local repo clone for the webhook handler to scan
CONFLUENCE_BASE_URLsync_confluenceConfluence Cloud URL, e.g. https://mycompany.atlassian.net/wiki
CONFLUENCE_EMAILsync_confluenceAtlassian account email
CONFLUENCE_API_TOKENsync_confluenceAtlassian API token
CONFLUENCE_SPACE_KEYsync_confluenceConfluence space key, e.g. DEV
SLACK_WEBHOOK_URLOptionalIncoming webhook URL for stale-doc Slack alerts after PR merges
SLACK_SIGNING_SECRETOptionalEnables the Auto-draft button in Slack notifications (Slack App → Basic Information)
SLACK_BOT_TOKENindex_slackBot token (xoxb-...) with channels:history + channels:read scopes
TEAMS_TENANT_IDindex_teamsAzure AD tenant ID
TEAMS_CLIENT_IDindex_teamsAzure AD app (client) ID
TEAMS_CLIENT_SECRETindex_teamsAzure AD client secret
IMAP_HOSTindex_emailIMAP server hostname, e.g. imap.gmail.com
IMAP_USERNAMEindex_emailEmail address / IMAP login
IMAP_PASSWORDindex_emailPassword or app password
IMAP_PORTindex_emailIMAP port — defaults to 993 (SSL)
DO_NOT_TRACKOptionalSet to 1 to disable anonymous telemetry (see below)
LIVINGDOCS_TELEMETRYOptionalSet to off to disable anonymous telemetry (see below)

Telemetry

LivingDocs sends a small amount of anonymous usage data so we can see which setup steps people complete (install, server start, first successful index, and when an upgrade prompt is shown). Each event contains only a random installation ID, the app version, and your OS — never your code, file paths, repository names, or any personal data.

To opt out, set either environment variable:

DO_NOT_TRACK=1
# or
LIVINGDOCS_TELEMETRY=off

Supported languages

C#, TypeScript, JavaScript, Python, Go

Build from source

git clone https://github.com/dinesh-mys/livingdocs
cd livingdocs
make build
make test
make scan REPO=/path/to/your/repo

Architecture

┌──────────────────────────────────────────────────────────────┐
│                        Interfaces                             │
│  Claude Desktop │ Claude Code │ VS Copilot │ GitHub Webhook  │
└───────┬──────────────────────────────────────┬───────────────┘
        │                                      │
   livingdocs-mcp                    LivingDocs.CopilotExt
   (MCP server)                      /api/github/webhook
        │                            /api/slack/actions
        │                            /api/copilot/chat (SSE)
        └──────────────────┬─────────┘
                    LivingDocs.Core
   ┌────────────────────────┴────────────────────────────────┐
GitScanner  DocExtractor  StaleDocDetector  ClaudeService
GapDetector  DepartureRisk  IndexService  DocWriterService
SlackConnector  TeamsConnector  EmailConnector  ConfluenceService

Projects

ProjectPurpose
LivingDocs.CoreShared engine — git scanning, doc extraction, stale detection, Claude API, knowledge gap + departure risk analysis, Slack/Teams/Email connectors, Confluence sync, org scanning
LivingDocs.McpServerCLI + MCP server — published as LivingDocs.Mcp on NuGet
LivingDocs.CopilotExtGitHub webhook handler, Slack notifications + approval flow, Copilot Extension SSE endpoint
LivingDocs.TestsxUnit test suite (94 tests)

Feedback & Support

License

MIT — see LICENSE.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for LivingDocs MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/livingdocs)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools