openwiki-mcp
openwiki-mcp
MCP 服务器,将 OpenWiki (OpenChamber) 文档生成功能作为 模型上下文协议工具暴露,使官方、未修改的 OpenCode(或任何 MCP 主机)能够生成和更新仓库 wiki。
完全独立于 opencode 源代码树 —— openwiki 本身被解析为
外部包(npm 安装或分段离线包),代理凭据通过环境变量传递,从不存储。
工具
工具 | 映射到代理 | 注释 |
| — (仅本地) | 检查 |
|
| 首次 wiki 生成。可选的 |
|
| 基于差异的刷新;仅重新生成过时的页面。 |
Related MCP server: mediawiki-mcp-server
前提条件
Node.js >= 22(MCP 服务器和代理子进程均在
node下运行)openwiki 包安装:
npm install -g openwiki # online machine, or# offline machine: copy a prepared bundle and point at it set OPENWIKI_PACKAGE_ROOT=D:\path\to\staged\bundle\node_modules\openwikiOPENWIKI_PACKAGE_ROOT可以直接指向包根目录,也可以指向包含node_modules/openwiki的布局。分段离线包不需要 连接点或符号链接技巧——Node 通过正常的node_modules遍历来解析代理的裸导入。
代理模型配置
服务器将以下变量传递(从不存储)到代理子进程中:
环境变量(服务器端) | 含义 |
|
|
| 模型 ID,例如 |
| 指向本地 OpenAI 兼容网关,以将真实密钥保留在代理环境之外 |
| openai-compatible 提供商的密钥 |
|
|
| 可选;指向 openwiki 安装的显式路径 |
每次调用的 modelId/language/userMessage 工具参数会覆盖该次运行的
环境设置。
注册到 OpenCode
添加到您的 opencode.json / opencode.jsonc:
{
"mcp": {
"openwiki": {
"type": "local",
"command": ["node", "D:/path/to/openwiki-mcp/dist/index.js"],
"environment": {
"OPENWIKI_PACKAGE_ROOT": "D:/path/to/staged/bundle/node_modules/openwiki",
"OPENWIKI_PROVIDER": "openai-compatible",
"OPENWIKI_MODEL_ID": "gpt-5",
"OPENAI_COMPATIBLE_BASE_URL": "http://127.0.0.1:4096/v1"
}
}
}
}然后这三个工具会作为普通工具出现在每个 OpenCode 对话中。
开发
npm install
npm run build # tsc -> dist/
npm test # node --test (status inspection unit tests)
npm run dev # run the server via tsx (dev)冒烟测试:
node scripts/smoke.mjs <dir> status # local inspection only
node scripts/smoke.mjs <dir> init "note" # full agent run (needs model env)手动 MCP 协议检查:
@'
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
'@ | node dist/index.js设计说明
src/openwiki/resolve.ts— 包解析:OPENWIKI_PACKAGE_ROOT,然后require.resolve("openwiki/package.json")。src/openwiki/worker.mjs— 适配器工作进程:从 stdin 读取一个作业,通过绝对路径导入 代理入口,将 NDJSON 进度信息输出到 stdout。从 opencode 分支的packages/openwiki适配器移植,并保持独立。src/openwiki/run.ts— 将工作进程生成为 MCP 服务器的子进程,因此 挂起的代理绝不会拖垮 MCP 主机。src/status.ts— 本地状态检查(无模型成本)。v0.1 将
generate映射到代理的init命令,匹配 openwiki 0.3.x 其中init是首次生成命令,update是刷新命令。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server for codewiki.google — AI-powered wiki documentation for open-source repositories. Search repos, fetch wiki content, and ask questions about any repo.37214MIT
- AlicenseAqualityAmaintenanceMCP server for MediaWiki wikis. Search, read, edit, and manage wiki content from AI assistants. Includes formatting, link checking, revision history, and markdown conversion.4320MIT
- AlicenseAqualityCmaintenanceEnables searching and retrieving Minecraft Wiki content in multiple formats (wikitext, HTML, markdown) through MCP tools, with batch retrieval and health monitoring.51MIT
- Flicense-qualityCmaintenanceEnables building and querying a local wiki knowledge base from raw source files via MCP tools and a PyQt viewer.
Related MCP Connectors
Generate AGENTS.md, AP2 compliance docs, checkout rules, debug playbook & MCP configs from any repo.
Self-hostable team wiki; agents read & write it via MCP; Atlas turns your repo into a cited wiki.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Blanceone/openwiki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server