Skip to main content
Glama

publishBot

Deploy a Typebot chatbot to production using its unique bot ID via the MCP-Typebot server. Simplify publishing with a streamlined JSON interface for efficient bot management.

Instructions

Publica un Typebot existente

Input Schema

NameRequiredDescriptionDefault
botIdYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "botId": { "minLength": 1, "type": "string" } }, "required": [ "botId" ], "type": "object" }

Implementation Reference

  • The handler function that implements the publishBot tool logic. It authenticates, validates the botId, and sends a POST request to publish the Typebot.
    export async function publishBot(args: PublishBotArgs) { ensureAuth(); const { botId } = args; if (!botId) throw new Error('publishBot: falta botId'); const response = await axios.post( `https://app.typebot.io/api/v1/typebots/${botId}/publish`, {} ); return response.data; }
  • TypeScript interface defining the input arguments for the publishBot handler.
    export interface PublishBotArgs { botId: string; }
  • src/index.ts:69-73 (registration)
    Configuration and registration entry for the publishBot tool in the MCP server's toolsMap, including the Zod input schema for validation.
    ['publishBot', { func: publishBot, description: 'Publica un Typebot existente', schema: z.object({ botId: z.string().min(1, "El campo 'botId' es obligatorio.") }), }],
  • src/index.ts:19-23 (registration)
    Import statement that brings the publishBot handler into the main index file for registration.
    publishBot, unpublishBot, listResults, startChat, } from './tools/bots';

Other Tools

Related Tools

Latest Blog Posts

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/osdeibi/MCP-typebot'

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