Skip to main content
Glama

MCP Tools for Obsidian

getFileSystemAdapter.ts511 B
import { Plugin, FileSystemAdapter } from "obsidian"; /** * Gets the file system adapter for the given plugin. * * @param plugin - The plugin to get the file system adapter for. * @returns The file system adapter, or `undefined` if not found. */ export function getFileSystemAdapter( plugin: Plugin, ): FileSystemAdapter | { error: string } { const adapter = plugin.app.vault.adapter; if (adapter instanceof FileSystemAdapter) { return adapter; } return { error: "Unsupported platform" }; }

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/jacksteamdev/obsidian-mcp-tools'

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