dochost-mcp

Publish Markdown or HTML to a shareable link from your AI assistant. OAuth, no API keys.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
75%
命名质量
100%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~2,607token 数(工具定义)
~2.5 KB典型响应大小
对注意力有显著影响(占 128k 上下文窗口的 2.04%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "dochost-mcp": {
      "url": "https://dochost.io/api/mcp"
    }
  }
}

远程端点

https://dochost.io/api/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟡publish(body, format, public, noBranding, customSlug, ...)

Publish Markdown or HTML as a hosted dochost page and get a shareable URL. Respects your plan: link lifetime, password protection, custom slug, and branding all follow your account entitlements. Paid plans publish without dochost branding by default — pass noBranding: false to keep the mark. When the account cannot have an option you asked for, the publish still succeeds and the result carries ignoredOptions + ignoredNote — relay that instead of reporting plain success. The link is issued on the account's primary host (a custom domain or subdomain when one is set in Settings › Domains, otherwise dochost.co/d); get_account reports which.

输入模式

{
  "type": "object",
  "properties": {
    "body": {
      "type": "string",
      "minLength": 1
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "public": {
      "type": "boolean"
    },
    "noBranding": {
      "type": "boolean"
    },
    "customSlug": {
      "type": "string"
    },
    "password": {
      "type": "string"
    }
  },
  "required": [
    "body"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The shareable page URL, on the account's primary host (custom domain, subdomain, or dochost.co/d). Relay it verbatim."
    },
    "slug": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO timestamp, or null when the link is permanent."
    },
    "permanent": {
      "type": "boolean"
    },
    "note": {
      "type": "string",
      "description": "Free-tier only: expiry warning + upgrade link. Relay this to the user."
    },
    "iterateHint": {
      "type": "string",
      "description": "How to revise this page later. Follow it instead of publishing a second time."
    },
    "ignoredOptions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "noBranding",
          "password",
          "customSlug",
          "searchable"
        ]
      },
      "description": "Paid options this account does not have, which were dropped. Present only when non-empty — the publish still succeeded, but NOT as asked."
    },
    "ignoredNote": {
      "type": "string",
      "description": "Plain-language consequence of ignoredOptions. Relay it instead of reporting plain success."
    }
  },
  "required": [
    "url",
    "slug",
    "format",
    "permanent"
  ],
  "additionalProperties": false
}
🟢list_my_pages(limit, offset)

List the pages you have published to dochost, newest first. Paginated; returns compact records (no page bodies).

输入模式

{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    },
    "offset": {
      "type": "integer",
      "minimum": 0
    }
  },
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "pages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "format": {
            "type": "string",
            "enum": [
              "markdown",
              "html"
            ]
          },
          "status": {
            "type": "string"
          },
          "views": {
            "type": "integer"
          },
          "likes": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string"
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "slug",
          "url",
          "format",
          "status"
        ]
      }
    },
    "total": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "pages",
    "total",
    "limit",
    "offset",
    "hasMore"
  ]
}
🟢get_account

Get your plan, page-quota usage, entitlement flags (size cap, custom slug, password, branding, subdomain, custom domain), and the primary host new links publish on. Call before publishing so you know your limits up front. The primary host is chosen in the dashboard (manageDomainsUrl), not through this API.

输入模式

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pro",
        "max"
      ]
    },
    "pagesUsed": {
      "type": "integer"
    },
    "pageQuota": {
      "type": [
        "integer",
        "null"
      ]
    },
    "pagesRemaining": {
      "type": [
        "integer",
        "null"
      ]
    },
    "sizeCapMb": {
      "type": "integer"
    },
    "permanentLinks": {
      "type": "boolean"
    },
    "customSlug": {
      "type": "boolean"
    },
    "password": {
      "type": "boolean"
    },
    "noBranding": {
      "type": "boolean"
    },
    "customSubdomain": {
      "type": "boolean",
      "description": "Whether this plan may claim a {name}.dochost.co subdomain (set it at manageDomainsUrl)."
    },
    "customDomain": {
      "type": "boolean",
      "description": "Whether this plan may point a hostname the user owns at their pages (set it at manageDomainsUrl)."
    },
    "analytics": {
      "type": "string",
      "enum": [
        "none",
        "totals",
        "full"
      ]
    },
    "primaryHost": {
      "type": "string",
      "description": "Host new links publish on: a custom domain, `{sub}.dochost.co`, or `dochost.co/d`."
    },
    "manageDomainsUrl": {
      "type": "string",
      "description": "Dashboard page where the user adds domains and picks the primary one. Send them here to change it."
    }
  },
  "required": [
    "ok",
    "plan"
  ]
}
🟢get_page(slug)

