Skip to main content
Glama

Lulu Print MCP Server

by devlimelabs
webhook-tools.ts1.17 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import apiClient from '../utils/api-client.js'; import { createErrorResponse } from '../utils/error-handler.js'; // Schemas for input validation const CreateWebhookSchema = z.object({ url: z.string().url(), topics: z.array(z.enum(['PRINT_JOB_STATUS_CHANGED'])) }); const WebhookIdSchema = z.object({ id: z.string() }); const UpdateWebhookSchema = z.object({ id: z.string(), url: z.string().url().optional(), topics: z.array(z.enum(['PRINT_JOB_STATUS_CHANGED'])).optional(), is_active: z.boolean().optional() }); const TestWebhookSchema = z.object({ id: z.string(), topic: z.enum(['PRINT_JOB_STATUS_CHANGED']) }); const ListWebhookSubmissionsSchema = z.object({ webhook_id: z.string().optional(), page: z.number().int().positive().optional(), page_size: z.number().int().positive().optional() }); export const registerWebhookTools = (server: McpServer) => { // Webhook tools are handled directly in server.ts using the API client // This file is kept for potential future expansion and custom webhook logic }; export default registerWebhookTools;

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/devlimelabs/lulu-print-mcp'

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