MCP Server¶
obsidian_palace.mcp.server
¶
MCP server definition and tool registration.
Uses FastMCP for ergonomic tool definitions with built-in OAuth support. Exposes vault search, read, write, and listing tools over the Model Context Protocol. Tool handlers delegate to the vault and search modules.
logger = logging.getLogger(__name__)
module-attribute
¶
create_mcp_server() -> tuple[FastMCP, ObsidianPalaceOAuthProvider]
¶
Create and configure the FastMCP server with OAuth.
Returns:
| Type | Description |
|---|---|
tuple[FastMCP, ObsidianPalaceOAuthProvider]
|
Tuple of (FastMCP server instance, OAuth provider for callback wiring). |