# AGENTS.md — Guide for AI agents This file helps AI coding agents and LLM tooling understand and work with this repository quickly. ## What this repo is `dsh-mcp-toggle` is a **packaged Cordis plugin for DeepSeek Harness (DSH)** that adds a "MCP Servers" settings page. MCP servers are loader rows mounting `@deepseek-ai/dsh-mcp-client` (the user defines them in their patch layer). This plugin lets the user stop/start those connections live (via `entry.update({disabled})`, which disposes/starts the mcp-client fiber and unregisters/registers its `mcp__*` tools) and persists the change to the **home** patch layer `$DSH_HOME/cordis.patch.yml` (upsert — one row per id, never duplicated). It is a real profile-bundled plugin: `dsh.bundle` (`cordis.patch.yml`) mounts the host half, and the `dsh.client` declaration + `exports["./client"]` register the browser half — install once with `dsh plugin add`, loads on every DSH boot, no cordis_define. ## Repository layout | Path | Role | | --- | --- | | `src/index.ts` | Host half: `GET|POST /mcp-toggle/api` — iterates `ctx.loader.entries()` filtering `@deepseek-ai/dsh-mcp-client`, projects `serverName` from `options.config`, `entry.update({disabled})` for the live toggle, **upserts** a `- id: ` / `disabled: ` row into `$DSH_HOME/cordis.patch.yml` for persistence. | | `src/client/index.tsx` | Client bundle: additive `settings.section` registration (id `mcp-toggle`, order 70, label "MCP Servers"), toggle switches, status tags, toast, `