feat(mcp): serve safe source file assets
Add a stdio MCP server for searching and reading safe engineering source files from the wiki file asset index. The implementation uses registry-backed ACL checks, engineering-file whitelisting, asset:// resource URIs, read-only SQLite access, CLI entrypoints, optional MCP packaging, and unittest coverage for search, metadata, resource reads, blocked sources, bot ACLs, and size limits. Validation: python3 -m unittest discover -v; python3 -m py_compile obsidian_wiki/config.py obsidian_wiki/file_assets.py obsidian_wiki/mcp_assets.py obsidian_wiki/mcp_server.py obsidian_wiki/cli.py tests/test_mcp_assets.py; real BJD vault search/read smoke tests.
This commit is contained in:
@@ -33,6 +33,9 @@ classifiers = [
|
||||
# Pure-stdlib CLI — installing skills needs no third-party runtime dependencies.
|
||||
dependencies = []
|
||||
|
||||
[project.optional-dependencies]
|
||||
mcp = ["mcp>=1.28,<2"]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/Ar9av/obsidian-wiki"
|
||||
Repository = "https://github.com/Ar9av/obsidian-wiki"
|
||||
@@ -40,6 +43,7 @@ Issues = "https://github.com/Ar9av/obsidian-wiki/issues"
|
||||
|
||||
[project.scripts]
|
||||
obsidian-wiki = "obsidian_wiki.cli:main"
|
||||
obsidian-wiki-mcp = "obsidian_wiki.mcp_server:main"
|
||||
|
||||
# Version is derived from the git tag (CalVer, e.g. v2026.05.2 -> 2026.5.2),
|
||||
# matching the repo's release tags. Tagging a release is the version bump.
|
||||
|
||||
Reference in New Issue
Block a user