Skip to main content
Glama

auth-check

Verify authentication status for App Store Connect and Google Play Console to enable store management directly from AI clients.

Instructions

Check authentication status for App Store Connect / Google Play Console.

Input Schema

NameRequiredDescriptionDefault
storeNoStore to check (default: both)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "store": { "description": "Store to check (default: both)", "enum": [ "appStore", "googlePlay", "both" ], "type": "string" } }, "type": "object" }

Implementation Reference

  • The handler function `handleAuthCheck` that implements the core logic of the 'auth-check' tool. It checks authentication status for App Store Connect and/or Google Play Console based on the provided store option, using services to verify auth, and returns a formatted text response with results.
    export async function handleAuthCheck(options: AuthCheckOptions) { const { store } = options; const { store: targetStore, includeAppStore, includeGooglePlay, } = getStoreTargets(store); const results: string[] = []; console.error(`[MCP] πŸ” Checking authentication (store: ${targetStore})`); if (includeAppStore) { console.error(`[MCP] Checking App Store Connect...`); const appStoreResult = await appStoreService.verifyAuth(300); if (appStoreResult.success && appStoreResult.data) { results.push(`βœ… **App Store Connect**`); results.push(` Issuer ID: ${appStoreResult.data.payload.iss}`); results.push(` Key ID: ${appStoreResult.data.header.kid}`); results.push(` JWT created successfully`); } else { results.push(`❌ **App Store Connect**`); results.push( ` ${appStoreResult.error?.message || "Authentication failed"}` ); } results.push(""); } if (includeGooglePlay) { console.error(`[MCP] Checking Google Play Console...`); const playStoreResult = await googlePlayService.verifyAuth(); if (playStoreResult.success && playStoreResult.data) { results.push(`βœ… **Google Play Console**`); results.push(` Project: ${playStoreResult.data.project_id}`); results.push(` Service Account: ${playStoreResult.data.client_email}`); } else { results.push(`❌ **Google Play Console**`); results.push( ` ${playStoreResult.error?.message || "Authentication failed"}` ); } } return { content: [ { type: "text" as const, text: `πŸ” **Authentication Status**\n\n${results.join("\n")}`, }, ], }; }
  • The input schema definition for the 'auth-check' tool using Zod: an optional 'store' parameter with enum ['appStore', 'googlePlay', 'both']. Note: storeSchema is defined earlier at line 31.
    registerToolWithInfo( "auth-check", { description: "Check authentication status for App Store Connect / Google Play Console.", inputSchema: z.object({ store: storeSchema.describe("Store to check (default: both)"), }), }, handleAuthCheck, "Authentication" );
  • src/index.ts:145-156 (registration)
    Registration of the 'auth-check' tool in the MCP server via `registerToolWithInfo`, linking the name, description, schema, handler, and category.
    registerToolWithInfo( "auth-check", { description: "Check authentication status for App Store Connect / Google Play Console.", inputSchema: z.object({ store: storeSchema.describe("Store to check (default: both)"), }), }, handleAuthCheck, "Authentication" );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/quartz-labs-dev/pabal-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server