Skip to content
Lakeside read-only MCPDemo server · mocked upstream APIs

Connect ClickUp or any MCP client

One URL, one header

The public token below only works while the APIs are mocked, so it is safe to share. A real deployment gives each connection its own secret token instead.

Endpoint details

Endpoint
https://readonly-mcp-demo.vercel.app/mcp
Header
Authorization: Bearer lakeside-demo-readonly
Transport
Streamable HTTP, stateless: POST only, JSON responses, one message per request
Protocol
2025-11-25 (older versions negotiated by the SDK)
Rate limit
60 requests per minute per token (per visitor for this public token)

Adding it to ClickUp

ClickUp Brain and Super Agents can use tools from an external MCP server added as a Custom MCP connection. Following ClickUp's help article on connecting an MCP server to a Workspace:

  1. Open Custom MCP

    In ClickUp's browser app, open the App Center (Workspace avatar, then Apps), select Custom MCP in the sidebar and click Add New.

  2. Choose who can use it

    Pick Just for me, a personal connection only you can use. Pick For all members only if everyone in the Workspace may see staff hours and pay; only owners and admins can add that.

  3. Name, URL and authentication

    Name it, for example Venue data (read-only), and paste the URL:

    https://readonly-mcp-demo.vercel.app/mcp

    For authentication choose API key or No authentication, and add a custom header. Name:

    Authorization

    Value:

    Bearer lakeside-demo-readonly
  4. Check the tools

    ClickUp connects and lists the tools. Expect the nine on the Tools page, then add them to a Super Agent or use them in Brain.

Not yet tested against a ClickUp Workspace, so labels in the dialog may differ; connecting from a real Workspace is the first thing to check. ClickUp has no fixed outbound IP addresses, so the endpoint relies on its token rather than an IP allowlist. For real data, give ClickUp its own secret token and rotate it by updating the Worker secret.

How a production deployment would be set up

A production version would run in the Cloudflare account and private GitHub repository of the business that owns the data, and that business would keep the API credentials.

  1. The owner's private repo and Cloudflare account

    The code lives in the data owner's GitHub repository and deploys from it, through Workers Builds or a deploy token the owner controls.

  2. The owner's team enters the keys

    The four API keys go in with wrangler secret put or the Cloudflare dashboard. Worker secrets cannot be read back once set, so a developer working on the server never sees them.

  3. Built against the mocks first

    Development runs in mock mode, which uses the same request shapes. The live check is a smoke test that prints counts only (scripts/smoke.mjs), never names or amounts.

  4. Nothing real is published

    This public build uses only public API docs and fictional data. A production deployment's code and data would stay private.

List the tools with curl

The Accept header must list both JSON and event streams.

tools/list
curl -s https://readonly-mcp-demo.vercel.app/mcp \
  -H "Authorization: Bearer lakeside-demo-readonly" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Call a tool

Stateless: no session header is needed between calls.

tools/call
curl -s https://readonly-mcp-demo.vercel.app/mcp \
  -H "Authorization: Bearer lakeside-demo-readonly" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0", "id": 2, "method": "tools/call",
    "params": {
      "name": "labour_cost_percent",
      "arguments": { "start": "2026-11-16", "end": "2026-11-22", "groupBy": "day" }
    }
  }'

Generic MCP client config

The common mcpServers shape for remote servers. Some clients name the type streamable-http or the URL key serverUrl.

mcp.json
{
  "mcpServers": {
    "lakeside-readonly": {
      "type": "http",
      "url": "https://readonly-mcp-demo.vercel.app/mcp",
      "headers": {
        "Authorization": "Bearer lakeside-demo-readonly"
      }
    }
  }
}

Official TypeScript SDK

The same client the integration tests and the session transcript use.

client.ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";

const client = new Client({ name: "my-client", version: "1.0.0" });
await client.connect(
  new StreamableHTTPClientTransport(new URL("https://readonly-mcp-demo.vercel.app/mcp"), {
    requestInit: { headers: { Authorization: "Bearer lakeside-demo-readonly" } },
  }),
);

const { tools } = await client.listTools(); // nine read-only tools
const result = await client.callTool({
  name: "labour_cost_percent",
  arguments: { start: "2026-11-16", end: "2026-11-22", groupBy: "day" },
});