UNPKG

obsidian-mcp-server

Version:

Obsidian Knowledge-Management MCP (Model Context Protocol) server that enables AI agents and development tools to interact with an Obsidian vault. It provides a comprehensive suite of tools for reading, writing, searching, and managing notes, tags, and fr

15 lines (14 loc) 540 B
/** * @module ObsidianApiUtils * @description * Internal utilities for the Obsidian REST API service. */ /** * Encodes a vault-relative file path correctly for API URLs. * Ensures path separators '/' are not encoded, but individual components are. * Handles leading slashes correctly. * * @param filePath - The raw vault-relative file path (e.g., "/Notes/My File.md" or "Notes/My File.md"). * @returns The URL-encoded path suitable for appending to `/vault`. */ export declare function encodeVaultPath(filePath: string): string;