MCwiki API key
Get the MCwiki API key used by your MCintelligentplus connection and keep it rotated
Get an MCwiki API key
Your organization connects MCwiki to MCintelligentplus with the MCP endpoint, and every member authenticates with their own MCwiki API key. The key identifies you to MCwiki, so every tool call acts with your spaces and permissions — never as a shared account.
Before you start
- Ask your MCintelligentplus organization owner to publish MCwiki to your workspaces. It appears under User Settings → Apps once it is available.
- Your MCwiki account needs access to the spaces you want to use (at least
USE_WIKIand the matching space permissions).
If the organization enabled auto-provisioning
This is the usual path. The organization stores an admin key issued by a MCwiki account in the api_key_admin group, and the server issues a key for your SurfWise username. The admin key is only required while auto-provisioning is on. When it is off, the organization does not need one; ask a Wiki administrator for a key as described below.
- Open User Settings → Apps and choose MCwiki.
- Click Get API key. The server calls MCwiki's key admin API for the signed-in username and fills the key field.
- Review the key, click Test, then Connect. The key is stored encrypted and sent as
X-API-Keyon every call.
With auto-provisioning on, the key is fetched automatically when you open the connection; the button remains available to retry.
If you need a key from a Wiki administrator
Ask a MCwiki administrator with the api_key_admin group to issue a key for your account:
curl -X POST "http://<wiki-host>:8090/api/apiKeyAdmin/create" \
-H "Content-Type: application/json" \
-H "X-API-Key: sk-<issuer-key>" \
-d '{"username":"your.username","label":"surfwise-mcp","expiresInDays":365}'The response contains the plaintext key (sk-...). It is shown once — paste it into the API key field in MCintelligentplus, test, and connect.
Rotate or revoke
- Rotate: ask the administrator to issue a new key (or use Get API key again after the old key is deleted), open Apps → MCwiki, click Replace, paste the new key, test and save.
- Revoke: the administrator deletes the key (
DELETE /api/apiKeyAdmin/{id}) or disables it (POST /api/apikey/revoke/{id}). MCintelligentplus calls start failing with an authentication error; reconnect with a new key.
Troubleshooting
| Symptom | What it means | Fix |
|---|---|---|
NOT_LOGIN / authentication error | The key is missing, invalid, expired or deleted | Get a new key and reconnect |
ACCESS_UNAUTHORIZED | The key is valid but the account lacks the required Wiki permission | Ask the Wiki administrator about USE_WIKI and space access |
Get API key fails with USER_NOT_EXIST | No MCwiki account matches your SurfWise username | Ask the Wiki administrator to check the username; it is case-insensitive |
| Get API key fails with a gateway error | The MCP endpoint is not routed to the Wiki MCP service | Ask the Wiki administrator to expose /mcp, /sse and /mcp/message |
| No MCwiki card under Apps | The organization has not published MCwiki to your workspaces | Ask your organization owner to assign MCwiki to your workspace |
Never share an API key: each member needs their own, and MCwiki audits actions per key owner.