ai-disk-doctor-integrations
AI Disk Doctor Integrations
Universal local Agent Skill and non-destructive diagnostic MCP server for AI Disk Doctor Core.
This repository is an integration and distribution layer. It does not implement a second scanner, cleaner, risk engine, recovery model, policy system, history engine, or explainability engine. The local Core remains the execution and policy source of truth.
Current Alpha Scope
The MCP server exposes six tools:
Tool | Behavior | Model-facing inputs | Core side effect |
| Discover Core's machine-readable capability contract and evaluate the explainability readiness gate | None | None |
| Run Core explainability through the fixed no-snapshot diagnostic contract and return bounded storage/evidence/handling summaries |
| None |
| Check Core availability, required command surface, and compatibility provenance | None | None |
| Run |
| Current Core CLI may save |
| Run |
| None intended |
| Run Core-owned | None | None |
The current Alpha exposes no clean, restore, quarantine, delete, arbitrary shell, arbitrary executable, arbitrary rules/policy path, arbitrary reports directory, or arbitrary filesystem mutation tool. aidisk_workspace_explain is read-only and invokes only aidisk explain --json --snapshot skip with an optional validated category selector.
Current Core Baseline
Tested Core baseline: v1.8.0 release at
3e3f38535af74dcb168c7c1f01773a1b80fee052.Pinned Core provides
agent-capabilities-v1andagent-diagnostic-cli-v1, embeddingexplainability-v1schema1in the fixedexplain --json --snapshot skipresponse.
Install
Prerequisites
Node.js 18 or newer.
AI Disk Doctor Core v1.8.0 on
PATHasaidisk/aidisk.exe, or setAIDISK_EXE. On Windows x86_64, I3 setup can acquire the official release automatically when neither is supplied.This integration is tested against Core release v1.8.0 at
3e3f38535af74dcb168c7c1f01773a1b80fee052. Runtime compatibility is checked bycore_statusand the machine-readableaidisk capabilities --jsoncontract; current Core binaries do not expose a runtime git revision, so the exact revision is recorded as release provenance rather than claimed from runtime detection.
Install from a checkout:
git clone https://github.com/quzhiii/ai-disk-doctor-integrations.git
cd ai-disk-doctor-integrations
npm install
npm startThe process uses MCP stdio transport and should be started by an MCP client. The npm dependency set is locked in package-lock.json.
I3 Self-Service Alpha
For the Windows-first Claude Code path, use the package-managed setup and
verification commands documented in docs/I3_SELF_SERVICE.md:
npm install
node scripts/i3.mjs setup --workspace C:\path\to\workspace --core C:\path\to\aidisk.exe
node scripts/i3.mjs verify --workspace C:\path\to\workspace --core C:\path\to\aidisk.exeSetup refuses to overwrite an unowned same-name Claude registration. The safe
Alpha launch uses a temporary strict MCP configuration with only the existing
diagnostic MCP tools and denies host mutation/shell tools. feedback writes a
local redacted receipt only when explicitly requested; uninstall removes only
the package-owned local Claude registration.
OpenCode
OpenCode supports project-local MCP declarations in opencode.json or opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ai-disk-doctor": {
"type": "local",
"command": ["node", "C:/absolute/path/to/ai-disk-doctor-integrations/src/server.js"],
"cwd": "C:/absolute/path/to/your-workspace",
"environment": { "AIDISK_EXE": "aidisk" },
"enabled": true
}
}
}Set cwd to the user workspace where Core snapshots should be stored, rather than the integration checkout. Then use opencode mcp list or ask the agent to check core_status. The checked-in example is under adapters/opencode/opencode.jsonc.
OpenCode Agent Skills are discovered from .opencode/skills, .claude/skills, or .agents/skills. Copy or symlink skills/ai-disk-doctor into one of those locations for a project or user installation.
Qwen Code
Qwen Code supports local stdio MCP servers and extensions in current official documentation. Equivalent .qwen/settings.json entry:
{
"mcpServers": {
"ai-disk-doctor": {
"command": "node",
"args": ["/absolute/path/to/ai-disk-doctor-integrations/src/server.js"],
"cwd": "/absolute/path/to/your-workspace",
"env": { "AIDISK_EXE": "aidisk" },
"trust": false
}
}
}The repository root is a Qwen extension package through qwen-extension.json; see adapters/qwen/README.md. The locally installed Qwen CLI in this environment was too old to expose documented MCP/extension subcommands, so client smoke is not claimed.
CodeBuddy / WorkBuddy
Exact packaging is deferred until an official, locally testable CodeBuddy / WorkBuddy client contract is available; see adapters/codebuddy/README.md. No Expert persona or vendor-specific risk logic is included.
TRAE
TRAE MCP and Skill docs exist, but exact project packaging is deferred until a TRAE client is locally available for validation; see adapters/trae/README.md.
Safety Boundary
MCP transport is local stdio only.
core_status.server.modeisnon-destructive-diagnostic: the server exposes no destructive action, butscan_summarycan cause Core-owned snapshot persistence.The server starts only the configured
aidiskexecutable with fixed allowlisted argv.aidisk_capabilitiesaccepts no model-facing input and invokes only the fixedaidisk capabilities --jsonargv.Model-facing inputs are limited to
aidisk_workspace_explain.category,scan_summary.category, andai_model_inventory.tool.aidisk_workspace_explainfirst checksaidisk capabilities --json, then invokes onlyaidisk explain --json --snapshot skipwith an optional validated--category. It rejects missing/unsupported contracts, malformed response envelopes, and snapshot-writing behavior.No model-facing rules, policy, root, reports directory, executable, shell, cleanup, quarantine, restore, or delete parameter exists.
scan_summaryis non-destructive butreadOnlyHint: falsebecause current Core CLI scan persists a Core-owned snapshot. It isdestructiveHint: falseand does not modify user/workspace files.Output is bounded: scan findings, model assets, diff changes, Core stdout/stderr capture, error evidence, and MCP text content all have hard limits.
Model inventory is metadata-only according to the Core contract; this integration does not read prompt, transcript, source, document, token, cookie, credential, or model binary contents.
aidisk_capabilitiesdoes not parse human help text or infer support from version numbers. Missing, malformed, or unsupported capability contracts fail closed.
Agents must never bypass these rules by deleting paths with shell commands. If a future mutation flow is approved, it must use a separate Desktop-mediated authorization surface.
Development
npm install
npm run check
npm test
npm audit --audit-level=moderate
git diff --check
cargo fmt --manifest-path spikes/rust-direct-core/Cargo.toml -- --check
cargo run --manifest-path spikes/rust-direct-core/Cargo.tomlFor a real Core smoke, use the official Core v1.8.0 release or build release baseline 3e3f38535af74dcb168c7c1f01773a1b80fee052, set AIDISK_EXE to that binary, and run npm test. CI includes a current-release AIDISK_EXE smoke in addition to protocol-only Node tests and the Rust direct-Core spike.
License
The integration source is dual-licensed under MIT or Apache-2.0. See LICENSE-MIT and LICENSE-APACHE. Core licensing remains governed by the public Core repository.
Status
I3 Self-Service Safe Alpha. This repository is not the commercial Desktop and contains no accounts, billing, entitlements, telemetry, cloud synchronization, or proprietary Desktop code.
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/quzhiii/ai-disk-doctor-integrations'
If you have feedback or need assistance with the MCP directory API, please join our Discord server