We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { createAction } from '@activepieces/pieces-framework';
import { spotifyCommon, makeClient } from '../common';
export default createAction({
name: 'get_playback_state',
displayName: 'Get Playback State',
description: 'Retrieves the current playback state of the player',
auth: spotifyCommon.authentication,
props: {},
async run({ auth }) {
const client = makeClient({ auth });
const res = await client.getPlaybackState();
return res;
},
});