Skip to main content
Claude Code connects to AiLunaPro over HTTP with your MCP key in the 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

2

Add the server

Choose the scope that fits you:
  • local (default): this project only, for you.
  • user: every project on this machine, for you.
Expected output:
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

Expected:
Inside a Claude Code session, run /mcp to see the three AiLunaPro tools.
Claude Code /mcp view listing the ailunapro server and its three toolsClaude Code /mcp view listing the ailunapro server and its three tools
4

Ask a question

Start with a test that needs no audit:
The client runs 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:
Approve the 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
Keep "type": "http". Claude Code treats an entry with a url but no type as a configuration error and skips it.

Remove or replace the key

Then repeat Set up with a new key. Revoke the old key in AiLunaPro: Manage keys.

Troubleshooting

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 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.
Your account has no completed Audit Express, or the draftId you gave belongs to someone else. Complete an Audit Express in AiLunaPro first.
More cases: Troubleshooting.
Last modified on November 29, 2026