# ==============================================================================
# ellmos-servercommander-mcp — Local Marketing, Discoverability & Governance Log
# ==============================================================================
# Repository: ellmos-ai/ellmos-servercommander-mcp
# Canonical Path: C:\_Local_DEV\repos\ellmos-servercommander-mcp
# Remote: https://github.com/ellmos-ai/ellmos-servercommander-mcp.git
# Ecosystem: ellmos-ai (AI Infrastructure & MCP Control Plane)
# Umbrella: open-bricks (AI-Native Desktop & Developer Tools)
# Current Version: 0.1.0-alpha.21
# Maintenance Path: Pfad A (Repository-Hygiene, CI-Lifecycle-Workflows, bilinguale CONTRIBUTING-Guidelines, PEP 621 Metadaten, Multi-Host-Lock-Defense & Vertragstest-Erweiterung)
# Last Updated: 2026-10-02
# ==============================================================================

[POSITIONING & VALUE PROPOSITION]
ellmos ServerCommander MCP is an authoritative, local-first Model Context Protocol (MCP) server
specialized in resilient, diagnostic, and dry-run-first server operations. Designed specifically
for AI coding assistants and autonomous agent platforms (Claude Code, Cursor, Codex, Antigravity,
Gemini), it bridges AI agents with system administration tasks without exposing production
infrastructure to unverified, destructive mutations.

Key Differentiators:
1. Dry-Run & Staging First: Deployment planning (`sc_deploy`) calculates complete SHA-256 tree
   digests and verifies target profiles locally before executing any remote commands.
2. 100% Local-First & Zero-Egress: All diagnostics, forensic log parsing, and manifest hashing
   run strictly locally; zero cloud dependencies, zero hidden telemetry.
3. Resilient Forensic Log Analysis: In-memory and streaming Apache/Nginx access log analysis
   identifies error spikes, bot scanners, and suspicious path traversals with optional structured
   JSON export.
4. Non-Blocking Health Probes: Asynchronous HTTP endpoint verification executes within dedicated
   worker threads with resilient batch failure handling.
5. Multilingual Native i18n Engine: Full support for 6 locales (en, de, es, zh, ja, ru) across
   all MCP tool declarations, parameter schemas, and diagnostic outputs.

[TARGET PERSONAS]
1. [PERSONA-01] Autonomous AI Agent Engineers & Tooling Architects:
   - Need reliable server diagnostics and deployment preflight checks without exposing raw bash shells.
   - Require standardized JSON-RPC schemas and structured outputs for tool-calling agents.
2. [PERSONA-02] DevOps Engineers & Site Reliability Engineers (SREs):
   - Seek deterministic release verification, SHA-256 tree hashing, and local deployment histories.
   - Demand safe dry-run manifests and symlink traversal safeguards before remote sync.
3. [PERSONA-03] Security-Conscious System Administrators & SecOps:
   - Require unprivileged (RunAsInvoker) execution, zero sudo/root requirements, and strict secret isolation.
   - Want instant local forensic analysis of web server access logs during incident triage.
4. [PERSONA-04] Solo Developers & Full-Stack Maintainers:
   - Need a lightweight, zero-configuration MCP server to monitor API health and server configurations
     directly from their IDE or AI chat interface.

[CORE DISCOVERABILITY KEYWORDS & SEARCH PHRASES]
English:
- "mcp server operations tools"
- "mcp deploy dry-run server"
- "mcp access log analyzer"
- "mcp http health check tool"
- "local-first server management mcp"
- "claude code server operations mcp"
- "safe sftp deployment planning mcp"
- "ai assistant server preflight checks"
- "apache nginx log analysis mcp"
- "resilient http health check mcp"
- "sqlite deploy history mcp"

German:
- "mcp server verwaltung tools"
- "mcp deployment dry run server"
- "mcp access log analyse"
- "mcp http health check werkzeug"
- "local first server management mcp"
- "claude code server operationen"
- "sichere deployment planung mcp"
- "ki assistent server vorabpruefung"
- "apache nginx log analyse mcp"
- "sqlite deploy historie mcp"

