Skip to main content
Glama

ClickUp MCP Integration

by Leanware-io
errors.ts1.23 kB
export class ToolError extends Error { constructor( message: string, public code: string, public details?: Record<string, any> ) { super(message); this.name = "ToolError"; } } export function formatErrorResponse(error: unknown) { if (error instanceof ToolError) { return { content: [ { type: "text", text: JSON.stringify({ error: { code: error.code, message: error.message, details: error.details, }, }), }, ], }; } if (error instanceof Error) { return { content: [ { type: "text", text: JSON.stringify({ error: { code: "INTERNAL_ERROR", message: error.message, stack: process.env.NODE_ENV === "development" ? error.stack : undefined, }, }), }, ], }; } return { content: [ { type: "text", text: JSON.stringify({ error: { code: "UNKNOWN_ERROR", message: String(error), }, }), }, ], }; }

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/Leanware-io/clickup-mcp-server'

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