---
title: Stacktree
description: "Publish and update unlisted HTML pages through Stacktree's MCP server."
url: "https://eve.dev/integrations/stacktree"
docs_index: /llms.txt
type: connection
keywords:
  - mcp
  - publish
  - html
  - unlisted link
  - hosting
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

Connection integration for eve. Publish and update unlisted HTML pages through Stacktree's MCP server.

## Install

Add the connection from eve's registry. This writes the initial definition under `agent/connections/` and installs its authentication dependency when needed:

```bash
eve add connection/stacktree
```

## Quick start

Create `agent/connections/stacktree.ts`. The connection name is derived from the filename:

```ts
// agent/connections/stacktree.ts
import { defineMcpClientConnection } from "eve/connections";
import { always } from "eve/tools/approval";

export default defineMcpClientConnection({
  url: "https://api.stacktr.ee/mcp",
  description:
    "Stacktree: publish HTML pages to unlisted links, update them in place, set optional passcode or email gates, and manage feedback.",
  approval: always(),
  headers: () => ({
    authorization: `Bearer ${process.env.STACKTREE_API_KEY!}`,
  }),
});
```

eve requires approval for every Stacktree tool call because the server can publish, change access, and delete pages.

## Configure

### MCP · API key

Set `STACKTREE_API_KEY` as a server-side environment variable:

```bash
STACKTREE_API_KEY=your_api_key
```

Create an API key in the [Stacktree dashboard](https://app.stacktr.ee/api-keys). eve sends it as an Authorization Bearer token. Pages are unlisted, so anyone with the link can view them. Use Stacktree's optional passcode or email gate when access must be restricted.

See the [Connections docs](/docs/connections) for principal types, headers, approval, and protocol-specific filters.

[Read the full connection documentation](https://stacktr.ee/developers)

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)