Utilities for project root detection and project-specific configuration.
Environment variable prefix used to pass CLI config to the server subprocess.
Read the server project context from environment transport data.
Find the project root by looking for .git directory.
Walks up the directory tree from start_path (or cwd) looking for a .git directory, which indicates the project root.
Find project-specific AGENTS.md file(s).
Checks two locations and returns ALL that exist:
Both files will be loaded and combined if both exist.
Explicit user/project path context for project-sensitive behavior.