Skip to main content
Glama

Obsidian MCP REST Server

base-tool.ts919 B
import { Tool } from '../types'; import { ObsidianAPI } from '../obsidian-api'; export interface ToolResponse { content: Array<{ type: string; text: string; }>; } export interface ToolDefinition { name: string; description: string; inputSchema: object; } export abstract class BaseTool implements Tool { protected api: ObsidianAPI; protected name: string; protected description: string; protected inputSchema: object; constructor(api: ObsidianAPI, name: string, description: string, inputSchema: object) { this.api = api; this.name = name; this.description = description; this.inputSchema = inputSchema; } getName(): string { return this.name; } getDefinition(): ToolDefinition { return { name: this.name, description: this.description, inputSchema: this.inputSchema, }; } abstract execute(args: any): Promise<ToolResponse>; }

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/PublikPrinciple/obsidian-mcp-rest'

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