Get one of your pages by slug: title, format, status, view/like counts, expiry, whether it is password-protected, and its current visibility / indexing / branding state. Never returns the page body or the password — call get_page_content when you need the source itself, and set_page_options to change any of the settings it reports.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "status": {
      "type": "string"
    },
    "views": {
      "type": "integer"
    },
    "likes": {
      "type": "integer"
    },
    "createdAt": {
      "type": "string"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasPassword": {
      "type": "boolean"
    },
    "permanent": {
      "type": "boolean"
    },
    "public": {
      "type": "boolean"
    },
    "searchable": {
      "type": "boolean"
    },
    "brandingHidden": {
      "type": "boolean",
      "description": "Whether the RENDERED page hides the dochost mark, resolved from the live plan — not a per-page setting. Read-only."
    }
  },
  "required": [
    "ok",
    "slug",
    "url"
  ]
}
🟢get_page_content(slug)

Read back the CURRENT Markdown or HTML of one of your pages. Call this before update_page whenever you did not write the live content yourself in this same conversation — update_page replaces the body wholesale, so editing from memory silently discards anything you cannot see, including edits the user made in the browser. Returns `version` and `sha256`; pass them to update_page as ifVersion / ifSha so the write is refused instead of overwriting a change you did not read. Expired pages are readable, and updating one republishes it on the same URL.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "status": {
      "type": "string"
    },
    "version": {
      "type": "integer",
      "description": "Pass to update_page as ifVersion to guard the write."
    },
    "sha256": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass to update_page as ifSha to guard the write."
    },
    "bytes": {
      "type": "integer"
    },
    "body": {
      "type": "string",
      "description": "The raw Markdown or HTML exactly as published."
    },
    "editable": {
      "type": "boolean"
    },
    "note": {
      "type": "string",
      "description": "Present when the page is expired or under review. Relay it before editing."
    }
  },
  "required": [
    "slug",
    "url",
    "format",
    "status",
    "version",
    "bytes",
    "body",
    "editable"
  ],
  "additionalProperties": false
}
🔴update_page(slug, body, format, title, ifVersion, ...)

Replace the content of one of your pages in place. The URL, view/like counts, and expiry stay the same; only the body, format, and title change. Resending identical content is a no-op. Prefer this over publishing again whenever the user is revising something you already published for them — a second publish creates a second link and strands the one they already shared. This replaces the WHOLE body, so unless you wrote the live content yourself in this conversation, call get_page_content first and pass its version/sha256 back as ifVersion/ifSha — the write is then refused with the current version instead of overwriting an edit you never saw.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "body": {
      "type": "string",
      "minLength": 1
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 200
    },
    "ifVersion": {
      "type": "integer",
      "minimum": 1,
      "description": "Write only if the page is still at this version (from get_page_content). Omit and the write always wins."
    },
    "ifSha": {
      "type": "string",
      "description": "Write only if the live body still hashes to this (from get_page_content)."
    }
  },
  "required": [
    "slug",
    "body"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "version": {
      "type": "integer"
    }
  },
  "required": [
    "ok",
    "slug"
  ]
}
🟡set_page_options(slug, public, searchable, password, removePassword)

Change a published page's visibility, search-engine indexing or password WITHOUT republishing it — the URL, view count and content all stay the same. Use this instead of deleting and publishing again, which changes the link the user already shared. Send only the fields you want to change. Turning a paid capability off never needs an entitlement; turning one on is checked against the current plan. A password always forces the page private, so asking for both `public: true` and a password is refused rather than silently resolved. dochost branding is NOT settable here: it is resolved from the account's live plan at render time, so there is nothing per-page to flip — read `brandingHidden` from get_page for the rendered answer.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "public": {
      "type": "boolean",
      "description": "Discoverable on Explore. Cannot be true while a password is set."
    },
    "searchable": {
      "type": "boolean",
      "description": "Opt in to search-engine indexing. Turning it on requires a permanent page."
    },
    "password": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "description": "Set or replace the page password (paid plans)."
    },
    "removePassword": {
      "type": "boolean",
      "description": "Clear the password. Always allowed, on any plan."
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "public": {
      "type": "boolean"
    },
    "searchable": {
      "type": "boolean"
    },
    "hasPassword": {
      "type": "boolean"
    },
    "changed": {
      "type": "boolean",
      "description": "False when the page already had exactly these settings."
    }
  },
  "required": [
    "ok",
    "slug"
  ]
}
🔴delete_page(slug)

Permanently delete one of your pages by slug. The link stops working immediately and the slug is freed. Deleting an already-deleted page is a safe no-op.

输入模式

{
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  },
  "required": [
    "slug"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "slug": {
      "type": "string"
    },
    "alreadyDeleted": {
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "slug"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具