YuanKai (yotta-dev-mcp)
v0.2.11Local dev tools over stdio MCP: repo map, impact analysis, verification and release checks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
repo_map
Map a local repository's source modules, imports and entrypoints. Use when starting work in an unfamiliar codebase or when you need a small structural overview before editing.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository or source directory |
max_files | integer | Maximum source files to inspect (default 2000) |
system_model
Build a deterministic system model (modules, imports, entrypoints, tests, configs, data stores) and attach layer data from the .yotta/architecture.json contract. Returns PASS, FAIL or UNKNOWN plus the unknowns that still need evidence. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository or source directory |
contract_file | string | Contract path relative to the repository root (default .yotta/architecture.json) |
max_files | integer | Maximum source files to inspect (default 2000) |
architecture_review
Review a local repository against the .yotta/architecture.json contract: dependency rules, boundary visibility and data ownership, each finding with file, line and severity. critical/high findings fail the review; medium/low are advisory; unverifiable items become UNKNOWN. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository or source directory |
contract_file | string | Contract path relative to the repository root (default .yotta/architecture.json) |
max_files | integer | Maximum source files to inspect (default 2000) |
impact_analysis
Build the change impact cone for local changes: reverse-dependency consumers, affected layers, boundaries, data stores and invariants, mapped tests, an explainable blast radius and rollback probes. Accepts changed_files, a unified diff or target symbols. Read-only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository or source directory |
changed_files | array | Repository-relative changed files |
contract_file | string | Contract path relative to the repository root (default .yotta/architecture.json) |
depth | integer | Reverse-dependency depth (default 3) |
diff | string | Unified diff text to read changed files from |
max_files | integer | Maximum source files to inspect (default 2000) |
symbols | array | Target symbols; their definition sites become the change |
verify_change
Run the L0-L5 verification ladder for a local change and return a deterministic evidence ledger. L0 syntax/contract and L1 architecture checks run by default; L2-L4 require a whitelisted .yotta/verification.json check plus allow_execute=true. L5 is always recorded as manual work. Read-only unless execution is explicitly enabled.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository or source directory |
allow_execute | boolean | Must be true to run whitelisted policy checks; default false |
changed_files | array | Repository-relative changed files |
contract_file | string | Contract path relative to the repository root (default .yotta/architecture.json) |
depth | integer | Reverse-dependency depth (default 3) |
diff | string | Unified diff text to read changed files from |
levels | array | Additional verification levels; L2-L4 require a policy and explicit execution |
max_files | integer | Maximum source files to inspect (default 2000) |
policy_file | string | Verification policy path relative to the repository root (default .yotta/verification.json) |
symbols | array | Target symbols; their definition sites become the change |
timeout | integer | Upper bound for each check in seconds (default 120) |
self_test
Run deterministic integrity checks on yotta-dev-mcp itself: required files, version alignment, protocol/tool schema drift, fail-closed write gates and seeded-defect counterexamples. Use installed mode for a skill copy and source mode for the checkout. Test-suite execution requires allow_execute=true; read-only by default.
| Parameter | Type | Description |
|---|---|---|
path * | string | Source checkout or installed skill directory |
allow_execute | boolean | Run the project test suite; default false |
mode | string | auto detects source vs installed layout |
timeout | integer | Test timeout in seconds (default 120) |
run_adapter
Probe or explicitly run an optional local architecture adapter. action=list only inspects project-local node_modules/.bin, venv and PATH for import-linter, dependency-cruiser and Repomix; action=run requires allow_execute=true. The adapter never installs packages, downloads files or accepts arbitrary argv. Missing tools or configs return UNKNOWN with the next step.
| Parameter | Type | Description |
|---|---|---|
action * | string | list probes capability; run executes one adapter |
path * | string | Repository root |
adapter | string | Adapter id; required when action=run |
allow_execute | boolean | Must be true to run an adapter; default false |
max_chars | integer | Repomix output cap in characters (default 120000) |
target | string | Repository-relative adapter target (default .) |
timeout | integer | Adapter timeout in seconds (default 120) |
token_budget | integer | Optional Repomix token budget |
find_code
Find a symbol, definition or text in local source files with bounded results. Use when locating where a function, class or string lives.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository, file or directory |
query * | string | Symbol or text to find |
context_lines | integer | Context lines around each match |
extensions | array | Optional file extensions such as .py or .ts |
max_results | integer | Maximum matches (default 100) |
compress_output
Compress long logs or command output while preserving errors, tracebacks, warnings, head and tail lines. Use before putting long tool output into the context window.
| Parameter | Type | Description |
|---|---|---|
file | string | Read text from this file instead |
head_lines | integer | |
max_chars | integer | Output character budget (default 4000) |
tail_lines | integer | |
text | string | Text to compress |
review_code
Run deterministic local code review rules and return evidence with file, line, rule, severity and suggestion. Use for a focused review before commit or PR.
| Parameter | Type | Description |
|---|---|---|
max_findings | integer | |
path | string | File or repository path |
text | string | Review this text instead |
review_diff
Review only added lines in a git diff or unified diff. Use when reviewing a patch or before opening a pull request.
| Parameter | Type | Description |
|---|---|---|
base | string | Optional git base revision |
diff_text | string | Unified diff content |
max_findings | integer | |
path | string | Git repository path |
mcp_doctor
Broad, read-only health check for installed skills and MCP client configuration. Discovers Codex, Cursor, WorkBuddy, OpenCode, Claude Code and other known hosts (plus project-level configs), parses JSON, JSONC and a narrow TOML subset, and always returns a coverage report with checked / missing / unsupported / unverified hosts. Only server names are returned; commands, args and env values are never included. A clean result applies only to the covered scope: read coverage and coverage_confidence before treating it as all-clear.
| Parameter | Type | Description |
|---|---|---|
config_paths | array | |
include_defaults | boolean | Also scan the built-in host registry when config_paths is supplied |
skills_dirs | array |
scan_secrets
Scan local source, configuration and env files for credentials and high-entropy tokens, returning redacted evidence. Use before commit, publishing or sharing a repository.
| Parameter | Type | Description |
|---|---|---|
include_git_history | boolean | Also scan bounded git history; default false |
max_findings | integer | |
path | string | File or repository path |
text | string | Scan this text instead |
scan_dependencies
Inspect local dependency manifests and lockfiles for missing locks, unpinned ranges, insecure sources and local-only paths. Offline heuristic only; no package-existence lookup.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repository path |
check_publish_readiness
Check a local package or skill for version alignment, required release files, repository metadata and public publish access. Use before tagging or publishing.
| Parameter | Type | Description |
|---|---|---|
path * | string | Package or skill directory |
run_checks
Run a whitelisted test, lint or compile check in a local project and return a bounded structured summary. Execution is explicit: use only when the user asks to run checks.
| Parameter | Type | Description |
|---|---|---|
cwd * | string | Project directory |
kind * | string | |
allow_execute | boolean | Must be true; default false |
timeout | integer |
scaffold_skill
Plan or create a minimal skill scaffold with SKILL.md, package.json, README, changelog and a starter script. Dry-run is the default.
| Parameter | Type | Description |
|---|---|---|
name * | string | Lower-case skill slug |
output_dir * | string | Parent output directory |
apply | boolean | Write files; default false |
description | string |
workflow_state
Read .workflow state files and optionally append one log line with an explicit date. Use for session recovery and handoff checks.
| Parameter | Type | Description |
|---|---|---|
root * | string | Project root |
action | string | |
apply | boolean | Write; default false |
date | string | YYYY-MM-DD for append-log |
file | string | |
text | string |