opencode-docs-mcp (1.17.13-20260808)

Published 2026-08-08 16:27:23 +02:00 by Dominik

Installation

registry=
npm install opencode-docs-mcp@1.17.13-20260808
"opencode-docs-mcp": "1.17.13-20260808"

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 as dist/)
  • data/ — pre-built documentation data (shipped in package)
  • scripts/ — CI build pipeline (not shipped)
  • Tests mirror src/ structure under tests/

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
Details
npm
2026-08-08 16:27:23 +02:00
1
MIT
4.6 KiB
Assets (1)
Versions (14) View all
1.18.30 2026-09-10
1.18.29 2026-09-05
1.18.27 2026-09-04
1.18.26 2026-09-02
1.18.25 2026-08-29