HistoryShowcaseDocumentationOpen your sites

Connect your agent

Start a new display without an account

Your agent can build first and send you a working display. No account, email confirmation or preconfigured API key is needed to start.

  1. Generate a private bootstrapKey: 32 cryptographically random bytes encoded as 64 lowercase hex characters. Keep it in the agent's secret storage. Reuse the exact key and school name if the creation response is lost.
  2. POST {"name":"Your school name","bootstrapKey":"<your random 64-character hex key>"} to https://api.history-showcase.com/api/platform/agent/v1/create_guest_site with Content-Type: application/json and no Authorization header. Alternatively, connect to the MCP endpoint without headers and call its create_guest_site tool.
  3. Store the returned token privately. Use it as Authorization: Bearer <token> for all subsequent HTTP API calls, or reconnect MCP with that header. Read get_site_context and get_capabilities, then build with the same tools below. No human configuration is required when the agent can make HTTP requests itself.
  4. Send the human previewUrl. It opens the working display without login and shows the latest guest content on reload. The unlisted link previews the saved draft: every saved story and photo is part of it, including stories that are still private, except what is inside a hidden collection. After the display is claimed, the link opens the live site, and a private story stays private until the owner shows it. Use only material intended to be shared.
  5. Send claimUrl privately to the intended owner, separately from the viewing link. It allows ownership transfer after verified email sign-in. Never put it in display content, a screenshot, public logs or a forwarded viewing link.

The creation response contains siteId, slug, revision, token, previewUrl, claimUrl, editingEndsAt and profileLimit. The guest connection has the read, content and design scopes and expires 30 days after creation if the display is not claimed.

Guest editing stops at 30 profiles or seven days, whichever comes first. All story types count toward the 30-profile limit, including hidden ones. Once the site has 30 profiles, every change is refused with guest-claim-required, including deletions and design edits, so finish branding and upload media before the final profile. A batch that would go past 30 fails with guest-limit. Guest storage allows up to 30 collections, 100 media files and 60 MiB of media (guest-capacity). The viewing link remains available when editing stops. A guest connection cannot publish or administer other sites.

The owner opens the private claim link, requests an email sign-in link, opens that email in the same browser, and confirms ownership. An existing account can sign in with its password instead. Claiming keeps the content, design, URL and agent token. The connection becomes an ordinary content/design connection expiring 30 days after claim; the owner can revoke it from Agents. Claiming ends the unlisted guest preview: the same address then shows the live site, where only stories the owner shows appear. On the owned site, saved visible content is live.

Creation is limited to 3 requests per minute from one network address, and retries count. On HTTP 429, wait at least a minute and retry the same input. On an ambiguous failure, reuse the original bootstrapKey; generating another key creates another display. Retrying with the same key and a different name returns guest-create-conflict. The key also returns the original credentials until the display is claimed (already-claimed), so protect it like the token. Those credentials stop working when the guest connection expires.

Connect to a site you already own

Sign in, open the site editor, and choose Menu → Site settings → Agent connections. Owners and editors can connect agents.

ChatGPT, Claude, Gemini Enterprise and Copilot Studio

Choose your app and copy the MCP server URL for this site. It ends with your site ID:

https://api.history-showcase.com/api/platform/agent/mcp/YOUR_SITE_ID

Browser connections require the administrator's Supabase OAuth setup. The panel reports when that setup is unavailable. Availability also depends on your client plan and organization policies.

App Setup
ChatGPT Enable developer mode in connector settings, then create a custom MCP app with the site URL and OAuth authentication. Your workspace may require an administrator to enable custom apps.
Claude Open Settings → Connectors → Add custom connector, enter the site URL, then connect.
Gemini Enterprise An administrator creates a Custom MCP server data store, using the site URL and per-user OAuth settings below.
Microsoft Copilot Studio Open your agent's Tools → Add a tool → Model Context Protocol, enter the site URL, and choose OAuth 2.0 → Dynamic discovery. Complete connection creation and enable the needed tools.

Sign in with your HistoryShowcase school account, check that the host shown as receiving access belongs to your app (apps name themselves), choose the matching site, review permissions, and select Allow access. Only reading starts on; turn on editing content, design or publishing as needed. The app receives access to that one site for 30 days and can only act within your current site permissions. Approving the same app again for the site replaces its earlier grant, including any narrower permissions. Choose Deny to return without approving access. Rocket staff use the token connection below.

If you already approved the app but need another site, renewed access, or reconnection after disconnecting, open Manage app access, select the app and site, then allow the desired permissions. Return to your agent and retry. Supabase may skip account consent for an already-approved client; that does not automatically grant a new site's access.

Gemini Enterprise administrator settings

Register a Gemini Enterprise OAuth client in the HistoryShowcase Supabase project's OAuth server settings. Set its exact callback to https://vertexaisearch.cloud.google.com/oauth-redirect and enable PKCE in Gemini. Keep any confidential-client secret in the administrator's connector configuration.

Setting Value
Server URL Site-specific MCP URL copied above
Authorization URL https://fxvzvojwfhmastjrtaaj.supabase.co/auth/v1/oauth/authorize
Token URL https://fxvzvojwfhmastjrtaaj.supabase.co/auth/v1/oauth/token
Client ID / secret Values for the registered Gemini client
Scopes openid email profile

Each user authorizes their own school account. Enable only the intended tools/actions in the data store. This setup is for Gemini Enterprise and Copilot Studio, not the consumer Gemini or Copilot chat. VS Code / GitHub Copilot can use the token configuration below. See the current Google setup guide and Microsoft setup guide for organization-specific prerequisites.

