{
  "$schema": "https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/schema/draft/mcp-server-card.schema.json",
  "schemaVersion": "draft-2026-06",
  "serverInfo": {
    "name": "getpleach-docs",
    "version": "0.1.0",
    "title": "Pleach docs MCP server",
    "description": "Read-only MCP surface over the getpleach.com documentation: search the Pleach docs corpus and fetch the markdown twin of any docs page.",
    "homepage": "https://getpleach.com/",
    "documentation": "https://getpleach.com/docs",
    "contact": "mailto:getpleach@protonmail.com",
    "license": "FSL-1.1-Apache-2.0"
  },
  "transport": {
    "type": "streamable-http",
    "endpoint": "https://getpleach.com/api/mcp",
    "protocolVersion": "2025-06-18"
  },
  "capabilities": {
    "tools": {
      "listChanged": false
    },
    "resources": {
      "listChanged": false,
      "subscribe": false
    }
  },
  "tools": [
    {
      "name": "search_docs",
      "title": "Search Pleach docs",
      "description": "Full-text search over the Pleach documentation corpus. Returns matching page titles, URLs, and section excerpts.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Search query.",
            "minLength": 1
          }
        },
        "required": [
          "query"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "get_doc_markdown",
      "title": "Get a docs page as markdown",
      "description": "Fetch the markdown twin of a docs page by its slug (e.g. \"audit-ledger\", \"packages/core\"). The returned body is the same processed markdown that backs the rendered HTML page.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Docs page slug, with or without a leading `/docs/`. The index page is the empty string or `index`."
          }
        },
        "required": [
          "slug"
        ],
        "additionalProperties": false
      }
    }
  ],
  "resources": [
    {
      "uri": "https://getpleach.com/llms.txt",
      "name": "llms.txt",
      "description": "Curated index of the docs corpus, optimized for LLM ingestion.",
      "mimeType": "text/markdown"
    },
    {
      "uri": "https://getpleach.com/llms-full.txt",
      "name": "llms-full.txt",
      "description": "Full docs body concatenated for one-shot LLM ingestion.",
      "mimeType": "text/markdown"
    },
    {
      "uri": "https://getpleach.com/.well-known/agent-skills/index.json",
      "name": "agent-skills index",
      "description": "Agent Skills Discovery (v0.2.0): every docs page with sha256 of its markdown body.",
      "mimeType": "application/json"
    }
  ]
}
