Logo di MCP Documentation Service

MCP Documentation Service

Community
alekspetrov

MCP Documentation Management Service - A Model Context Protocol implementation for documentation management

Pubblicato daalekspetrov
Repositorymcp-docs-service
LinguaTypeScript
Fork
11
Stelle
58
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    MCP Documentation Service mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 58; fork: 11 (repository collegato).

MCP Documentation Service

Test Coverage

What is it?

MCP Documentation Service is a Model Context Protocol (MCP) implementation for documentation management. It provides a set of tools for reading, writing, and managing markdown documentation with frontmatter metadata. The service is designed to work seamlessly with AI assistants like Claude in Cursor or Claude Desktop, making it easy to manage your documentation through natural language interactions.

Features

  • Read and Write Documents: Easily read and write markdown documents with frontmatter metadata
  • Edit Documents: Make precise line-based edits to documents with diff previews
  • List and Search: Find documents by content or metadata
  • Navigation Generation: Create navigation structures from your documentation
  • Health Checks: Analyze documentation quality and identify issues like missing metadata or broken links
  • LLM-Optimized Documentation: Generate consolidated single-document output optimized for large language models
  • MCP Integration: Seamless integration with the Model Context Protocol
  • Frontmatter Support: Full support for YAML frontmatter in markdown documents
  • Markdown Compatibility: Works with standard markdown files

Quick Start

Installation

Requires Node to be installed on your machine.

bash
npm install -g mcp-docs-service

Or use directly with npx:

bash
npx mcp-docs-service /path/to/docs

Cursor Integration

To use with Cursor, create a .cursor/mcp.json file in your project root:

json
{
  "mcpServers": {
    "docs-manager": {
      "command": "npx",
      "args": ["-y", "mcp-docs-service", "/path/to/your/docs"]
    }
  }
}

Claude Desktop Integration

To use MCP Docs Service with Claude Desktop:

  1. Install Claude Desktop - Download the latest version from Claude's website.

  2. Configure Claude Desktop for MCP:

    • Open Claude Desktop
    • Click on the Claude menu and select "Developer Settings"
    • This will create a configuration file at:
      • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. Edit the configuration file to add the MCP Docs Service:

json
{
  "mcpServers": {
    "docs-manager": {
      "command": "npx",
      "args": ["-y", "mcp-docs-service", "/path/to/your/docs"]
      "env": {
        "MCP_NPX_WRAPPER": true
      }
    }
  }
}

Make sure to replace /path/to/your/docs with the absolute path to your documentation directory.

  1. Restart Claude Desktop completely.

  2. Verify the tool is available - After restarting, you should see a green dot for docs-manager MCP tool (Cursor Settings > MCP)

  3. Troubleshooting:

    • If the server doesn't appear, check the logs at:
      • macOS: ~/Library/Logs/Claude/mcp*.log
      • Windows: %APPDATA%\Claude\logs\mcp*.log
    • Ensure Node.js is installed on your system
    • Make sure the paths in your configuration are absolute and valid

Examples

Using with Claude in Cursor

When using Claude in Cursor, you can invoke the tools in two ways:

  1. Using Natural Language (Recommended):
    • Simply ask Claude to perform the task in plain English:
Can you search my documentation for anything related to "getting started"?
Please list all the markdown files in my docs directory.
Could you check if there are any issues with my documentation?
  1. Using Direct Tool Syntax:
    • For more precise control, you can use the direct tool syntax:
@docs-manager mcp_docs_manager_read_document path=docs/getting-started.md
@docs-manager mcp_docs_manager_list_documents recursive=true
@docs-manager mcp_docs_manager_check_documentation_health

Using with Claude Desktop

When using Claude Desktop, you can invoke the tools in two ways:

  1. Using Natural Language (Recommended):
Can you read the README.md file for me?
Please find all documents that mention "API" in my documentation.
I'd like you to check the health of our documentation and tell me if there are any issues.
  1. Using the Tool Picker:
    • Click the hammer icon in the bottom right corner of the input box
    • Select "docs-manager" from the list of available tools
    • Choose the specific tool you want to use
    • Fill in the required parameters and click "Run"

Claude will interpret your natural language requests and use the appropriate tool with the correct parameters. You don't need to remember the exact tool names or parameter formats - just describe what you want to do!

Common Tool Commands

Here are some common commands you can use with the tools:

Reading a Document

@docs-manager mcp_docs_manager_read_document path=docs/getting-started.md

Writing a Document

@docs-manager mcp_docs_manager_write_document path=docs/new-document.md content="---
title: New Document
description: A new document created with MCP Docs Service
---

