Skip to main content
Glama
kzmshx
by kzmshx
0007-use-relative-paths-from-base-directory.md656 B
# 7. Use relative paths from base directory Date: 2025-11-28 ## Status Accepted ## Context We needed to decide how to represent file paths in query results. Candidates: - Absolute path: `/Users/kzmshx/Documents/Obsidian/atoms/daily/2025-11-01.md` - Relative path: `daily/2025-11-01.md` ## Decision Use relative paths from `--base-dir`. ```python result["path"] = str(path.relative_to(base_dir)) ``` ## Consequences - Portable path representation independent of environment - Concise output with unnecessary prefixes removed - Paths outside base-dir are not included in results - Clients need to join with base-dir if absolute paths are required

Latest Blog Posts

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/kzmshx/frontmatter-mcp'

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