Authorization header.
Prerequisites
- MCP access for your organisation and the owner role (see Before you start).
- An MCP key from Settings → Organization → AI client access (MCP) → Create key.
-
Claude Code installed and signed in. Check:
Set up
1
Put your key in an environment variable
- Windows (PowerShell)
- macOS / Linux
2
Add the server
Choose the scope that fits you:Expected output:
- local (default): this project only, for you.
- user: every project on this machine, for you.
- Windows (PowerShell)
- macOS / Linux
Your shell expands the variable before Claude Code saves it, so the key is stored in Claude Code’s own configuration on this machine. Do not use this command to configure a shared project; use the project file below instead.
3
Check the connection
/mcp to see the three AiLunaPro tools.

4
Ask a question
Start with a test that needs no audit:The client runs Approve the
docs_search_product and quotes AiLunaPro’s product help about reports. If you see that answer, the connection works.Then ask about your own audit:summary_draft_from_result tool call when Claude Code asks.“No matching audit was found for your account” means your organisation has no completed Audit Express yet. Complete one in AiLunaPro, then ask again.
Share the setup with a project team
To commit the server to a repository without committing a key, add a.mcp.json file at the project root. Each teammate sets their own AILUNAPRO_MCP_KEY variable.
.mcp.json
Remove or replace the key
Troubleshooting
claude mcp list shows Failed to connect
claude mcp list shows Failed to connect
Run the request yourself to see the status code:
200: the key works; restart Claude Code.401: the key is missing, mistyped or revoked. Create a new key.404: MCP is not enabled for your organisation. Contact support.
The variable was empty when I ran claude mcp add
The variable was empty when I ran claude mcp add
The header was saved as
Bearer with no key. Run claude mcp remove ailunapro, set the variable again in the same terminal window, then add the server again.Claude Code connects but says no matching audit was found
Claude Code connects but says no matching audit was found
Your account has no completed Audit Express, or the
draftId you gave belongs to someone else. Complete an Audit Express in AiLunaPro first.