Skip to contentSkip to main content
← Back to all posts

How to Revoke AI Agent Access to Your Knowledge: An MCP Offboarding Checklist

Offboard an AI agent safely: revoke MCP OAuth grants and manual tokens, test Context Scope access, preserve team knowledge, and handle previously shared copies separately.

Share by email

An AI assistant helped a contractor review your product roadmap. The engagement ends, so you remove the assistant from your sidebar. Is your roadmap now protected? Not necessarily. The client application may still have a valid connection, a separate developer token may remain active, and the contractor may have another path through a shared workspace. Meanwhile, information the assistant already quoted may live in its conversation history.

Offboarding an AI agent is an access-control exercise, not a request to make the model forget. A useful process closes live authorization paths, checks what data was already disclosed, and tests denial without deleting the knowledge your team still needs.

This guide focuses on MCP-connected knowledge tools. Its checklist works with many systems; the Phasoric-specific controls below reflect its published MCP contract.

1. Map the four boundaries before disconnecting anything

An agent connection usually involves more than one authorization layer. Treat them as independent until you have evidence otherwise:

  1. Client grant: the OAuth authorization or integration approved for a particular AI application.

  2. Credential: an access token, refresh-token family, or independently issued developer bearer token.

  3. Knowledge mapping: the vault, provider connection, or hosted source made available to that client.

  4. Context authority: the workspace membership, audience, Context Scope, and policies that determine which records are actually returned.

Revoking one path may be enough to block a particular client immediately, but it does not establish that every other credential or user still lacks access. Conversely, deleting a knowledge file merely to remove an agent's access can destroy useful team evidence. Keep identity and source retention decisions separate.

2. Inventory current access using evidence, not guesses

Before making changes, record the application name, connection owner, approved scopes, relevant workspace, mapped knowledge sources, any manual tokens, and whether an automation or service identity uses the connection. Record the last verified use where your system provides it. Do not paste raw bearer tokens into a handoff document.

Ask the owner which tasks still depend on the integration. A shared organizational integration is different from a personal connector. If a nightly report uses the same service principal as the departing agent, revoking it without replacement can stop a legitimate workflow.

An inventory row should answer: which identity can call which tool, against which source, under whose approval, and for how long? If any answer is unknown, mark it unknown; a missing account is not proof that no account exists.

3. Revoke the application grant and separately review manual tokens

Phasoric's hosted MCP supports OAuth scopes mcp:read, mcp:write, and offline_access. The first allows bounded retrieval, the second governs eligible write requests subject to separate safeguards, and the third permits refresh credentials for continued connection. A connected application's visible scopes are a starting point—not a substitute for testing the resulting authority.

For a Phasoric OAuth-connected application, open Settings → AI Connections & API → Connected applications and use Disconnect on the exact application. According to the current developer contract, this revokes the grant and associated access and refresh credentials. This is stronger evidence of server-side invalidation than merely removing a client-side shortcut.

Manual bearer tokens are independent. A developer token generated under AI Connections & API must be rotated or revoked through its own controls. Disconnecting an OAuth application does not revoke that separate token. The same distinction can apply to service identities and provider credentials used outside the application you just removed.

Do not assume removing the integration from an AI client's interface calls the provider's revocation endpoint. Phasoric's privacy implementation explicitly treats client-side removal behavior as something to test, not a guarantee. If the connection was compromised rather than simply retired, follow your incident-response procedure for credential and session review.

4. Check mappings, membership, and Context Scopes

A model's access to a file should depend on current authorization, not on the fact that it once knew the file's path. Phasoric's hosted gateway resolves explicitly mapped, internet-reachable vaults and checks the connected provider's active read capability. A mapping handle is an opaque selector, not a credential. Local-only browser material and device-encrypted bodies are not automatically available through hosted MCP.

Context Scopes add another boundary for shared knowledge: current workspace authority, audience membership, verified grants, and inherited evidence/action policy. Scope resolution is not supposed to union every participant's private resources. The repository describes rechecking these authorities and testing member, installation, and explicit-grant revocation independently.

For an employee departure, the scope of review may include the organization's membership system, shared-vault grants, installation access, and service principals—not just an OAuth connection owned by that employee. Use the system that owns each grant to remove it. Avoid inventing or reusing a mapping ID when you run tests; discover allowed mappings while authenticated as the test principal.

5. Understand what revocation does not erase

Server-side revocation should deny subsequent authorized requests. It cannot retract text that a model already returned, remove a screenshot someone saved, or guarantee deletion from another provider's conversation history. An agent may also have a local export, approved report, or cached response outside the vault.

Maintain two workstreams: access revocation for future reads, and data-lifecycle review for existing copies. The latter may require actions under the client application's retention controls, your organization's records policy, and relevant contracts. Do not silently delete source notes, audit receipts, or decision history just because a connection is being retired.

