feat: add MCP server for headless wiki operations (no Tauri/GUI)#117
Open
toughhou wants to merge 2 commits intonashsu:mainfrom
Open
feat: add MCP server for headless wiki operations (no Tauri/GUI)#117toughhou wants to merge 2 commits intonashsu:mainfrom
toughhou wants to merge 2 commits intonashsu:mainfrom
Conversation
- 新增 SKILL.md(技能定义,10个命令:init/ingest/search/graph/insights/deep-research 等) - 新增 HERMES.md(Hermes 入口骨架) - 新增 install.sh(支持 --platform hermes/claude) - 新增 skill/src/fs-node.ts(Tauri IPC → Node.js fs 完整替换层) - 新增 skill/src/stores-node.ts(React stores → 模块状态替换) - 新增 skill/src/cli.ts(CLI 入口,graph/insights/search/status 命令当前可用) - 新增 skill/package.json + tsconfig.skill.json Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
MCP Server (mcp-server/): - 5 MCP tools: wiki_status, wiki_search, wiki_graph, wiki_insights, wiki_lint - Standalone Node.js package — no Tauri/GUI required - Claude Desktop + VS Code Copilot chat compatible - tsconfig path aliases replaced with explicit patched lib copies - Degrades gracefully: BM25 search works without vector/LLM config Skill CLI (skill/): - Rebuilt as self-contained package (no path aliases, no Tauri deps) - src/lib/: patched copies of graph-relevance, wiki-graph, graph-insights, search, path-utils - src/shims/: fs-node.ts (Tauri IPC → Node.js fs), stores-node.ts, embedding-stub.ts - src/types/wiki.ts: extracted FileNode/WikiProject types - Commands: graph, insights, search, status, init, lint - All commands tested and working Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
Adds a standalone MCP (Model Context Protocol) server that exposes llm_wiki's backend logic as AI-callable tools — without requiring the Tauri desktop app. This lets users give Claude Desktop, VS Code Copilot Chat, Cursor, or any MCP host direct access to their wiki knowledge base.
New:
mcp-server/MCP Tools
wiki_statuswiki_searchwiki_graphwiki_insightswiki_lintQuick Start
Architecture Notes
The Tauri IPC boundary (
@/commands/fs) is the only thing tying the TypeScript logic to the desktop app. Theshims/fs-node.tsreplaces allinvoke()calls with standardfsmodule operations, makinggraph-relevance.ts,wiki-graph.ts,graph-insights.ts, andsearch.tsfully portable.Works without Tauri: ✅ graph, search, insights, lint
Requires Tauri (not ported): ❌ ingest (PDF/DOCX extraction), deep-research (web fetch), sweep-reviews
Testing