Test an AI tool connection after its credential changes
Keep credentials outside the AI employee’s instructions and logs. Update the approved connection, allow for that platform’s credential cache or restart requirement, then run a safe read-only test before revoking the old credential. Never paste a live key into a prompt or a shared checklist.
What you need
For a workflow owner or IT administrator rotating a credential used by an AI employee or its tool connection.
- The integration owner and approved secret store or connection manager.
- A maintenance window and a safe read-only test action.
- The platform-specific update, cache and restart instructions.
Verify that an AI tool connection uses a new secret safely and no longer depends on the old one.
- Identify which connection uses the credential and who owns the rotation. Do not copy the secret into the work record.
- Create or update the credential in the approved secret store or connection settings. Record only a nonsecret version label and time.
- Wait for the platform’s documented cache interval or apply its required reload. Run a safe read-only test and record the result without response secrets.
- Revoke the old credential after the new connection passes. Test that the old credential no longer works through an approved method, then check that normal work continues.
A connection can keep using cached details
Synthetic rotation log. Microsoft Foundry documentation describes a default two-minute cache for saved MCP connection details; other platforms may behave differently.
Scroll the table to see all columns.
| Check | Record | Result |
|---|---|---|
| New credential stored | Version label v18; no secret copied | Done |
| Connection refresh | Waited 120 seconds per this platform’s docs | Done |
| Read-only test | List approved test record | Passed |
| Old credential revoked | Revocation timestamp recorded | Done |
| Secret in prompt or log | No | Pass |
This synthetic run passes the listed checks. Use the exact cache and refresh rules for the platform in your own setup; do not assume every connection uses a two-minute delay.
What to hand over
A secret-free change record with owner, version label, update time, refresh requirement, read-only test result and old-key revocation status.
Limitation. The exact cache, refresh and restart behavior depends on the AI platform and MCP server. A successful test call does not prove every tool or permission works.
Next step
Bring the tool name, connection owner and a redacted rotation procedure. Keep all secret values out of the review.
Related guides
Sources
- Microsoft Learn: MCP authentication and credential caching (accessed 24 November 2026)
- OpenAI API documentation: MCP connections and credential handling (accessed 24 November 2026)
- Cloudflare documentation: MCP reauthentication (accessed 24 November 2026)