Skip to main content

Android Management

Google hosts the Android Management API MCP server at https://androidmanagement.googleapis.com/mcp over streamable HTTP. The server is in preview. Enabling the Android Management API on a Google Cloud project turns the MCP server on for that project. The Official card pre-fills the URL. It is the Android Management card with the Official badge.

Google authenticates this server with OAuth 2.0. It does not accept API keys. Google and Google Cloud remote MCP servers do not support dynamic client registration or OAuth client ID metadata documents, so Willow cannot register itself. An admin creates an OAuth client and people sign in with a Google identity that has access to the project.

The scope for these tools is https://www.googleapis.com/auth/androidmanagement.

Before you start​

  • A Google Cloud project, and permission to enable APIs on it (serviceusage.services.enable). Project Owner and Service Usage Admin include that permission.
  • Someone who can grant Identity and Access Management roles on that project.

Set up Google Cloud​

  1. In the Cloud console, on the project selector page, select or create a project.
  2. Enable the Android Management API if it is not already enabled. Enabling the API enables the MCP server.
  3. Grant each person who will sign in the Android Management User role (roles/androidmanagement.user) on that project.

Google recommends a separate identity for agents so access can be limited and audited. That identity still needs Android Management User on the project.

Create an OAuth client​

  1. In the Google Cloud console, go to Google Auth Platform → Clients → Create client.
  2. Set Application type to Web application and name the client.
  3. Under Authorized redirect URIs, add Willow's callback. Google's guide says to use the redirect URL your application documents, and that a custom redirect URL is not accepted. This card's Setup tab does not show a redirect URL, because authentication stays None. Use the callback for your deployment:
    • SaaS: https://{org}.withwillow.ai/{org}/api/auth/callback
    • On-prem: {CONNECT_URL}/{org}/api/auth/callback
  4. Click Create. Copy the client ID and the client secret. Google shows the secret only once.

Set up Willow​

The Official card declares no authentication. After you add it, the Setup tab offers None and does not ask for a client ID or an API key.

  1. Go to MCP Servers → + Add MCP server, open the Android Management card with the Official badge, and click + Use.
  2. Do not paste an API key. Google rejects API keys for this server.
  3. Leave the pre-filled URL as https://androidmanagement.googleapis.com/mcp.

None is enough for the server to list its tools. A tool call needs the OAuth client above, sent as a bearer token with scope https://www.googleapis.com/auth/androidmanagement. This card has no field for that client, so a published server still calls Google with no credential.

Troubleshooting​

A tool call says the request is missing an authentication credential​

Cause: The call had no OAuth 2.0 access token. Listing tools succeeds without one. Calling a tool does not.

Solution: Google expects the OAuth client from Create an OAuth client, for a user with Android Management User on the project where the Android Management API is enabled. The Official card cannot store that client, so the call stays unauthenticated. An API key does not satisfy this server.

Google rejects the redirect URI​

Cause: The redirect URI on the OAuth client does not match Willow's callback.

Solution: Put Willow's callback on the client exactly, including the path. The patterns are in Create an OAuth client.

Additional Resources​