Skip to main content
Glama

get_auth_url

Generate the OAuth2 authorization URL to authenticate and access Google Slides presentations for creating, editing, and managing slide content.

Instructions

Get the OAuth2 authorization URL for Google Slides access

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:138-145 (registration)
    Registration of the 'get_auth_url' tool, including its name, description, and input schema (no required parameters).
    { name: 'get_auth_url', description: 'Get the OAuth2 authorization URL for Google Slides access', inputSchema: { type: 'object', properties: {}, }, },
  • The main handler function for the 'get_auth_url' tool call, which delegates to the auth service and returns a formatted text response with the authorization URL.
    private async handleGetAuthUrl(): Promise<CallToolResult> { const authUrl = this.auth.getAuthUrl(); return { content: [ { type: 'text', text: `Please visit this URL to authorize the application:\n${authUrl}`, }, ], }; }
  • Supporting helper method in GoogleSlidesAuth class that generates the actual OAuth2 authorization URL with necessary scopes for Google Slides access.
    getAuthUrl(): string { const scopes = [ 'https://www.googleapis.com/auth/presentations', 'https://www.googleapis.com/auth/drive.file' ]; return this.oauth2Client.generateAuthUrl({ access_type: 'offline', scope: scopes, }); }
  • Dispatch case in the main CallToolRequestSchema handler that routes 'get_auth_url' calls to the specific handler method.
    case 'get_auth_url': return await this.handleGetAuthUrl();

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/vamsikiran353-gif/google-slides-mcp'

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