Przejdź do treści
Biblioteka skilli
AI i agenci · Integracja z narzędziem

dsh-mcp-manager

/dsh-mcp-manager

Zarządza serwerami MCP w działającym DSH przez API wtyczki: dodaje, włącza, sprawdza stan, łączy ponownie i przenosi konfigurację.

Licencja
MIT
Ostatnia zmiana repozytorium
06.11.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 06.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/mcp-manager.mjs

Co robi i kiedy

Zarządza serwerami MCP w działającym DSH przez API wtyczki: dodaje, włącza, sprawdza stan, łączy ponownie i przenosi konfigurację.

Oryginalny opis (EN)

Manage MCP (Model Context Protocol) servers in a running DSH (DeepSeek Harness) instance through the dsh-mcp-manager plugin API. Add, configure, enable/disable, health-check, and reconnect MCP services, inspect event logs, and import/export MCP configuration (including Claude Desktop mcpServers format). Use when the user asks to manage MCP services in DSH, troubleshoot an offline or unreachable MCP server, view MCP logs, or migrate MCP configuration into or out of DSH.

Jak działa

  1. When to use this skill
  2. When NOT to use this skill
  3. Prerequisites
  4. Quick start (CLI)
  5. Command reference
  6. Server object model
  7. Status semantics
  8. HTTP API reference (fallback when the CLI is unavailable)
  9. Safety rules
Sekcje z nagłówków SKILL.md, w oryginale · 153 linii, 1 156 słów
Podgląd SKILL.md
---
name: dsh-mcp-manager
description: Manage MCP (Model Context Protocol) servers in a running DSH (DeepSeek Harness) instance through the dsh-mcp-manager plugin API. Add, configure, enable/disable, health-check, and reconnect MCP services, inspect event logs, and import/export MCP configuration (including Claude Desktop mcpServers format). Use when the user asks to manage MCP services in DSH, troubleshoot an offline or unreachable MCP server, view MCP logs, or migrate MCP configuration into or out of DSH.
---

# dsh-mcp-manager

`dsh-mcp-manager` is a DSH plugin that gives agents and humans a single control
plane for every MCP server attached to a DSH profile. This skill teaches an
agent when and how to drive it: either through the bundled zero-dependency CLI
(`scripts/mcp-manager.mjs`) or by calling the plugin's HTTP API directly.

## When to use this skill

- Add a new MCP server to DSH (stdio process or streamable-http endpoint)
- Enable / disable an MCP service without losing its configuration
- Check whether MCP servers are online, offline, connecting, or not loaded
- Reconnect a stuck MCP entry (restarts its loader fiber)
- Read the manager's event log (state transitions, probes, admin actions)
- Export the whole MCP configuration to a JSON file (secrets redacted by default)
- Import MCP configuration, including Claude Desktop `{"mcpServers": {...}}` format

## When NOT to use this skill

- The DSH instance is not running, or the plugin is not installed — install it
  first: `dsh plugin --profile <profile> add github:nomorenormal-commits/dsh-mcp-manager-MCP`
- The user wants to manage MCP servers for a different host (Claude Desktop,
  Cursor, etc.) — this skill only manages DSH profiles.
- Editing raw `cordis.patch.yml` by hand. The plugin owns a managed block in
  that file; edits between the `# >>> dsh-mcp-manager managed block` markers
  are overwritten.

## Prerequisites

1. DSH >= 0.1.2 running with the plugin installed (the plugin exposes both the
   settings-page UI and the HTTP API).
2. The DSH web URL **including its token**, printed at startup, e.g.
   `http://127.0.0.1:3199/?token=XXXX`. The token is required: every API call
   must first exchange it for a session cookie (the CLI does this for you).
   You can also pass it via env vars `DSH_URL` and `DSH_TOKEN`.

## Quick start (CLI)

```sh
# List all MCP servers with live status
node scripts/mcp-manager.mjs --base "http://127.0.0.1:3199/?token=XXXX" list

# Add a stdio server (env/arg flags are repeatable)
node scripts/mcp-manager.mjs --base "..." add github --type stdio \
  --command npx --arg -y --arg @modelcontextprotocol/server-github \
  --env GITHUB_TOKEN=ghp_xxx

# Add a remote HTTP server
node scripts/mcp-manager.mjs --base "..." add web --type http \
  --url https://example.com/mcp --header Authorization="Bearer xxx"

# Daily operations
node scripts/mcp-manager.mjs --base "..." disable github
node scripts/mcp-manager.mjs --base "..." enable github
node scripts/mcp-manager.mjs --base "..." check            # probe everything
node scripts/mcp-manager.mjs --base "..." check github     # probe one
node scripts/mcp-manager.mjs --base "..." reconnect github
node scripts/mcp-manager.mjs --base "..." logs --server github --limit 50
node scripts/mcp-manager.mjs --base "..." remove github

# Backup & migration
node scripts/mcp-manager.mjs --base "..." export --out backup.json
node scripts/mcp-manager.mjs --base "..." import claude_desktop_config.json --mode merge
```

All output is JSON on stdout; errors go to stderr with exit code 1, so agents
can parse results deterministically.

## Command reference

