When an AI agent connects to a service on a user's behalf, its OAuth client becomes part of the trust boundary. If the same client also represents a conventional feature in your app, a change made for the agent can affect that feature's identity, review or access path. The cleanest design is to know which client belongs to which job, and to keep the agent's access and actions understandable to the user.
Google's recent Google Workspace Model Context Protocol (MCP) change makes this a practical migration question. Google announced that Workspace MCP servers would reject requests from OAuth clients not marked "Use this client for an AI-powered agent" starting November 11, 2026. Clients still unmarked on November 12 remain non-agentic and cannot call those servers. Google says ordinary apps that only use Workspace REST APIs are unaffected, and recommends a separate OAuth client when one is shared between agent and non-agent features.
Source: Google Workspace developer release notes: MCP OAuth client requirement
Treat an OAuth client as an application identity
An OAuth client ID identifies the application that requests an access token. It is different from the individual user account granting access, the MCP server being called and the scopes that describe requested data access. A client marked for agent use does not, by itself, define which documents the agent can read, whether a user can edit them or what a tool is allowed to change. Keep those separate questions visible in your design.
Start by listing the flows your software actually has. A user might connect a calendar in a conventional app view, then separately ask an AI assistant to find events or draft an update. The user and Workspace service may be the same, but the app behaviors differ. Giving the agent a distinct client identity lets you change or troubleshoot its connection without silently changing the identity used by a non-agent feature.
1. Split clients when the features have different responsibilities
Google's Docs MCP setup guide says to mark the user-delegated OAuth client as an AI-powered agent. If the client also supports non-agent features, Google recommends creating a separate client for the agent and keeping the existing one for ordinary features. If you cannot update the existing client's setting, the guide also recommends creating a new client. The change is at the OAuth-client level; Google's announcement does not say that every integration using a Workspace REST API must be relabeled.
A useful boundary is one client for the ordinary application flow and another for the agent flow when their review, permissions or lifecycle differ. Give each a descriptive name and document its owner, redirect URI, environment and purpose. You do not need to multiply clients just to make a diagram look secure; the goal is to avoid a shared identity whose settings and blast radius are unclear.
Source: Google Docs MCP server setup: OAuth clients and troubleshooting
2. Request the access the feature needs
A new client is not a substitute for narrow authorization. Review the scopes the MCP server or API requires and which operations the user expects. Google's current Docs MCP setup page lists Drive and Docs scopes, including read-only options and scopes that permit document changes. Do not copy a list into production without checking which tools your product enables. Start with the smallest scope set that supports the feature, explain it in the consent experience, and test both allowed and rejected actions.
Also distinguish user-delegated OAuth from service-account access. Google's troubleshooting guidance says the agent checkbox applies to OAuth clients managed in Google Auth Platform; service accounts with domain-wide delegation are governed by Workspace administrator settings instead. Those service-account requests can still present human confirmation prompts for sensitive actions. An administrator-managed delegation model is a different credential path, not a workaround that removes authorization review.
3. Check redirects, secrets and the environment
For every client, verify that the redirect URI exactly matches the callback used by the actual agent host. Google's OAuth client documentation explains that web applications must register their redirect URIs and that a mismatch causes an authorization error. Development, preview and production callbacks should not be confused. Test the full return path after a user approves access, not just whether the client can be created.
Keep client secrets on a server that can protect them. Google classifies native and JavaScript applications as public clients because they cannot safely keep a secret on the user's device. Do not put a confidential client secret in a browser bundle, a public repository or an agent prompt. Store server-side credentials in a secret manager, limit who can rotate them, and record which integration must be updated if a credential changes.
Source: Google Cloud help: OAuth client types and redirect URI rules
4. Test what the agent can do, not just whether it connects
A successful OAuth callback only proves that a connection was established. Test a read operation, an edit if editing is part of the feature, a request outside the granted scope and a sensitive action that should need a human decision. Check the result as the actual test user, including behavior when access is revoked or the token expires. Google notes that Docs MCP clients may need an offline-access parameter to receive a refresh token; if your host does not support that flow, users may have to authenticate again when access tokens expire.
The model can also encounter untrusted text inside a document. Google's Docs MCP security guidance warns that indirect prompt injection can try to steer a connected agent toward harmful actions. A separate OAuth client helps identify and change the integration, but it cannot decide whether a user should approve a particular edit. Keep consequential tools narrow, show the action and target to the user, and review changes after they run.
Source: Google Docs MCP server security considerations
A short migration checklist
- Inventory every app, agent and API flow using the current OAuth client.
- Separate the agent client if its permissions, review or lifecycle differ from non-agent features.
- Confirm the agent-use setting, exact callback URI, client type and scopes in the provider console.
- Store confidential secrets server-side and plan rotation without exposing them to the model or browser.
- Test read, write, denied, revoked and human-confirmation cases with the actual Workspace account type.
- Tell users what data the agent can see and what it can change; keep an owner and recovery path for the connection.
Google announced on November 24, 2026 that Workspace MCP servers and the Workspace CLI are generally available. Product setup and feature availability still vary, so check the current provider guide before changing a production integration. The lasting lesson is broader: an agent should have a clear identity and a bounded job, while the app and service still enforce what the user is allowed to do.
For makers shipping software integrations, this boundary is part of the product experience. A connector page should make its data access, supported actions and approval steps easy to understand, just as a good app description explains what the software does.
How to introduce your app on VIBPS
What to check when turning a website workflow into MCP tools