[10-DIMENSION COMPETITIVE / LANDSCAPE MATRIX]
| Dimension | Invariant | ServerCommander MCP | SSH / Raw Bash Scripts | Heavy Web Panels (cPanel) | Cloud SaaS APM (Datadog) | Generic Terminal MCP |
|:---|:---:|---|---|---|---|---|
| **1. AI-Native Tool Calling** | `INV-I18N-08` | Direct stdio / JSON-RPC schemas | Requires fragile prompt glue | None / Web browser only | Custom API webhooks | Raw unstructured text |
| **2. Safe Staging & Dry-Run** | `INV-DRY-02` | Default `dry_run=True` + SHA-256 tree | High risk of destructive typo | Opaque web mutation | Read-only agent metrics | Arbitrary command danger |
| **3. Local-First & Zero-Egress** | `INV-LOCAL-01` | 100% Local / Zero telemetry | Local / Direct remote | Remote host web portal | Constant outbound telemetry | Local shell execution |
| **4. Privilege Requirements** | `INV-PRIV-06` | Unprivileged `RunAsInvoker` | Often requires sudo / root | Full root system daemon | Root daemon / system agent | Inherits host shell rights |
| **5. Forensic Log Analysis** | `INV-LOG-03` | Regex token parsing + bot audit | Manual grep / awk / sed | Basic UI log viewer | Heavy proprietary agent | Raw grep output |
| **6. Resilient HTTP Probes** | `INV-PROBE-04` | Non-blocking thread + batch safe | curl loop (fails on 1st error) | Periodic polling check | Centralized external probe | curl CLI subprocess |
| **7. Mail Safety Staging** | `INV-MAIL-05` | Readiness check without send | Direct mail command risk | Webmail interface | Email alert service | Blind mailx invocation |
| **8. Process & CWD Isolation** | `INV-SEC-07` | `PYTHONSAFEPATH=1` defense | Shell inherits rogue CWD | Fixed daemon user | Sandboxed system service | Inherits caller environment |
| **9. Cloud-Sync Conflict Defense** | `INV-SYNC-09` | Built-in gitignore & lock guards | None (git-only) | Database state only | Cloud-hosted dashboard | None |
| **10. Security SLA & Governance** | `INV-SLA-10` | 48h SLA via security@ellmos.ai | Community / self-supported | Vendor commercial support | Enterprise commercial SLA | Unmaintained community |

[GOVERNANCE & RUNTIME INVARIANTS]
- INV-LOCAL-01: 100% Local-First & Zero-Egress (Local diagnostic and dry-run execution; zero unverified outbound telemetry)
- INV-DRY-02:   Fail-Safe Deployment Staging (Default `dry_run=True`; manifest calculation & SHA-256 tree hashing before target execution)
- INV-LOG-03:   Sanitized Access-Log Analysis (Read-only parse; regex token extraction; optional structured JSON output without credential leaks)
- INV-PROBE-04: Non-Blocking Resilient Health Probes (Worker thread HTTP GET with strict timeouts; resilient error handling without aborting batches)
- INV-MAIL-05:  Dry-Run Mail Configuration Status (Readiness checks report gaps without sending emails; protocol verification only)
- INV-PRIV-06:  Non-Elevation / RunAsInvoker (Unprivileged user mode; zero sudo/root/UAC requirements)
- INV-SEC-07:   Safe Process & Working Directory Isolation (`PYTHONSAFEPATH=1`; hardened launcher against rogue working directory packages)
- INV-I18N-08:  Native Multi-Language i18n Engine (6 locales: en, de, es, zh, ja, ru with automated English fallback)
- INV-SYNC-09:  Cloud-Sync & Multi-Agent Lock Hardening (.gitignore hardened against sync conflicts `*-conflict-*` and multi-agent locks `LOCK*`)
- INV-SLA-10:   48-Hour Response & 5-Day Triage SLA (Direct security response via security@ellmos.ai and security@open-bricks.org)

[SIBLING ECOSYSTEM SYNERGIES]
- ellmos-ai/ellmos-filecommander-mcp: Filesystem operations, process management, OCR, archives, and exports.
- ellmos-ai/ellmos-codecommander-mcp: Code analysis, AST inspection, JSON repair, imports, and diffs.
- ellmos-ai/ellmos-clatcher-mcp: File repair, encoding correction, format conversion, and batch deduplication.
- ellmos-ai/n8n-manager-mcp: n8n workflow management, deployment, and node exploration.
- ellmos-ai/ellmos-controlcenter-mcp: MCP stack discovery, profile management, and control-plane checks.
- ellmos-ai/ellmos-homebase-mcp: Local-first LLM memory, knowledge base, state, and swarm orchestration.
- ellmos-ai/sqlite-transit-sync: Encrypted SQLite database transit, synchronization, and read-replica engine.
- ellmos-ai/workflowhooker: Git-hook-driven workflow automation and execution safety boundaries.
- open-bricks/safe-start-for-codex: Pre-flight environment validation and safety checks.
- open-bricks/automation-master: Multi-agent coordination engine.

