autoxpp-setup-api-keylisted
Install: claude install-skill xplusplusai/autoxpp-marketplace
# AutoXPP API Key Setup
## Step 1: Check if MCP is already connected
First, try to call the `autoxpp` MCP tool `validate_license`.
- **If the call succeeds**: Display the following banner, then report the user's tier and available skills. Done — no further setup needed.
```
>_ AutoXPP™ · D365 F&O AI Dev Engine · by xplusplus.ai
```
- **If the MCP tool is not available**: Continue to Step 2.
## Step 2: Get the API key
If the user provided a key as an argument (e.g. `/autoxpp:autoxpp-setup-api-key ak_xxxxxxxx`), use that.
Otherwise, ask the user for their key. It should start with `ak_` (e.g. `ak_ZVrTR-3R_fu8vLUjlgjHTjxiLRP9gTiaK`). If they don't have one, direct them to https://xplusplus.ai/autoxpp.html to subscribe and get a key.
## Step 3: Detect plugin scope and choose MCP placement
The plugin (skills) and MCP (server connection) are configured separately. The MCP should be added at the same scope where the plugin is installed.
### Detection logic
Read the file `~/.claude/plugins/installed_plugins.json` (platform-aware: `$HOME/.claude/plugins/installed_plugins.json` on macOS/Linux, `$env:USERPROFILE\.claude\plugins\installed_plugins.json` on Windows).
Look for the key `autoxpp@xplusplus-ai` in the `plugins` object. The entry structure is:
```json
{
"plugins": {
"autoxpp@xplusplus-ai": [
{
"scope": "user",
"installPath": "...",
"version": "1.4.0"
}
]
}
}
```
**Decision:**
1. If `scope` is `"user"` → use **glob