Publish MCP server
{
"mcpServers": {
"stacktree": {
"command": "npx",
"args": [
"-y",
"stacktree-mcp@latest",
"stacktree-mcp"
],
"env": {
"STACKTREE_API_KEY": "<stacktree_api_key>"
}
}
}
}{
"mcpServers": {
"stacktree": {
"command": "npx",
"args": [
"-y",
"stacktree-mcp@latest",
"stacktree-mcp"
],
"env": {
"STACKTREE_API_KEY": "<stacktree_api_key>"
}
}
}
}{
"mcpServers": {
"stacktree": {
"command": "npx",
"args": [
"-y",
"stacktree-mcp@latest",
"stacktree-mcp"
],
"env": {
"STACKTREE_API_KEY": "<stacktree_api_key>"
}
}
}
}{
"servers": {
"stacktree": {
"command": "npx",
"args": [
"-y",
"stacktree-mcp@latest",
"stacktree-mcp"
],
"env": {
"STACKTREE_API_KEY": "${input:stacktree_api_key}"
}
}
},
"inputs": [
{
"id": "stacktree_api_key",
"type": "promptString",
"description": "Stacktree api key",
"password": true
}
]
}{
"mcpServers": {
"stacktree": {
"command": "npx",
"args": [
"-y",
"stacktree-mcp@latest",
"stacktree-mcp"
],
"env": {
"STACKTREE_API_KEY": "<stacktree_api_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y stacktree-mcpversion 0.6.0
What it does
Publish HTML to private, unguessable URLs from AI agents. Retrieve unique URLs for each publish, update HTML in place, set expiry times and access controls, and collect viewer feedback via an optional toolbar. For developers building agents that need to share rendered content with users.
- Publish HTML artifacts from Claude or other coding agents to shareable URLs without needing your own hosting infrastructure.
- Update published HTML in place while preserving the same URL, then gather viewer feedback and annotations to improve the page.
- Organize published pages under named client spaces, set password or email domain gates for access control, and manage expiry dates.
Tools this server exposes
| Tool | Does |
|---|---|
| publish_html | Publish HTML and receive a unique unguessable URL; optionally file it under a client space. |
| update_site | Replace the HTML of an existing published site while keeping its URL unchanged. |
| get_site | Retrieve the current HTML source of a published site. |
| set_password | Add or remove a passcode gate on a published site (paid plans only). |
| set_expiry | Set or update the expiry time in hours for a published site. |
| set_email_gate | Restrict a published site to viewers from a specific email domain (paid plans only). |
| set_agentation | Enable or disable the on-page viewer feedback toolbar. |
| list_sites | List all published sites owned by the API key with pagination and optional filtering. |
| delete_site | Permanently delete a published site. |
| link_wallet | Link a blockchain wallet to the Stacktree account so an agent can own its published pages. |
| list_feedback | Retrieve viewer annotations and comments left via the Agentation toolbar, sorted by resolution status. |
| resolve_feedback | Mark a feedback item as addressed and optionally add a resolution note. |
| set_client | Organize a published page under a named client space. |
| list_client_spaces | List all client spaces on the account with their page counts and settings. |
| create_client_space | Create a new client space to organize published pages. |
| update_client_space | Rename, archive, or set viewer access gates for a client space. |
| delete_client_space | Remove a client space; its pages detach and keep their original URLs. |
| get_design_guide | Retrieve the house design guide for styling published pages. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.