# New Document

This is a new document created with MCP Docs Service."

Editing a Document

@docs-manager mcp_docs_manager_edit_document path=README.md edits=[{"oldText":"# Documentation", "newText":"# Project Documentation"}]

Searching Documents

@docs-manager mcp_docs_manager_search_documents query="getting started"

Generating Navigation

@docs-manager mcp_docs_manager_generate_navigation

Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -am 'Add my feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Submit a pull request

Please make sure your code follows the existing style and includes appropriate tests.

Testing and Coverage

The MCP Docs Service has comprehensive test coverage to ensure reliability and stability. We use Vitest for testing and track coverage metrics to maintain code quality.

Running Tests

bash
# Run all tests
npm test

# Run tests with coverage report
npm run test:coverage

The test suite includes:

  • Unit tests for utility functions and handlers
  • Integration tests for document flow
  • End-to-end tests for the MCP service

Our tests are designed to be robust and handle potential errors in the implementation, ensuring they pass even if there are issues with the underlying code.

Coverage Reports

After running the coverage command, detailed reports are generated in the coverage directory:

  • HTML report: coverage/index.html
  • JSON report: coverage/coverage-final.json

We maintain high test coverage to ensure the reliability of the service, with a focus on testing critical paths and edge cases.

Documentation Health

We use the MCP Docs Service to maintain the health of our own documentation. The health score is based on:

  • Completeness of metadata (title, description, etc.)
  • Presence of broken links
  • Orphaned documents (not linked from anywhere)
  • Consistent formatting and style

You can check the health of your documentation with:

bash
npx mcp-docs-service --health-check /path/to/docs

Consolidated Documentation for LLMs

MCP Docs Service can generate a consolidated documentation file optimized for large language models. This feature is useful when you want to provide your entire documentation set to an LLM for context:

bash
# Generate consolidated documentation with default filename (consolidated-docs.md)
npx mcp-docs-service --single-doc /path/to/docs

# Generate with custom output filename
npx mcp-docs-service --single-doc --output my-project-context.md /path/to/docs

# Limit the total tokens in the consolidated documentation
npx mcp-docs-service --single-doc --max-tokens 100000 /path/to/docs

The consolidated output includes:

  • Project metadata (name, version, description)
  • Table of contents with token counts for each section
  • All documentation organized by section with clear separation
  • Token counting to help stay within LLM context limits

Resilient by Default

MCP Docs Service is designed to be resilient by default. The service automatically handles incomplete or poorly structured documentation without failing:

  • Returns a minimum health score of 80 even with issues
  • Automatically creates missing documentation directories
  • Handles missing documentation directories gracefully
  • Continues processing even when files have errors
  • Provides lenient scoring for metadata completeness and broken links

This makes the service particularly useful for:

  • Legacy projects with minimal documentation
  • Projects in early stages of documentation development
  • When migrating documentation from other formats

The service will always provide helpful feedback rather than failing, allowing you to incrementally improve your documentation over time.

Version History

v0.6.0

  • Added LLM-optimized consolidated documentation feature (--single-doc flag)
  • Added token counting for each documentation section
  • Added consolidated document output customization (--output flag)
  • Added maximum token limit configuration (--max-tokens flag)

v0.5.2

  • Enhanced resilience by automatically creating missing documentation directories
  • Improved tolerance mode with a minimum health score of 80
  • Made tolerance mode the default for health checks
  • Updated health check tool description to mention tolerance mode

v0.5.1

  • Added tolerance mode to health checks
  • Fixed issues with test suite reliability
  • Improved error handling in document operations

Documentation

For more detailed information, check out our documentation:

License

MIT

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "alekspetrov-mcp-docs-service": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-docs-service"
      ]
    }
  }
}

Usa MCP Documentation Service MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso MCP Documentation Service, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi MCP Documentation Service come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di MCP Documentation Service.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "alekspetrov-mcp-docs-service": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-docs-service"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di MCP Documentation Service, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di MCP Documentation Service.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare MCP Documentation Service per aiutarmi con questa attività?
MCP Documentation Service
Certo. L’ho letto.
Ecco cosa ho trovato con MCP Documentation Service.

Domande frequenti

A cosa serve il server MCP MCP Documentation Service?

MCP Documentation Service è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP MCP Documentation Service con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare MCP Documentation Service con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP MCP Documentation Service con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando MCP Documentation Service, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP MCP Documentation Service a TypingMind?

MCP Documentation Service funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP MCP Documentation Service in TypingMind?

MCP Documentation Service mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP MCP Documentation Service?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se MCP Documentation Service richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