Language: English | Deutsch
Note
Repository: thelad-dev/MCP-IBMiDocs
Based on h0w4r/MCP-IBMiDocs, with English as project language, a German docs/CLI overlay, and install from this checkout (not the upstream npm registry).
Local MCP server and CLI so LLM agents consult IBM i / AS400 documentation from an indexed corpus before answering about RPGLE, SQLRPGLE, CLLE, DDS, commands, messages, and Db2 for i.
Less “I think it was like this”, more “I checked it against indexed IBM i docs”.
- Explains commands such as
CRTRPGMOD,CRTSQLRPGI, orSND-MSG - Reviews RPGLE, SQLRPGLE, CLLE, or DDS
- Diagnoses documented messages such as
RNF5393 - Compares docs across IBM i 7.3–7.6
- Feeds compact evidence into Codex or other MCP clients
No RDi, no Eclipse Help, no local RDi endpoints at runtime. The corpus lives in SQLite with semantic vectors. Default MCP profile is agent-first: the agent only sees ibmi_docs_assist, which returns the final answer (no scores, IDs, or retrieval plans).
Prerequisite: Node.js 22 or 24 LTS (CI-validated). Node 26 may work but is outside engines and can warn with EBADENGINE.
git clone https://github.com/thelad-dev/MCP-IBMiDocs.git $HOME\Workspaces\MCP-IBMiDocs
cd $HOME\Workspaces\MCP-IBMiDocs
npm install
npm run build
npm link
ibmi-docs --versiongit clone https://github.com/thelad-dev/MCP-IBMiDocs.git ~/Workspaces/MCP-IBMiDocs
cd ~/Workspaces/MCP-IBMiDocs
npm install
npm run build
npm link
ibmi-docs --versionWhat that does:
npm install— dependencies +postinstall(assembles Data Pack fromdata/packparts and prepares neural models under~/.ibmi-docs-mcp)npm run build— compiles TypeScript todist/npm link— putsibmi-docsandibmi-docs-mcpon your PATH from this checkout
If your npm blocks install scripts (allowScripts), approve and rebuild natives before doctor will work:
npm install-scripts approve better-sqlite3 onnxruntime-node esbuild protobufjs sharp
npm rebuild better-sqlite3 onnxruntime-node
# or: npm install --foreground-scriptsibmi-docs doctor
ibmi-docs assist "Explain CRTRPGMOD and when it is preferable to CRTBNDRPG" --language RPGLE --ibmi-version 7.5doctor should report "ok": true and No RDi, no Eclipse Help, no local RDi endpoint.
CLI language: --locale de or IBMI_DOCS_LOCALE=de (see CLI locale).
Full guide: docs/INSTALLATION.md.
cd ~/Workspaces/MCP-IBMiDocs
git pull
npm install
npm run build
npm link
ibmi-docs doctornpm unlink -g @ckirsch94/ibmi-docs-mcp # npm package id in package.json (link name only)
# optional local data:
rm -rf ~/.ibmi-docs ~/.ibmi-docs-mcp(@ckirsch94/ibmi-docs-mcp is only the npm package name kept for merge compatibility. This repo is not published under that name.)
After npm link, point the client at the linked binary:
(Get-Command ibmi-docs-mcp.cmd).Sourcecommand -v ibmi-docs-mcpExample config.toml (adjust the path to what command -v printed):
[mcp_servers.ibmi-docs]
command = "/home/<user>/.local/bin/ibmi-docs-mcp"
args = []
startup_timeout_sec = 30.0
tool_timeout_sec = 120.0
[mcp_servers.ibmi-docs.env]
IBMI_DOCS_TOOL_PROFILE = "agent"Or generate a block from the current install:
ibmi-docs codex-configOptional Skill: skills/ibmi-docs/SKILL.md (German: SKILL.de.md).
I am creating an SQLRPGLE program with EXEC SQL and /COPY.
Check the compile guide against IBM i Docs before proposing the command.
I have RNF5393 in an RPGLE listing. Explain it and give me a review checklist.
ibmi-docs assist "Fix CLLE with RTVJOBA and MONMSG" --language CLLE --ibmi-version 7.5 --depth deep
ibmi-docs assist "How do I compile SQLRPGLE with EXEC SQL" --language SQLRPGLE --depth deep
ibmi-docs search "RNF5393" --category mensajes-rnf --limit 3
ibmi-docs doctor--version is the CLI version. For IBM i release filtering use --ibmi-version / --release.
No automatic telemetry. Opt in on your machine:
$env:IBMI_DOCS_TRACE = '1'
$env:IBMI_DOCS_TRACE_FILE = "$HOME\Workspaces\MCP-IBMiDocs\data\trace-feedback.ndjson"
ibmi-docs search "DSPFD command" --category dds --limit 3
ibmi-docs trace-report --limit 20 --format markdown --out scope-feedback.mdexport IBMI_DOCS_TRACE=1
export IBMI_DOCS_TRACE_FILE="$HOME/Workspaces/MCP-IBMiDocs/data/trace-feedback.ndjson"
ibmi-docs search "DSPFD command" --category dds --limit 3
ibmi-docs trace-report --limit 20 --format markdown --out scope-feedback.mdDefault: IBMI_DOCS_TOOL_PROFILE=agent → only ibmi_docs_assist.
| Tool | Role |
|---|---|
ibmi_docs_assist |
Full task in → final technical answer out |
Maintainer / debug profile:
export IBMI_DOCS_TOOL_PROFILE=full
ibmi-docs-mcpThen tools such as ibmi_docs_search, ibmi_docs_read, and ibmi_docs_compare_versions appear. Network sync (ibmi_docs_sync) needs full/maintainer and IBMI_DOCS_ALLOW_NETWORK_SYNC=1.
- TypeScript MCP over stdio +
ibmi-docsCLI - Neural retrieval: E5-base embeddings,
query→corpushead, mMARCO MiniLM reranker (local) - Data Pack:
data/pack(manifest.json, HTML/text, SQLite + vectors; ~7k IBM Docs topics) - EN/DE: docs under
docs/anddocs/de/; CLI/postinstallvialocales/(--locale,IBMI_DOCS_LOCALE)
Details: ARCHITECTURE · DATA_PACKS · AGENT_WORKFLOWS · RECIPES
Useful PRs: bad rankings, golden cases, docs, missing categories, recipes.
cd ~/Workspaces/MCP-IBMiDocs
npm ci
npm run build
npm run test
npm run pack:validate
npm run smokeSee CONTRIBUTING.md.
This tree tracks h0w4r/MCP-IBMiDocs. The npm name @ckirsch94/ibmi-docs-mcp stays so merges stay simple; do not npm install -g @ckirsch94/ibmi-docs-mcp expecting this fork. Issues and PRs for this line of work: thelad-dev/MCP-IBMiDocs.
Community, unofficial project. IBM, IBM i, AS/400, RDi, and related names are trademarks of their owners. Not affiliated with or endorsed by IBM. See NOTICE.md and LICENSE (ISC).
