Prerequisites
- MCP access for your organisation and the owner role.
- An MCP key from Settings → Organization → AI client access (MCP) → Create key.
- Cursor installed.
Set up
1
Set the AILUNAPRO_MCP_KEY variable permanently
Cursor reads environment variables when it starts, so set the variable for your user account, not just one terminal.Expected: no output. Open a new PowerShell window and check:
- Windows (PowerShell)
- macOS / Linux
2
Add the server to your global mcp.json
Open (or create) the global file, so the server is available in every project and stays out of repositories:If the file already has other servers, add only the
mcp.json
"ailunapro": { … } entry inside mcpServers.3
Restart Cursor and check
Quit Cursor completely and open it again. Open Cursor Settings → MCP (or Tools & MCP). ailunapro should show a green status and 3 tools.



4
Ask a question
In the Agent chat: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:“No matching audit was found for your account” means your organisation has no completed Audit Express yet. Complete one in AiLunaPro, then ask again.
Cursor does not support VS Code-style
inputs password prompts in mcp.json. Use the environment variable shown above.Troubleshooting
ailunapro shows a red status or 0 tools
ailunapro shows a red status or 0 tools
- Cursor started before the variable existed. Quit Cursor fully and open it again (on Windows, sign out and back in if it still fails).
- Check the file is valid JSON and that
ailunaprosits insidemcpServers. - Test the key directly; see the
curlcheck in Troubleshooting.
Cursor opens a browser to sign in
Cursor opens a browser to sign in
That happens when Cursor tries OAuth. Check that the
headers block is present and spelled exactly as above, then restart Cursor.It works on my machine but not over Remote-SSH
It works on my machine but not over Remote-SSH
Remote sessions read
~/.cursor/mcp.json and environment variables on the remote host. Set AILUNAPRO_MCP_KEY and the file there too.