Skip to main content
Glama

stacktree-mcp

用于 stacktr.ee 的 MCP 服务器。从任何 MCP 客户端(Claude Desktop、Claude Code、Cursor、Continue 等)发布 HTML 制品。

使用智能体设置

如果你打开了一个编码智能体,把这行交给它,剩下的它自己完成——安装、验证连接并了解工具面:

Fetch and follow the setup instructions at https://stacktr.ee/prompt.md

适用于任何可以获取 URL 的智能体。这些指令是纯 Markdown;如果你愿意,可以先读一遍。

Related MCP server: drop

安装

添加到你的 MCP 客户端配置:

{
  "mcpServers": {
    "stacktree": {
      "command": "npx",
      "args": ["-y", "stacktree-mcp"],
      "env": { "STACKTREE_API_KEY": "stk_live_..." }
    }
  }
}

https://app.stacktr.ee 生成 API 密钥。

工具

工具

功能

publish_html

发布 HTML;返回 { url, id, expires_at, ... }。传入 client 将其归档到客户端空间下。

update_site

原地替换现有站点的 HTML;URL 保持不变。

get_site

读取站点的当前 HTML 源码——编辑后使用 update_site

set_password

添加或清除密码门禁。仅限付费套餐。

set_expiry

设置从当前时间起的小时数到期时间,或传入 null 表示永不过期。限制在套餐上限内。

set_email_gate

将查看者限制为某个电子邮件域名(一次性魔法链接验证)。仅限付费套餐。

set_agentation

切换页面上的 Agentation 反馈工具栏。

list_sites

列出此 API 密钥拥有的站点。分页(has_more + 游标);使用 client 过滤。

delete_site

硬删除一个站点。

link_wallet

链接你的钱包,以便你发布的页面归你的账户所有。

list_feedback

读取查看者通过 Agentation 工具栏留下的注释;未解决的项目排在最前。

resolve_feedback

将反馈项标记为已处理,可附带可选说明。

set_client

按名称或 slug 将页面归档到客户端空间下(自动创建),或传入 null 取消关联。

list_client_spaces

账户上的客户端空间:页面计数、绑定的主机名、门户状态。

create_client_space

预先创建空间。很少需要——用 client 发布时会自动创建。

update_client_space

重命名、归档或设置空间级查看者门禁,该空间下的每个页面都会继承。

delete_client_space

移除空间。其页面会解除关联并保留各自的 URL。

get_design_guide

公司设计指南——在生成或重新设计页面前先阅读它。

链接钱包

如果你的智能体用自有钱包(x402 / MPP)支付发布费用,请将该钱包链接到你的 Stacktree 账户,这样它发布的每个页面——过去的和未来的——都归你的账户所有:

  1. 你的用户在 https://app.stacktr.ee/wallets 生成一个链接码。

  2. link_wallet({ code }) → 返回需要签名的确切消息。

  3. 用你的钱包(personal_sign)签名。

  4. link_wallet({ code, wallet, signature }) → 链接钱包并收养它已发布的页面。

读取反馈

使用 set_agentation 开启页面内工具栏,查看者可以为页面添加注释;他们的评论会与站点一起存储。list_feedback 返回这些评论,未解决的排在最前(评论、被注释的元素、选中的文本、意图、严重性)。使用 update_site(同一个 URL)原地修复页面,然后用 resolve_feedback 将每条标记为已处理,并可附上备注。

隐私默认值

每个站点都会获得一个不可猜测的 https://stacktr.ee/p/{token}/ URL。传入 public_slug 可选择 https://{slug}.stacktr.ee/

pii_check 默认为 block——上传内容若匹配常见机密和 PII 形态(电子邮件、SSN、信用卡、OpenAI/GitHub/Stripe API 密钥前缀)将被拒绝。传入 warn 则仍然发布(匹配项会在响应中标记),或传入 off 跳过扫描。

免费套餐提供的内容

免费套餐的密钥总共可以发布 3 个页面,每个页面在发布 7 天后过期。这个是终身计数,不是并发计数:删除页面或让其过期不会归还配额。expires_in_hours: "never" 会被限制为 7 天上限而不是拒绝,因此始终从响应中读取 expires_at

密码(set_password)、电子邮件门禁(set_email_gate)和查看者数量属于付费套餐。达到上限会返回 HTTP 402,并在 error 中包含稳定的 plan_* 代码:

代码

含义

plan_lifetime_limit_exceeded

已用完全部 3 个免费页面。删除一个也不会恢复。

plan_site_limit_exceeded

达到活动页面上限。

plan_password_not_available

当前套餐不提供密码门禁。

plan_viewer_gate_not_available

当前套餐不提供电子邮件门禁。

plan_domain_not_available

当前套餐不提供自定义域名。

GET /me 返回调用密钥自身的 limits 对象。从那里读取上限,而不是硬编码。当前套餐和价格:https://stacktr.ee/pricing.md

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables users to upload files and generate tracked, shareable links directly from AI agents like Claude Desktop or Cursor. It supports publishing various file formats including text, PDFs, and images, while providing tools for artifact management and analytics.
    8
    78
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Publishes HTML pages straight from your AI assistant to a shareable URL, then lets you manage them - update, list, search, fetch, and delete pages in a public or private workspace. Turns "share what I just made" into a single tool call from Claude, Cursor, or any MCP client.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables publishing and updating Claude artifacts or HTML to private, access-controlled links directly from Claude.
    1
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Publish AI-generated HTML & Markdown to a hosted, shareable URL via MCP.

  • Artifact store for AI agents. Hosted OAuth at mcp.artifacta.io/mcp; local stdio via npm/PyPI.

  • Publish HTML, files, or a URL to a permanent public URL, then update it — from any MCP agent.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stevysmith/stacktree-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server