Refactor: Organize Obsidian MCP into proper package structure

Moved obsidian_mcp.py into mcp_servers/obsidian/ to align with other
MCP server organization (SSH, Cloudflare, Loki). This improves code
discoverability and maintains consistent package structure.

Changes:
- Moved obsidian_mcp.py → mcp_servers/obsidian/obsidian_mcp.py
- Updated lazy import in llm_interface.py (line 396)
- Updated lazy import in tools.py (line 550)
- Deleted empty scripts/ directory

All imports verified with runtime tests. Zero functional changes.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 13:31:25 -07:00
parent 7697220c74
commit 6d62fa6314
4 changed files with 4 additions and 3 deletions

View File

@@ -393,7 +393,7 @@ class LLMInterface:
# Conditionally add Obsidian MCP server
try:
from obsidian_mcp import (
from mcp_servers.obsidian.obsidian_mcp import (
is_obsidian_enabled,
check_obsidian_health,
get_obsidian_server_config,

View File

@@ -0,0 +1 @@
# mcp_servers.obsidian - Obsidian MCP server integration

View File

@@ -547,7 +547,7 @@ def _execute_obsidian_tool(
) -> str:
"""Execute an Obsidian MCP tool with fallback to custom tools."""
try:
from obsidian_mcp import (
from mcp_servers.obsidian.obsidian_mcp import (
check_obsidian_health,
should_fallback_to_custom,
)
@@ -572,7 +572,7 @@ def _execute_obsidian_tool(
f"Please start Obsidian desktop app."
)
except ImportError:
return f"Error: obsidian_mcp module not found for tool '{tool_name}'"
return f"Error: mcp_servers.obsidian.obsidian_mcp module not found for tool '{tool_name}'"
# Maximum characters of tool output to return (prevents token explosion)