opencode-docs-mcp (1.18.18-20260813)
Published 2026-08-13 05:00:30 +02:00 by Dominik
Installation
registry=npm install opencode-docs-mcp@1.18.18-20260813"opencode-docs-mcp": "1.18.18-20260813"About this package
opencode-docs-mcp
MCP server serving opencode documentation, optimized for LLM agents. Pre-built data is bundled in the package; the runtime server reads it without any network calls.
Installation
{
"mcp": {
"opencode-docs": {
"command": "npx",
"args": ["opencode-docs-mcp"]
}
}
}
Or install globally: npm i -g opencode-docs-mcp
Tools
| Tool | Description |
|---|---|
list_docs |
List all opencode documentation pages |
search_docs |
Search documentation by keyword |
get_doc |
Get a specific page by slug (optionally filtered by section) |
get_config_schema |
Get opencode.json config schema (overview or specific section) |
get_changelog |
Get opencode release notes |
refresh_data |
Download updated documentation data |
Development
This project uses npm with Node.js 22+.
npm ci
npm run dev
npm test
npm run build
npm run check:ci
If you prefer bun, create a local wrapper script:
cat > scripts/bun.sh << 'EOF'
#!/bin/sh
exec docker run --rm \
-v "$PWD:/workspace" \
-w /workspace \
-v "${HOME}/.bun-cache:/root/.bun/install/cache" \
oven/bun:1 \
bun "$@"
EOF
chmod +x scripts/bun.sh
Then use ./scripts/bun.sh install, ./scripts/bun.sh test, etc.
Architecture
src/— runtime code (shipped asdist/)data/— pre-built documentation data (shipped in package)scripts/— CI build pipeline (not shipped)- Tests mirror
src/structure undertests/
License
MIT
Dependencies
Dependencies
| ID | Version |
|---|---|
| @modelcontextprotocol/sdk | ^1.29.0 |
| minisearch | ^7.2.0 |
| remark-directive | ^4.0.0 |
| remark-gfm | ^4.0.1 |
| remark-mdx | ^3.1.1 |
| remark-parse | ^11.0.0 |
| remark-stringify | ^11.0.0 |
| unified | ^11.0.5 |
| unist-util-visit | ^5.1.0 |
| zod | ^4.4.3 |
Development dependencies
| ID | Version |
|---|---|
| @biomejs/biome | ^2.5.1 |
| @commitlint/cli | ^21.2.1 |
| @commitlint/config-conventional | ^21.2.0 |
| @modelcontextprotocol/inspector | ^0.22.0 |
| @types/node | ^22.0.0 |
| @vitest/coverage-v8 | ^4.1.9 |
| gray-matter | ^4.0.3 |
| knip | ^6.24.0 |
| lefthook | ^1.11.0 |
| tsdown | ^0.22.2 |
| tsx | ^4.23.0 |
| typescript | ^6.0.3 |
| vitest | ^4.1.9 |