Skip to main content
Glama

Obsidian MCP

by takuya0206
response-utils.ts638 B
import { ToolResponse } from "../types.js"; /** * Format error response for tools * @param message Error message * @returns Formatted error response */ export function formatErrorResponse(message: string): ToolResponse { return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } /** * Format success response for tools * @param data Data to include in the response * @returns Formatted success response */ export function formatSuccessResponse(data: any): ToolResponse { 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/takuya0206/obsidian-mcp'

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