openwiki-mcp
openwiki-mcp
OpenWiki (OpenChamber) のドキュメント生成機能を Model Context Protocol ツールとして公開する MCP サーバーです。公式の未改変の 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"
}
}
}
}これにより、3 つのツールがすべての 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— アダプターワーカー: 標準入力から 1 つのジョブを読み取り、エージェントエントリを絶対パスでインポートし、標準出力に NDJSON 進捗を出力します。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