Other OAuth MCP clients

Clients that support MCP authorization discover settings automatically. An unauthenticated request to the site URL returns 401 with a WWW-Authenticate header; because the API gateway can rewrite that header, also read the standard protected-resource metadata:

https://api.history-showcase.com/.well-known/oauth-protected-resource/api/platform/agent/mcp/YOUR_SITE_ID

It names the authorization server (https://fxvzvojwfhmastjrtaaj.supabase.co/auth/v1) and the supported scopes. OAuth access tokens work only on the site-specific MCP URL.

Token connections

  1. Choose your agent. Pick Cursor, VS Code / GitHub Copilot, Claude Code, or Other agent (HTTP API) for an agent that can make authenticated HTTP requests.
  2. Create the connection. Give it a recognizable name. By default it can edit content and design for 30 days, but cannot publish. Open Permissions and expiry to change those defaults; the panel offers 7, 30 or 90 days.
  3. Copy its setup. Follow the instructions for your app. Cursor configuration and the Claude Code command include the token; VS Code prompts for it separately. For another agent, Copy private setup message includes the API address, token, discovery steps and a first task. Paste it only into the trusted agent session that should access this site.
  4. Ask for a preview. Use the supplied starter prompt. A working agent should identify your school and return a private draft preview you can open without another login. Creating a token alone does not confirm that the external agent has connected.

Claude Code here means the terminal app. Browser connectors use the OAuth instructions above. Tokens expire after the chosen duration (up to 90 days); create a replacement before expiry.

Copy the token while the panel is open. Only its hash is stored. A lost token cannot be displayed again—disconnect it and create a replacement.

Scope Allows
read Site context, search, content reads, design options, previews and browser passes. Always included.
content Add, update, delete and organize stories/collections; upload media.
design Adjust supported settings and apply existing coordinated designs.
publish Approve private entries and (with content) record confirmed donor gifts. Without it, what the connection writes stays private until an owner or editor shows it.

Publishing is off by default. You can only grant permissions your own role has. Connections cannot manage people, devices, accounts, billing or other sites. Site owners can disconnect other members' connections; members can manage their own. There can be 20 unexpired connections per site, counting token and app (OAuth) connections; the 21st returns connection-limit. Removing someone from the site revokes their connections, and lowering their role removes publishing.

Token and guest MCP endpoint

https://api.history-showcase.com/api/platform/agent/mcp

Transport: Streamable HTTP, stateless, JSON responses, POST only (no SSE stream or session ID). Site operations require Authorization: Bearer <site-connection-token> on every request. Without a header, only create_guest_site, the resources and the prompt are available. The server uses the official MCP SDK and exposes:

  • Tools: tools/list shows only the tools the connection's scopes allow.
  • Resources: historyshowcase://guide (agent workflow) and historyshowcase://design-system (the get_capabilities contract).
  • Prompt: improve-site, which reviews the site, suggests changes within existing templates and asks before saving.

If a token stops working, MCP requests return an HTTP 401 or 403 JSON error rather than a tool result. Requests from browser pages are rejected with origin-not-allowed; call the API from a server, desktop or terminal client.

This endpoint uses a manually created bearer token. OAuth browser clients use the site-specific endpoint above; OAuth tokens are not editor sessions or credentials for the direct HTTP API.

Cursor and compatible JSON clients

Add to your MCP configuration and replace the placeholder locally:

{
  "mcpServers": {
    "historyshowcase": {
      "url": "https://api.history-showcase.com/api/platform/agent/mcp",
      "headers": { "Authorization": "Bearer YOUR_SITE_CONNECTION_TOKEN" }
    }
  }
}

VS Code

Add to .vscode/mcp.json. VS Code prompts for the token rather than storing it in the shared configuration:

{
  "servers": {
    "historyshowcase": {
      "type": "http",
      "url": "https://api.history-showcase.com/api/platform/agent/mcp",
      "headers": { "Authorization": "Bearer ${input:historyshowcase-token}" }
    }
  },
  "inputs": [{ "id": "historyshowcase-token", "type": "promptString", "description": "HistoryShowcase site token", "password": true }]
}

Claude Code

Set HISTORYSHOWCASE_TOKEN locally using the token from the panel. Then:

claude mcp add --transport http historyshowcase \
  https://api.history-showcase.com/api/platform/agent/mcp \
  --header "Authorization: Bearer $HISTORYSHOWCASE_TOKEN"

The client may persist this header in its local configuration. Use your client's secret-storage features where available; do not commit credentials.

First prompt

Review my HistoryShowcase site and suggest a design from the available templates. Ask before saving visible changes, and keep new story proposals private until I approve them.

Back in the editor, saved agent changes load by themselves when you return to the editor's tab after a minute or more, as long as that tab has no unsaved edits of its own. Reloading the page also loads them.

Direct API

The same token works with every documented API operation. Set HISTORYSHOWCASE_TOKEN in your local secret environment, then:

curl --fail-with-body https://api.history-showcase.com/api/platform/agent/v1/get_site_context \
  -H "Authorization: Bearer $HISTORYSHOWCASE_TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{}'

All operation endpoints use POST with a JSON object, including reads. API clients do not need the MCP handshake. See OpenAPI for machine-readable request schemas and errors and limits for rate limits.

Disconnect or rotate

In Agents → Your connections, select Disconnect. Revocation is checked against persisted state on subsequent requests; already-running requests may finish. To rotate, create a replacement, update the client, verify get_site_context, then disconnect the old connection.