MercurieVV/ScalaSemantic
MCP server for deep semantic analysis of Scala via SemanticDB — exact find-usages, class hierarchies, implicit resolution & call paths for AI coding agents like Claude Code. Beyond grep and standard LSP.
stack: Scala
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 27/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit MercurieVV/ScalaSemantic/.claude ./rig-scalasemantic # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit MercurieVV/ScalaSemantic/.claude/skills/gh-task .claude/skills/gh-task $ npx degit MercurieVV/ScalaSemantic/.claude/skills/orchestrate .claude/skills/orchestrate $ npx degit MercurieVV/ScalaSemantic/.claude/skills/ta<redacted> .claude/skills/ta<redacted> $ npx degit MercurieVV/ScalaSemantic/.claude/skills/typed-holes .claude/skills/typed-holes
$ curl -fsSL --create-dirs -o .claude/agents/sanity-check.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/sanity-check.md $ curl -fsSL --create-dirs -o .claude/agents/scala-coder.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/scala-coder.md $ curl -fsSL --create-dirs -o .claude/agents/task-plan-architect.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/task-plan-architect.md $ curl -fsSL --create-dirs -o .claude/agents/task-prioritizer.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/task-prioritizer.md $ curl -fsSL --create-dirs -o .claude/agents/task-tree-triage.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/task-tree-triage.md $ curl -fsSL --create-dirs -o .claude/agents/triage.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/triage.md
Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Read|Grep|Glob|Bash|Edit|Write|MultiEdit|mcp__scala-semantic__annotated_source",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/scala-semantic-guard.sh"
}
]
}
]
}
} Skills (4)
Subagents (6)
| sanity-check model: haiku | Cheap self-check run BY a task agent on its own worktree before committing. Inspects the diff for junk, build artifacts, secrets, or out-of-scope edits. NOT called by the conductor — the task agent ca |
| scala-coder | Implements a single coding task end-to-end in an assigned git worktree for this Scala project. Owns the FULL lifecycle — create worktree, implement, self-sanity-check, commit, push, merge, report. Use |
| task-plan-architect model: opus | Uses the smartest available Claude model to expand one broad GitHub issue into a bounded set of implementation-ready subtasks, choosing the preferred LLM/model for each subtask and linking the resulti |
| task-prioritizer model: haiku | Fetches all open GitHub issues/tasks for this repo, prioritizes them by project need and dependency order, and comments priority/dependency notes back onto each task. Use before detailed task planning |
| task-tree-triage model: haiku | Cheap per-issue classifier for recursive task planning. Reads one GitHub issue, checks task-tree markers, and returns whether to skip, mark as an implementation-ready leaf with executor routing, or se |
| triage model: haiku | Cheap sequential classifier. Reads one GitHub issue, decides whether it is a standard coding task or an analytic task, routes it to the right engine+model (or marks it for step-by-step analytic planni |
Hooks (2)
| event | matcher | runs |
|---|---|---|
| PreToolUse | Read|Grep|Glob|Bash|Edit|Write|MultiEdit|mcp__scala-semantic__annotated_source | "$CLAUDE_PROJECT_DIR"/.claude/hooks/scala-semantic-guard.sh |
| PostToolUse | Read|Edit|Write|MultiEdit|Grep|Glob|Bash | python3 "$CLAUDE_PROJECT_DIR/scripts/log-scala-interaction.py" |
Permissions
deny (0)
—
ask (0)
—
allow (40)
Read
Edit
Write
MultiEdit
Glob
Grep
Bash(git *)
Bash(sbt *)
Bash(gh *)
Bash(./tree2m *)
Bash(scripts/*)
Bash(./scripts/*)
Bash(mkdir *)
Bash(rm *)
Bash(mv *)
Bash(cp *)
Bash(chmod *)
Bash(ls *)
Bash(pwd)
Bash(cd *)
Bash(cat *)
Bash(echo *)
Bash(which *)
Bash(mktemp*)
mcp__scala-semantic__find_symbol
mcp__scala-semantic__find_usages
mcp__scala-semantic__class_hierarchy
mcp__scala-semantic__members
mcp__scala-semantic__method_signature
mcp__scala-semantic__document_outline
mcp__scala-semantic__annotated_source
mcp__scala-semantic__call_path
mcp__scala-semantic__resolve_implicits
mcp__scala-semantic__trace_implicit_chain
mcp__scala-semantic__type_at_position
mcp__scala-semantic__find_overloads
mcp__scala-semantic__structure
mcp__scala-semantic__rename_plan
mcp__scala-semantic__move_plan
mcp__scala-semantic__extract_method_plan
Similar rigs
orwrkr/orchestra
Multi-model orchestrator for Claude Code: routes subtasks to Claude subagents, Codex CLI, DeepSeek and manual agents by difficulty, limits and spend.
Minimalist 2.5k tok · · Q3
snaplyze/claude-orchestration
Claude Code plugin for orchestration: five specialist subagents with explicit model and effort, subscription profiles, user-scope install, and runtime verification
Minimalist 1.2k tok · · Q17
Ovich/swarmstorm
Multi-agent orchestration for Claude Code, Codex and Cursor: parallel coding agents that settle shared files before the merge, QA agents that test the running app, clickable prototypes, workbenches and live plans in aiview. Your own subscri
Minimalist 2.4k tok · · Q0
Shuffzord/RoadRaven
Your plan, watching itself. Local desktop roadmap tree that Claude Code and any MCP host keep up to date live. Plain JSON, no cloud.
Pragmatist 3.6k tok · · Q3