Temper
Menu

Connect an AI client Pro

Copy-paste setup for Claude Code, Cursor, VS Code, Claude Desktop, ChatGPT, claude.ai and any other MCP client.

On this page

Create a key first: Temper › Settings › AI tools (MCP) › Create key. See AI assistants over MCP. After you create a key, Temper shows three ready-made blocks to copy, with your site's address and the key filled in:

Block in TemperUse it for
Claude CodeThe claude mcp add command.
Cursor, Claude Desktop config and other clientsA JSON config with the URL and the key in a header.
ChatGPT and claude.ai connectors (URL with the key built in)A single URL, for clients that can't send headers.

The examples below use https://your-site.com and wbmcp_YOUR_KEY. Use the values Temper shows you.

Warning

A key is like a password for your site's themes and plugins. Don't commit a config file that holds it, and revoke a key you no longer use.

The endpoint#

Text
https://your-site.com/wp-json/temper/v1/mcp

The server speaks MCP's Streamable HTTP transport with JSON responses. Send the key in one of three ways:

HowExample
Authorization headerAuthorization: Bearer wbmcp_YOUR_KEY
X-Temper-Key headerX-Temper-Key: wbmcp_YOUR_KEY
In the URL, for clients that can't send headershttps://your-site.com/wp-json/temper/v1/mcp/wbmcp_YOUR_KEY

Use a header whenever your client allows it. Keys in addresses can end up in server and proxy logs.

Claude Code#

Shown in Temper's setup. Run this in a terminal:

Shell
claude mcp add --transport http temper https://your-site.com/wp-json/temper/v1/mcp --header "Authorization: Bearer wbmcp_YOUR_KEY"

Then start Claude Code and ask it to work on your theme. It can reach a local site, such as one on .local or localhost, from the same computer.

Cursor#

Shown in Temper's setup, as the JSON block. Add it to Cursor's MCP config, ~/.cursor/mcp.json for every project or .cursor/mcp.json in one project:

JSON
{
  "mcpServers": {
    "temper": {
      "type": "http",
      "url": "https://your-site.com/wp-json/temper/v1/mcp",
      "headers": {
        "Authorization": "Bearer wbmcp_YOUR_KEY"
      }
    }
  }
}

If the file already has an mcpServers object, add the temper entry inside it.

VS Code and GitHub Copilot#

Not in Temper's setup dialog; it uses the same URL and header. Add Temper to .vscode/mcp.json in your workspace, or to your user MCP configuration:

JSON
{
  "servers": {
    "temper": {
      "type": "http",
      "url": "https://your-site.com/wp-json/temper/v1/mcp",
      "headers": {
        "Authorization": "Bearer wbmcp_YOUR_KEY"
      }
    }
  }
}

VS Code uses a servers object, not mcpServers. Use Copilot Chat in agent mode to call Temper's tools.

Claude Desktop#

Temper's setup lists Claude Desktop with the JSON block. Add the temper entry from it to the mcpServers object in Claude Desktop's config file, then restart Claude Desktop.

If your version of Claude Desktop only accepts local, command-based servers in its config file, add Temper as a custom connector in Claude's settings instead, using the URL with the key built in. A connector is reached from the cloud, so it needs a site on public HTTPS.

ChatGPT and claude.ai#

Shown in Temper's setup, as the URL with the key built in. Add a custom connector in ChatGPT or claude.ai and paste the URL:

Text
https://your-site.com/wp-json/temper/v1/mcp/wbmcp_YOUR_KEY

These clients connect from the cloud, so the site must be reachable over public HTTPS. A local site, such as one on .local, .test or localhost, can't be reached; Temper says so when it shows you the key on one. Claude Code and desktop clients on your own computer can connect to it.

Any other client#

Point it at the endpoint with the key in a header or in the URL, as above. What to expect:

  • Requests are JSON-RPC 2.0 POSTs. Batches are accepted. Notifications get 202 Accepted.
  • Protocol versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05. Temper answers with the version the client asks for, or the newest.
  • Only tools: tools/list and tools/call, plus initialize and ping. The tool list doesn't change during a session.
  • GET returns 405: there's no server-sent event stream, so clients use plain POST. DELETE ends a session with 204.
  • A missing or wrong key gets 401 with the error "Missing or invalid Temper key. Create one in Temper › Settings › AI tools (MCP)."
  • Without an active Pro licence, every request gets 403 with an error saying MCP is part of Temper Pro.
  • A tool that fails returns a normal result with isError: true and a message. Save check errors list each line.

Check it works#

Ask your assistant to call get_theme_info. It answers with the selected theme or plugin, how many unpublished changes it has, whether it may publish (can_publish), and the preview link. Each key's Last used in Temper's settings updates too, at most every few minutes.