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 { httpClient, HttpMethod, AuthenticationType } from "@activepieces/pieces-common";
import { AppConnectionValueForAuthProperty } from "@activepieces/pieces-framework";
import { foreplayCoAuth } from "..";
export interface ForeplayCoApiCallProps {
apiKey: AppConnectionValueForAuthProperty<typeof foreplayCoAuth>;
method: HttpMethod;
resourceUri: string;
queryParams?: Record<string, string>;
body?: any;
}
export async function foreplayCoApiCall({
apiKey,
method,
resourceUri,
queryParams,
body,
}: ForeplayCoApiCallProps) {
const baseUrl = "https://public.api.foreplay.co";
return httpClient.sendRequest({
method,
url: `${baseUrl}${resourceUri}`,
authentication: {
type: AuthenticationType.BEARER_TOKEN,
token: apiKey.secret_text,
},
queryParams,
body,
});
}