Skip to main content
Glama

Spotify MCP Server

by marcelmarais
types.ts1.04 kB
import type { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js'; import type { ServerNotification, ServerRequest, } from '@modelcontextprotocol/sdk/types.js'; import type { z } from 'zod'; export type SpotifyHandlerExtra = RequestHandlerExtra< ServerRequest, ServerNotification >; export type tool<Args extends z.ZodRawShape> = { name: string; description: string; schema: Args; handler: ( args: z.infer<z.ZodObject<Args>>, extra: SpotifyHandlerExtra, ) => | Promise<{ content: Array<{ type: 'text'; text: string; }>; }> | { content: Array<{ type: 'text'; text: string; }>; }; }; export interface SpotifyArtist { id: string; name: string; } export interface SpotifyAlbum { id: string; name: string; artists: SpotifyArtist[]; } export interface SpotifyTrack { id: string; name: string; type: string; duration_ms: number; artists: SpotifyArtist[]; album: SpotifyAlbum; }

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/marcelmarais/spotify-mcp-server'

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