[RECOMMENDED DISTRIBUTION & REGISTRY CHANNELS]
- npm Registry: Published as `ellmos-servercommander-mcp` (alpha channel)
- MCP Official Directory: Cataloged in `server.json` schema (`io.github.ellmos-ai/ellmos-servercommander-mcp`)
- Glama.ai Directory: Verified manifest in `glama.json`
- Smithery.ai: Manifest in `smithery.yaml`
- GitHub Topics: #mcp, #model-context-protocol, #server-operations, #devops, #health-checks, #access-logs, #local-first

# ------------------------------------------------------------------------------
# Historical Log of Discoverability & Marketing Checks
# ------------------------------------------------------------------------------
2026-08-24: Pfad B initial discoverability and visual design release:
  - Dual Mermaid diagrams (architecture flowchart TD and operations sequence diagram).
  - Quick Navigation jump links, Key Capabilities table, and initial sibling matrix.
2026-09-10: Pfad A technical hygiene & security hardening (v0.1.0-alpha.18):
  - Hardened launcher against rogue working directory package hijacking (`PYTHONSAFEPATH=1`).
  - Added CI multi-OS bytecode gate, stale workflow, and multi-agent lock gitignore rules.
2026-09-11: Pfad B Discoverability, Design & Governance Parity Overhaul (v0.1.0-alpha.19):
  - Established 10 Governance & Runtime Invariants (INV-LOCAL-01 to INV-SLA-10) across all documentation.
  - Standardized 15-anchor Quick Navigation with 100% bilingual parity across README and README_de.
  - Created THIRD_PARTY_LICENSES.md with full open-source license audit and compliance guarantees.
  - Created local MARKETING-LOG.txt with 4 target personas, 5-way competitive matrix, and search keywords.
  - Synchronized llms.txt, package.json, pyproject.toml, server.json, and glama.json.
  - Expanded automated contract test suite in tests/test_repository_hygiene.py.
2026-09-13: Pfad A Repository Hygiene, CI Timeout Guardrails & Multi-Host Sync Defense (v0.1.0-alpha.20):
  - Added timeout-minutes: 15 runaway guardrails and permissions: contents: read to CI test matrix job.
  - Added timeout-minutes: 10 guardrail to stale issue & PR lifecycle workflow.
  - Hardened .gitignore against multi-host conflict copies (* (Kopie)*, * (Copy)*, *conflicted copy*) and test caches (.tox, .turbo, .nyc_output, .hypothesis).
  - Configured 9 Ruff lint rulesets (E, F, W, I, UP, B, SIM, C4, RUF) and cleaned all imports/syntax.
  - Bumped version to 0.1.0-alpha.20 / 0.1.0a20 across all manifests and synchronized llms.txt (2026-09-13).
  - Expanded contract test suite in tests/test_repository_hygiene.py to 59+ tests (100% green).
2026-09-20: Pfad B Discoverability, Level 1 SBOM, NOTICE & § 521 BGB Statutory Notice (v0.1.0-alpha.21):
  - Upgraded README.md and README_de.md to standardized 18-point Quick Navigation with reciprocal dual anchors.
  - Formalized target personas [PERSONA-01] to [PERSONA-04] with high-intent bilingual SEO search queries.
  - Expanded competitive matrix to full 10 dimensions mapped strictly to invariants INV-LOCAL-01 through INV-SLA-10.
  - Created formal root NOTICE attribution file under open-bricks umbrella and updated package.json/pyproject.toml packaging.
  - Upgraded THIRD_PARTY_LICENSES.md to Level 1 SBOM with Invariant Cross-Reference Matrix and RunAsInvoker certification.
  - Added Section 18 German statutory disclaimer (§ 521 BGB Gefälligkeitsrecht) with English translation to both READMEs.
  - Bumped version to 0.1.0-alpha.21 / 0.1.0a21 across all manifests (package.json, pyproject.toml, server.json, glama.json, llms.txt).
  - Expanded automated repository hygiene contract test suite in tests/test_repository_hygiene.py.
2026-09-24: Pfad A Repository Hygiene, CI Lifecycle Workflows, Lock Defense & Level 1 SBOM Re-Audit:
  - Added .github/workflows/welcome.yml with actions/first-interaction@v3, timeout-minutes: 5, least-privilege permissions, and concurrency cancel-in-progress: true.
  - Hardened .github/workflows/stale.yml with concurrency cancel-in-progress: true.
  - Hardened .gitignore with multi-host device tokens (*-ASUS*, *-Mac Studio*, *-MacBook*, *-WORKSTATION.*), lock patterns (LOCK.user.*, LOCK.until.*, LOCK.condition.*, .automation-lock), and pytest temp directories (.pytest_temp/, .pytest_tmp*/).
  - Standardized pyproject.toml with canonical Notice URL under [project.urls], pytest norecursedirs and minversion = "7.0", and 20 saturated keywords.
  - Preserved version 0.1.0-alpha.21 / 0.1.0a21 strictly frozen per rule T-20260920-167562623; added [Unreleased] notes in CHANGELOG.md.
  - Re-audited Level 1 SBOM in THIRD_PARTY_LICENSES.md Stand 2026-09-24 with RunAsInvoker non-elevation and zero-copyleft guarantees.
  - Synchronized llms.txt context index with 2026-09-24 timestamp and updated test baseline badges across READMEs.
  - Expanded automated contract test suite in tests/test_repository_hygiene.py.
