Quale exposes its 3 harness-proven commands as MCP tools — typed functions any MCP-compatible agent can call directly, no shell overhead.
| Method | Best for | Tradeoffs |
|---|---|---|
| MCP server | Agents with MCP support | Typed function calls, no shell parsing, lower token overhead |
| Shell commands | Agents without MCP, or when you want explicit control | Works everywhere, but requires parsing JSON output |
| Skill file | OpenCode users who want automatic invocation | Auto-loaded, but requires agent to remember to call |
All three methods call the same underlying engine. The 75% accuracy and 0.0 extra edits metrics apply to all three.
Run quale --mcp to start the MCP server. It reads JSON-RPC requests from
stdin and writes responses to stdout (stdio transport — zero network, zero
dependencies).
Discovered via tools/list on startup. Agent sees 3 tools:
| Tool | Input | Returns |
|---|---|---|
edit_context |
{file: str, task?: str, path?: str} |
Risk, verification candidates, scope guard |
verify_packet |
{file: str, diff?: str, path?: str} |
Verification + entangled candidates |
orient |
{path?: str} |
Module map, landmarks, languages |
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"quale": {
"type": "local",
"command": ["quale", "--mcp"],
"description": "Structural codebase analysis. 75% test-file accuracy."
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"quale": {
"command": "quale",
"args": ["--mcp"]
}
}
}claude mcp add quale -- pip install quale && quale --mcpAdd to ~/.cursor/mcp.json:
{
"mcpServers": {
"quale": {
"type": "local",
"command": ["quale", "--mcp"]
}
}
}Add to your MCP config:
{
"mcpServers": {
"quale": {
"command": "quale",
"args": ["--mcp"]
}
}
}12-trial comparison (Mistral-7B, 4 conditions):
| Condition | Correct test file | Method |
|---|---|---|
| Baseline (no skill, no MCP) | 2/3 | Agent guesses by naming convention |
| Skill only | 3/3 | quale ec via shell |
| MCP only | 2/3 | edit_context tool |
| MCP + skill | 3/3 | Typed tool preferred, skill as fallback |
MCP + skill together is the strongest configuration. The agent prefers
the typed edit_context tool over shell commands, but the skill ensures
correct behavior even when MCP isn't available.