feat(glyph): obsidian vault filesystem MCP server#479
Merged
Conversation
Move obsidian-sync off the 'mu' user account onto a dedicated 'obsidian' system user (/var/lib/obsidian). obsidian-vault-mcp runs as the same user, so it has native read/write access to vault files without ACLs or permission hacks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0270fac to
5f42e5d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
obsidian-vault-mcpNixOS module: wrapspkgs.mcp-server-filesystemwithmcp-proxyto expose the Obsidian vault as a streamable-HTTP MCP server on port 8096, registered with mcpjungle asobsidian-vaultobsidian-syncoff themuuser onto a dedicatedobsidiansystem user (/var/lib/obsidian); both services share this user soobsidian-vault-mcphas native read/write access to vault files~/vault→/var/lib/obsidian/vaultDeployment
After switching, the obsidian-sync service will be broken until re-initialized under the new user. Run:
# Re-run sync setup as the new system user sudo -u obsidian HOME=/var/lib/obsidian ob sync-setup --path /var/lib/obsidian/vaultThen restart the service:
The old vault data at
~/vaultcan be removed once sync is confirmed working.Test plan
obsidian-syncservice starts and syncs vault to/var/lib/obsidian/vaultobsidian-vault-mcpservice starts and responds on port 8096obsidian-vaultserver