2026-09-29: Pfad B Discoverability, Dual HTML Anchors, ASCII Vier-Sichten Topology & Level 1 SBOM Text Companion:
  - Saturated GitHub repository topics to full 20/20 platform capacity (added ai-agents, fastmcp, devops, dry-run, zero-egress, ellmos-ai, open-bricks, python, sysadmin).
  - Aligned PEP 621 pyproject.toml keywords with all 20 GitHub topics and expanded [project.urls] with Level 1 SBOM, Third-Party Licenses (Text), and Plain-Text License.
  - Implemented 18-point dual HTML anchors (<a id="sec-01"></a>..<a id="sec-18"></a>) across README.md and README_de.md preserving full semantic jump-link compatibility.
  - Introduced Section 02 ASCII Architectural Topology (Four-View Projection: Component Structure, Operational Engines, Local Persistence, Security Boundary) in both READMEs.
  - Created canonical Level 1 SBOM plain-text companion file THIRD_PARTY_LICENSES.txt, packaged in package.json and pyproject.toml license-files, referenced in NOTICE and THIRD_PARTY_LICENSES.md.
  - Updated documentation badges to Level 1 SBOM Plain Text and verified timestamp 2026-09-29.
  - Expanded automated repository hygiene contract test suite in tests/test_repository_hygiene.py with dual anchor, ASCII architecture, topic saturation, and SBOM plain text tests.
2026-10-02: Pfad A Repository Hygiene, Bilingual CONTRIBUTING Guidelines, CI Lifecycle Automation & Level 1 SBOM Re-Audit:
  - Deployed .github/workflows/auto-assign.yml (actions/github-script@v7, timeout-minutes: 5, cancel-in-progress, least-privilege issues/pull-requests: write).
  - Deployed .github/workflows/label-sync.yml (EndBug/label-sync@v2, timeout-minutes: 5, cancel-in-progress, least-privilege issues: write).
  - Provisioned canonical .github/labels.yml with 11 standard governance labels per GOVERNANCE.md §4.2.
  - Authored comprehensive bilingual CONTRIBUTING.md guidelines (English & Deutsch) specifying Plan D local development workflow (C:\_Local_DEV\repos\ellmos-servercommander-mcp), unprivileged RunAsInvoker non-elevation mode (INV-PRIV-06), all 10 governance invariants (INV-LOCAL-01..INV-SLA-10), version-freeze discipline (T-20260920-167562623), statutory disclaimer (§ 521 BGB Gefälligkeitsrecht), and binding 48h Security Response SLA.
  - Hardened .gitignore against multi-host device tokens (*-IDEAPAD*, *-IDEAPAD-GEI*, *-IDEAPAD-GEI.*), Windows shell caches (Desktop.ini, ehthumbs.db), task planning artifacts (TASKPLAN_*.md, *-TASKPLAN*), and multi-agent lock patterns (LOCK.dev.*, LOCK.antigravity.*, LOCK.bugsearch.*).
  - Aligned PEP 621 pyproject.toml [project.urls] registering Contributing guide endpoint alongside existing Level 1 SBOM and Notice endpoints.
  - Re-audited Level 1 SBOM in THIRD_PARTY_LICENSES.md and plain-text companion THIRD_PARTY_LICENSES.txt to Stand 2026-10-02 with full invariant matrix, zero-copyleft guarantee, and unprivileged user-mode certification.
  - Synchronized documentation badges in README.md and README_de.md (Contributing Guide, Verified: 2026-10-02 / Geprüft: 2026-10-02) and updated AI search index in llms.txt (Stand 2026-10-02).
  - Maintained version 0.1.0-alpha.21 / 0.1.0a21 strictly frozen per rule T-20260920-167562623, recording all hygiene additions under ## [Unreleased] in CHANGELOG.md.
  - Expanded automated repository hygiene contract test suite in tests/test_repository_hygiene.py with contract tests for bilingual CONTRIBUTING guidelines, CI lifecycle workflows, labels configuration, PEP 621 Contributing URL, extended lock defense, and Level 1 SBOM Stand 2026-10-02.
