Skip to main content
Glama

Claude Desktop Commander MCP

error-handlers.ts456 B
import { ServerResult } from './types.js'; import {capture} from "./utils/capture.js"; /** * Creates a standard error response for tools * @param message The error message * @returns A ServerResult with the error message */ export function createErrorResponse(message: string): ServerResult { capture('server_request_error', { error: message }); return { content: [{ type: "text", text: `Error: ${message}` }], isError: 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/wonderwhy-er/DesktopCommanderMCP'

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