Skip to main content
Glama

mcp-google-sheets

raw-graphql-query.ts987 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { githubAuth } from '../..'; import { AuthenticationType, httpClient, HttpMethod, } from '@activepieces/pieces-common'; export const githubRawGraphqlQuery = createAction({ name: 'rawGraphqlQuery', displayName: 'Raw GraphQL query', description: 'Perform a raw GraphQL query', auth: githubAuth, props: { query: Property.LongText({ displayName: 'Query', required: true }), variables: Property.Object({ displayName: 'Parameters', required: false }), }, async run({ auth, propsValue }) { const response = await httpClient.sendRequest({ url: 'https://api.github.com/graphql', method: HttpMethod.POST, body: JSON.stringify({ query: propsValue.query, variables: propsValue.variables, }), authentication: { type: AuthenticationType.BEARER_TOKEN, token: auth.access_token, }, }); return response; }, });

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/activepieces/activepieces'

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