---
name: template-designer
description: Create or validate eNanoMapper data-entry Excel templates with the Template Designer MCP service, and fix its connection in Codex, Claude Code, Claude web, Claude Desktop, or OpenCode (missing tools, 401).
---

# Template Designer (MCP service)

The Template Designer MCP service turns a written experimental method into a
draft Excel data-entry template (blueprint → validation → workbook).

| Setting | Value |
|---|---|
| Server URL | `https://api.ideaconsult.net/momentum/templates/mcp` |
| Transport | Streamable HTTP |
| Authentication | request header `X-Gravitee-Api-Key`; no OAuth |
| Key | per-user API key from the API portal at `https://api.ideaconsult.net` |

## First: make sure the service is available

If the Template Designer tools are already available, go to
**Using the service**. Otherwise follow the part for where you are running.

### Codex

1. Check the user's configured MCP servers and look for `template_designer` or `template-designer`.
2. If missing, explain that the user must add the endpoint and `X-Gravitee-Api-Key` header using the `ENM_MCP_API_KEY` environment variable in `~/.codex/config.toml`. Never ask them to paste the key in chat or write a literal key to a file.
3. If it returns `401 Unauthorized`, ask the user to set or correct the environment variable in their own shell and restart Codex. Do not print or inspect the secret value.

### Claude Code

1. Run `claude mcp list` (or ask the user to run `/mcp`) and look for
   `template-designer`. A connector added on the user's Claude account may
   provide the same tools under a different name; that is enough.
2. **Missing?** Add it at user scope. The single quotes matter: they keep the
   variable reference, not the key, in the configuration.

   ```
   claude mcp add --transport http --scope user template-designer https://api.ideaconsult.net/momentum/templates/mcp --header 'X-Gravitee-Api-Key: ${ENM_MCP_API_KEY}'
   ```

3. **`401 Unauthorized` or failed to connect?** Check that the environment
   variable `ENM_MCP_API_KEY` is set, without printing its value. If it is
   absent or wrong, ask the user to set it themselves, in their own terminal —
   `setx ENM_MCP_API_KEY <key>` (Windows) or `export ENM_MCP_API_KEY=<key>` in
   their shell profile (macOS, Linux).
4. Ask the user to restart the terminal and Claude Code. The new server and
   variable are picked up only by a new session.

The connection is confirmed only when `claude mcp list` reports it connected.

### Claude on the web or Claude Desktop

You cannot add or change connectors yourself. Ask the user to:

1. Switch **Template Designer** on for this conversation (**+** button →
   **Connectors**).
2. If it is not listed, add it as a custom connector as described in the guide
   (link below). Authentication is **No sign in**, with the API key in a request
   header named `X-Gravitee-Api-Key`.
3. If it reports `401 Unauthorized`, remove the connector and add it again with
   the correct key.

## Keep the key secret

Never ask the user to paste the API key into the chat, never print it, and never
write a literal key into any file.

## Using the service

1. Get the experimental method from the user: pasted text or a file (protocol,
   method section, SOP). Only content the user may share.
2. Build the blueprint with the service's tools. Ask the user about missing
   scientific details — material, cell line or organism, controls,
   concentrations, exposure times, replicates, endpoints, units — instead of
   inventing them. If a detail is undecided, leave the field blank.
3. Validate the blueprint with the service, show the user a short summary,
   and generate the Excel workbook only after they agree to the summary.
4. Drafts only. Do not publish anything; publishing is a separate action that
   requires the user's explicit confirmation.
5. If the workbook looks wrong, adjust the blueprint and validate and
   generate again.

Guide for end users (setup instructions, API key signup):
`https://enanomapper.adma.ai/mcp-guide/`. Access problems:
`support@ideaconsult.net`.