Phasoric's AI memory retention checklist covers record classification and deletion review. Its write-access guide covers the additional safeguards that matter when an agent previously could change knowledge.

6. Run a denial test after offboarding

Use a disposable or non-sensitive test note so verification does not reproduce confidential content. Capture the pre-change baseline only if you are authorized: the client can list its permitted mapping, search for a known test title, and retrieve that note's current revision.

After disconnecting, try the same retired credential or principal in an isolated test client and call a harmless read. The expected outcome is an authorization failure or loss of that mapping, not the note content. Also verify the credential cannot refresh and obtain new authority. Keep the error category and test time, but never store the credential or recovered note body in the report.

Next, test a still-authorized teammate's access to the same source. This protects against mistakenly deleting or disconnecting the underlying vault for everyone. If a separate manual token or service identity existed, run an independent test for each path that should be closed.

An old conversation may still answer a question from previously supplied context. That is not evidence that the MCP grant survived. To test current retrieval, inspect the connector's actual tool call and server response rather than judging solely by the prose of the assistant's answer.

7. Keep a small, auditable offboarding record

Use a structured record so the next reviewer can establish what changed without reconstructing a long chat. Here is a portable template:

# AI connection offboarding — [case ID]
Requested by: [human]
Effective time (UTC): [timestamp]
Affected app / principal: [display name, nonsecret ID]
Knowledge sources: [mapping or workspace references]

## Before
- OAuth grant and scopes: [verified / unknown]
- Separate bearer tokens: [yes / no / unknown]
- Service identities and automations: [list]
- Previously exported outputs: [review owner]

## Changes
| Control | Action | Time UTC | Evidence locator |
| --- | --- | --- | --- |
| OAuth grant | [revoked / not applicable] | [time] | [record] |
| Manual credential | [rotated / revoked / none] | [time] | [record] |
| Scope / membership | [changed / unchanged] | [time] | [record] |

## Verification
- Retired read: [denied / failed test / not tested]
- Refresh: [denied / not applicable / not tested]
- Remaining authorized reader: [passed / failed]
- Existing output copies: [handled separately / review open]
- Reviewer and next checkpoint: [human, date]

Preserve audit identifiers, scope references, and configuration changes in a restricted record. Do not use this checklist as a substitute for an incident log if you suspect data exfiltration.

8. A 30-minute offboarding drill

Minutes 0–5: identify the client, owner, authorized source, manual credentials, and legitimate dependent jobs. If a dependency is unknown, assign an owner rather than guessing.

Minutes 5–12: revoke the specific OAuth grant and any separate credentials that no longer have a valid purpose. Change membership or scope grants through their authoritative controls.

Minutes 12–20: run read and refresh denial checks for retired identities. Record actual tool failures, not an assistant's verbal promise that it forgot.

Minutes 20–25: confirm intended teammates still have access, and check whether any background jobs require an approved replacement identity.

Minutes 25–30: classify previously exported content, record open retention questions, and obtain human review of the offboarding evidence.

This schedule is an illustrative rehearsal, not a guarantee that a real organizational offboarding can be completed in half an hour.

9. Five acceptance tests before you close the ticket

  1. The retired OAuth client cannot successfully make a new authorized MCP read, and its refresh path no longer works.

  2. Any separately issued developer token that should be retired fails its own read test.

  3. Removed memberships, provider grants, or Context Scope grants no longer expose the test note to that principal.

  4. A remaining authorized teammate still retrieves the test note at its expected revision.

  5. The record explicitly distinguishes future access denied from previously returned copies handled under a separate policy.

If any test fails, leave the offboarding record open and investigate the specific remaining authorization path. A confident AI answer, or an empty search result alone, is insufficient proof.

The durable-memory principle

Persistent knowledge is valuable precisely because it survives individual tools, sessions, and team members. That makes revocation an essential counterpart to portability. A good system lets the knowledge remain useful for the people who are still authorized while making a retired connection demonstrably unable to retrieve it again.

For the scope and transport details, consult the Phasoric MCP developer reference. For situations involving accidental cross-client visibility, use the separate client-data isolation checklist.

Frequently asked questions

Does disconnecting an AI app delete information it previously read?

No. Revocation prevents future authorized access through the revoked grant. Previously returned conversation content, exports, and copies follow their own retention and deletion controls.

Is removing an MCP connector from ChatGPT enough to revoke access?

Do not assume so. Revoke the server-side OAuth grant or token with the knowledge provider, then test the retired identity. Client-side removal may or may not call the server's revocation endpoint.

What about developer tokens and shared workspace permissions?

Review them independently. Phasoric manual bearer tokens are not revoked by disconnecting an OAuth app, and current mapping, membership, and Context Scope authority can provide other access paths.