Skip to main content
Glama

mcp-google-sheets

add-a-site.ts667 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { googleSearchConsoleAuth, createAuthClient } from '../../'; export const addSite = createAction({ auth: googleSearchConsoleAuth, name: 'add_site', displayName: 'Add a Site', description: "Adds a site to the set of the user's sites in Search Console.", props: { siteUrl: Property.ShortText({ displayName: 'Site URL', required: true, }), }, async run(context) { const webmasters = createAuthClient(context.auth.access_token); await webmasters.sites.add({ siteUrl: context.propsValue.siteUrl, }); return { success: true }; }, });

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