| Command | API call | Notes |
| --- | --- | --- |
| `meta` | `GET /api/meta` | Plugin version, profile dir, patch status, templates |
| `list` | `GET /api/servers` | Views with `status`, `summary`, `patch` |
| `add <name> --type stdio --command <cmd> [--arg x]... [--env K=V]... [--cwd dir] [--timeout ms] [--fail-on-startup-error] [--disabled]` | `POST /api/servers` | Fails if name exists |
| `add <name> --type http --url <url> [--header K=V]...` | `POST /api/servers` | |
| `set <name> [same flags]` | `POST /api/servers` with `originalName` | Merge-edit existing config |
| `enable <name>` / `disable <name>` | `POST /api/servers/toggle` | Keeps config on disk |
| `remove <name>` | `POST /api/servers/delete` | Managed entries only |
| `check [name]` | `POST /api/servers/check` | Omit name to check all |
| `reconnect <name>` | `POST /api/servers/reconnect` | Restarts loader fiber |
| `logs [--server name] [--since ISO] [--limit n]` | `GET /api/logs` | Newest last |
| `export [--no-redact] [--out file]` | `GET /api/export` | Redaction on by default |
| `import <file> [--mode merge\|replace]` | `POST /api/import` | Accepts plugin export format and Claude Desktop format |

## Server object model

| Field | stdio | http | Description |
| --- | --- | --- | --- |
| `serverName` | ✓ | ✓ | 1–32 chars, `[A-Za-z0-9_-]`; becomes tool prefix `mcp__<name>__` |
| `transport` | ✓ | ✓ | `stdio` or `streamable-http` |
| `command` | ✓ | | Executable, e.g. `npx` |
| `args` | ✓ | | String array |
| `env` | ✓ | | Map of environment variables (secrets live here) |
| `cwd` | opt | | Working directory |
| `url` | | ✓ | Endpoint URL |
| `headers` | | ✓ | Map of HTTP headers (secrets live here) |
| `toolCallTimeoutMs` | opt | opt | Default 60000 |
| `failOnStartupError` | opt | opt | Default false |
| `disabled` | opt | opt | Parked but kept |

## Status semantics

| Status | Meaning |
| --- | --- |
| `online` | Loader fiber `ACTIVE`; for HTTP servers the last reachability probe succeeded |
| `offline` | Fiber `FAILED`, or the HTTP probe failed/timed out |
| `missing` | Config on disk but no live loader entry (usually needs a DSH restart) |
| `connecting` | Fiber `PENDING` / `LOADING` / `UNLOADING` |
| `paused` | `disabled: true`; not loaded, config kept |

**stdio boundary:** stdio child processes are owned by the official
`@deepseek-ai/dsh-mcp-client` (auto-reconnect included). Their stderr never
passes through this plugin and they cannot be probed from outside, so stdio
"offline" reflects the fiber state only. HTTP servers get a real reachability
probe (any HTTP response, even 401/405, counts as reachable).

## HTTP API reference (fallback when the CLI is unavailable)

Base path: `/dsh-mcp-manager/api`. Authenticate first:
`GET <origin>/?token=<token>` and keep the `set-cookie` value as a `Cookie`
header on every subsequent request. All routes return
`{ ok: boolean, ... }` or `{ ok: false, error, details? }`.

| Method & path | Body / query |
| --- | --- |
| `GET /meta` | — |
| `GET /servers` | — |
| `POST /servers` | `{ server, originalName? }` |
| `POST /servers/toggle` | `{ serverName, enabled }` |
| `POST /servers/delete` | `{ serverName }` |
| `POST /servers/reconnect` | `{ serverName }` |
| `POST /servers/check` | `{ serverName? }` (empty = all) |
| `GET /logs` | `?serverName=&since=&limit=` |
| `GET /export` | `?redact=0` disables redaction |
| `POST /import` | `{ payload, mode: "merge" \| "replace" }` |

## Safety rules

- **Secrets:** `export` redacts env/header values matching
  `token|secret|password|authorization|key` by default. Only pass
  `--no-redact` when the user explicitly wants a full-fidelity backup.
- **Import modes:** `merge` overwrites same-named servers and keeps the rest;
  `replace` wipes ALL managed servers first. Confirm with the user before
  `replace`.
- **External entries** (rows added by hand or other tools, entry id not
  starting with `dsh-mcp-manager-`) are read-only: you may disable them, but
  never edit or delete them through this plugin.
- **Writes are durable:** every mutation lands in the profile's
  `cordis.patch.yml` managed block (with `.bak` backup) before the hot reload,
  so a failed hot-reload never loses configuration.
Pliki w paczce (2)
  • SKILL.md 8 KB
  • scripts/mcp-manager.mjs 11 KB

Wersje

W bazie nie ma innych skilli o nazwie dsh-mcp-manager.

Migawka bazy z 13.11.2026 · wersja paczki e4ae7164038b (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90dsh-doc
    Dostarcza fakty o działaniu DeepSeek Harness, np. o funkcjach, ustawieniach, wtyczkach i narzędziach, a także pomaga przy pakietach i MCP.
  • 100hermes2dsh
    Przenosi dane z Hermes do DeepSeek Harness najpierw w trybie próbnym, a potem zapisuje, używając narzędzia hermes2dsh.
  • 90agent-tools-dsh
    Szuka zewnętrznego API, serwera MCP lub agenta do zadania, porównuje je pod kątem stanu i jakości oraz sprawdza bezpieczeństwo MCP.
  • 90dsh-upgrade-pitfalls
    Pomaga przy aktualizacji aplikacji DeepSeek Harness i CLI dsh, gdy wtyczki przestają działać albo pojawiają się błędy 401 lub 431.
  • 90dsh-configuration-guide
    Konfiguruje profile, pakiety, modele, uprawnienia i preferencje przestrzeni roboczej w DeepSeek Harness.
  • 100dsh-forage
    Wyszukuje umiejętności i serwery MCP do konkretnego zadania, prosi o wybór, zapisuje rejestr z kopiami zapasowymi i zarządza zakresem.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.