Skip to main content
Glama

firefox-devtools-mcp

response-helpers.ts751 B
/** * Helper functions for creating MCP tool responses */ import type { McpToolResponse } from '../types/common.js'; export function successResponse(message: string): McpToolResponse { return { content: [ { type: 'text', text: message, }, ], }; } export function errorResponse(error: Error | string): McpToolResponse { const message = error instanceof Error ? error.message : error; return { content: [ { type: 'text', text: `Error: ${message}`, }, ], isError: true, }; } export function jsonResponse(data: unknown): McpToolResponse { return { content: [ { type: 'text', text: JSON.stringify(data, null, 2), }, ], }; }

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/freema/firefox-devtools-mcp'

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