documentation-maintenance — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited documentation-maintenance (Rules) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
MCP (Model Context Protocol) server for generating technical documentation with diagrams.
📢 Status: Serwer MCP jest obecnie testowany w pracy.
Language / Język: English | Polski
<a name="english"></a>
📢 Status: The MCP server is currently being tested in production at work.
# 1. Start Docker containers
docker compose up -d
# 2. Use MCP client with your own prompt
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# 3. Or use in Cursor - open conversation and use MCP toolsYou can install and run the server directly via npx without cloning the repository:
# Latest version from main branch
npx github:lukaszzychal/mcp-doc-generator
# Specific version (tag)
npx github:lukaszzychal/mcp-doc-generator#v0.1.7
# Specific branch
npx github:lukaszzychal/mcp-doc-generator#feat/test-npx-installationRequirements:
No local Python, Graphviz, Pandoc, or other tools required! Everything runs in Docker containers.
For detailed instructions, see NPX_INSTALLATION.md.
To use AI image generation tools (generate_image_openai, generate_icon_openai, generate_illustration_openai):
export OPENAI_API_KEY=sk-...Note: OpenAI tools are optional. All other tools work without API key. If API key is not configured, you'll receive a helpful error message with setup instructions.
#### Automatic Polish Text Translation
The OpenAI image generation tools automatically detect and translate Polish words to English for better text rendering in generated images. DALL-E 3 has limited support for non-English text, especially with diacritics.
##### Why PL→EN Translation is Required
DALL-E 3 Limitations:
Why We Don't Support Direct Polish:
Our Solution: Instead of fighting DALL-E 3's limitations, we automatically translate Polish to English before image generation, ensuring:
How it works (Hybrid Approach):
Benefits:
Technical details:
Example:
"Diagram z tytułem 'DOBRY KOD' pokazujący Struktura SOLID""Diagram with title 'GOOD CODE' showing Structure SOLID" + instruction for English text renderingYou can use Polish in your prompts - the system will automatically handle translation for text that appears in the image.
#### Usage Examples
In Cursor (Recommended): Simply describe what you want in natural language:
Wygeneruj ilustrację mapy myśli "Zasady dobrego kodu" z centralnym węzłem
"Dobry kod = prosty, elastyczny, odporny" i 5 gałęziami: SOLID, DRY, KISS, GRASP, CUPID.
Zapisz jako output/mindmap.pngCursor automatically:
generate_illustration_openai via MCP protocolUsing mcp_client.py:
# Set API key
export OPENAI_API_KEY=sk-...
# Generate illustration from prompt
python3 scripts/mcp_client.py -p "Wygeneruj ilustrację plakatu z zasadami programowania. Zapisz jako output/poster.png"
# Or from file
python3 scripts/mcp_client.py -f prompt.txtNo Python code needed! Just describe what you want - the MCP server handles everything automatically.
Latest stable version: v0.1.7
For production use, we recommend using a tagged release:
# Clone specific version
git clone --branch v0.1.7 https://github.com/lukaszzychal/mcp-doc-generator.git
# Or checkout tag in existing repo
git checkout v0.1.7Available releases:
Note: The main branch contains the latest development version. For production, use a tagged release.For a smaller, more secure image (~300-500MB smaller):
docker compose -f docker-compose.distroless.yml up -dSee DOCKER_BUILD_OPTIMIZATION.md for details.
MCPServer/
├── src/ # MCP server source code
├── scripts/ # Helper scripts (mcp_client.py, install.sh, generate_examples.py)
├── tests/ # Tests and test files
├── docs/ # Project documentation
├── examples/ # Usage examples
└── output/ # Output directory (mounted in Docker)Details: PROJECT_STRUCTURE.md
# From file
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# From command line
python3 scripts/mcp_client.py -p "Generate C4 context diagram for e-commerce. Save as output/diagram.png"
# From stdin
cat prompt.txt | python3 scripts/mcp_client.pyTwo installation methods are available:
#### Method 1: Docker (Recommended for Production)
docker compose up -d {
"mcpServers": {
"Documentation": {
"command": "docker",
"args": [
"exec",
"-i",
"mcp-documentation-server",
"sh",
"-c",
"cd /app/src && PYTHONPATH=/app/src python server.py"
],
"env": {
"PYTHONPATH": "/app/src"
}
}
}
}#### Method 2: npx (Recommended - Automatic Docker Management)
{
"mcpServers": {
"mcp-doc-generator": {
"command": "npx",
"args": [
"github:lukaszzychal/mcp-doc-generator#v0.1.7"
]
}
}
}See [CURSOR_NPX_SETUP.md](docs/CURSOR_NPX_SETUP.md) for detailed configuration instructions.
# Tests for all MCP tools
python3 tests/test_mcp_local.py
# Cursor integration test
./tests/test_mcp_cursor_integration.shSee LICENSE
<a name="polski"></a>
MCP (Model Context Protocol) server do generowania dokumentacji technicznej z diagramami.
📢 Status: Serwer MCP jest obecnie testowany w pracy.
# 1. Uruchom kontenery Docker
docker compose up -d
# 2. Użyj klienta MCP z własnym promptem
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# 3. Lub użyj w Cursor - otwórz konwersację i użyj narzędzi MCPMożesz zainstalować i uruchomić serwer bezpośrednio przez npx bez klonowania repozytorium:
# Najnowsza wersja z gałęzi main
npx github:lukaszzychal/mcp-doc-generator
# Konkretna wersja (tag)
npx github:lukaszzychal/mcp-doc-generator#v0.1.7
# Konkretna gałąź
npx github:lukaszzychal/mcp-doc-generator#feat/test-npx-installationWymagania:
Nie trzeba instalować Pythona, Graphviz, Pandoc ani innych narzędzi lokalnie! Wszystko działa w kontenerach Docker.
Szczegółowe instrukcje: NPX_INSTALLATION.md.
Aby używać narzędzi generowania obrazów AI (generate_image_openai, generate_icon_openai, generate_illustration_openai):
export OPENAI_API_KEY=sk-...Uwaga: Narzędzia OpenAI są opcjonalne. Wszystkie inne narzędzia działają bez klucza API. Jeśli klucz API nie jest skonfigurowany, otrzymasz pomocny komunikat błędu z instrukcjami konfiguracji.
#### Automatyczne Tłumaczenie Polskiego Tekstu
Narzędzia generowania obrazów OpenAI automatycznie wykrywają i tłumaczą polskie słowa na angielski, aby zapewnić lepsze renderowanie tekstu w generowanych obrazach. DALL-E 3 ma ograniczone wsparcie dla tekstu w językach innych niż angielski, szczególnie dla znaków diakrytycznych.
##### Dlaczego Mapowanie PL→EN jest Wymagane
Ograniczenia DALL-E 3:
Dlaczego Nie Obsługujemy Bezpośrednio Polskiego:
Nasze Rozwiązanie: Zamiast walczyć z ograniczeniami DALL-E 3, automatycznie tłumaczymy polski na angielski przed generowaniem obrazu, zapewniając:
Jak to działa (Podejście Hybrydowe):
Zalety:
Szczegóły techniczne:
Przykład:
"Diagram z tytułem 'DOBRY KOD' pokazujący Struktura SOLID""Diagram with title 'GOOD CODE' showing Structure SOLID" + instrukcja renderowania tekstu po angielskuMożesz używać polskiego w swoich promptach - system automatycznie obsłuży tłumaczenie dla tekstu, który pojawia się na obrazie.
#### Przykłady Użycia
W Cursor (Zalecane): Po prostu opisz co chcesz w języku naturalnym:
Wygeneruj ilustrację mapy myśli "Zasady dobrego kodu" z centralnym węzłem
"Dobry kod = prosty, elastyczny, odporny" i 5 gałęziami: SOLID, DRY, KISS, GRASP, CUPID.
Zapisz jako output/mindmap.pngCursor automatycznie:
generate_illustration_openai przez protokół MCPUżywając mcp_client.py:
# Ustaw klucz API
export OPENAI_API_KEY=sk-...
# Wygeneruj ilustrację z promptu
python3 scripts/mcp_client.py -p "Wygeneruj ilustrację plakatu z zasadami programowania. Zapisz jako output/poster.png"
# Lub z pliku
python3 scripts/mcp_client.py -f prompt.txtNie trzeba pisać kodu Python! Wystarczy opisać co chcesz - serwer MCP obsługuje wszystko automatycznie.
Najnowsza stabilna wersja: v0.1.7
Do użycia produkcyjnego zalecamy użycie tagowanej wersji:
# Sklonuj konkretną wersję
git clone --branch v0.1.7 https://github.com/lukaszzychal/mcp-doc-generator.git
# Lub przełącz się na tag w istniejącym repo
git checkout v0.1.7Dostępne wydania:
Uwaga: Branch main zawiera najnowszą wersję deweloperską. Do produkcji używaj tagowanej wersji.Dla mniejszego, bardziej bezpiecznego obrazu (~300-500MB mniej):
docker compose -f docker-compose.distroless.yml up -dZobacz DOCKER_BUILD_OPTIMIZATION.md dla szczegółów.
MCPServer/
├── src/ # Kod źródłowy serwera MCP
├── scripts/ # Skrypty pomocnicze (mcp_client.py, install.sh)
├── tests/ # Testy i pliki testowe
├── docs/ # Dokumentacja projektu
├── examples/ # Przykłady użycia
└── output/ # Katalog wyjściowy (zmountowany w Docker)Szczegóły: PROJECT_STRUCTURE.md
# Z pliku
python3 scripts/mcp_client.py -f examples/prompts/prompt.txt
# Z linii komend
python3 scripts/mcp_client.py -p "Generate C4 context diagram for e-commerce. Save as output/diagram.png"
# Z stdin
cat prompt.txt | python3 scripts/mcp_client.pyDostępne są dwie metody instalacji:
#### Metoda 1: Docker (Zalecane dla produkcji)
docker compose up -d {
"mcpServers": {
"Documentation": {
"command": "docker",
"args": [
"exec",
"-i",
"mcp-documentation-server",
"sh",
"-c",
"cd /app/src && PYTHONPATH=/app/src python server.py"
],
"env": {
"PYTHONPATH": "/app/src"
}
}
}
}#### Metoda 2: npx (Zalecane - Automatyczne zarządzanie Dockerem)
{
"mcpServers": {
"mcp-doc-generator": {
"command": "npx",
"args": [
"github:lukaszzychal/mcp-doc-generator#v0.1.7"
]
}
}
}Zobacz [CURSOR_NPX_SETUP.md](docs/CURSOR_NPX_SETUP.md) dla szczegółowych instrukcji konfiguracji.
# Testy wszystkich narzędzi MCP
python3 tests/test_mcp_local.py
# Test integracji z Cursor
./tests/test_mcp_cursor_integration.sh
# Podstawowe testy systemu
./scripts/test.shZobacz LICENSE
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.