YuanKai (yotta-dev-mcp)

v0.2.11
io.github.YottaMeta/yotta-dev-mcp Checked 15 hours ago Published 3 days ago

Local 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.

ParameterTypeDescription
path *stringRepository or source directory
max_filesintegerMaximum 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.

ParameterTypeDescription
path *stringRepository or source directory
contract_filestringContract path relative to the repository root (default .yotta/architecture.json)
max_filesintegerMaximum 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.

ParameterTypeDescription
path *stringRepository or source directory
contract_filestringContract path relative to the repository root (default .yotta/architecture.json)
max_filesintegerMaximum 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.

ParameterTypeDescription
path *stringRepository or source directory
changed_filesarrayRepository-relative changed files
contract_filestringContract path relative to the repository root (default .yotta/architecture.json)
depthintegerReverse-dependency depth (default 3)
diffstringUnified diff text to read changed files from
max_filesintegerMaximum source files to inspect (default 2000)
symbolsarrayTarget 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.

ParameterTypeDescription
path *stringRepository or source directory
allow_executebooleanMust be true to run whitelisted policy checks; default false
changed_filesarrayRepository-relative changed files
contract_filestringContract path relative to the repository root (default .yotta/architecture.json)
depthintegerReverse-dependency depth (default 3)
diffstringUnified diff text to read changed files from
levelsarrayAdditional verification levels; L2-L4 require a policy and explicit execution
max_filesintegerMaximum source files to inspect (default 2000)
policy_filestringVerification policy path relative to the repository root (default .yotta/verification.json)
symbolsarrayTarget symbols; their definition sites become the change
timeoutintegerUpper 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.

ParameterTypeDescription
path *stringSource checkout or installed skill directory
allow_executebooleanRun the project test suite; default false
modestringauto detects source vs installed layout
timeoutintegerTest 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.

ParameterTypeDescription
action *stringlist probes capability; run executes one adapter
path *stringRepository root
adapterstringAdapter id; required when action=run
allow_executebooleanMust be true to run an adapter; default false
max_charsintegerRepomix output cap in characters (default 120000)
targetstringRepository-relative adapter target (default .)
timeoutintegerAdapter timeout in seconds (default 120)
token_budgetintegerOptional 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.

ParameterTypeDescription
path *stringRepository, file or directory
query *stringSymbol or text to find
context_linesintegerContext lines around each match
extensionsarrayOptional file extensions such as .py or .ts
max_resultsintegerMaximum 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.

ParameterTypeDescription
filestringRead text from this file instead
head_linesinteger
max_charsintegerOutput character budget (default 4000)
tail_linesinteger
textstringText 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.

ParameterTypeDescription
max_findingsinteger
pathstringFile or repository path
textstringReview 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.

ParameterTypeDescription
basestringOptional git base revision
diff_textstringUnified diff content
max_findingsinteger
pathstringGit 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.

ParameterTypeDescription
config_pathsarray
include_defaultsbooleanAlso scan the built-in host registry when config_paths is supplied
skills_dirsarray

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.

ParameterTypeDescription
include_git_historybooleanAlso scan bounded git history; default false
max_findingsinteger
pathstringFile or repository path
textstringScan 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.

ParameterTypeDescription
path *stringRepository 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.

ParameterTypeDescription
path *stringPackage 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.

ParameterTypeDescription
cwd *stringProject directory
kind *string
allow_executebooleanMust be true; default false
timeoutinteger

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.

ParameterTypeDescription
name *stringLower-case skill slug
output_dir *stringParent output directory
applybooleanWrite files; default false
descriptionstring

workflow_state

Read .workflow state files and optionally append one log line with an explicit date. Use for session recovery and handoff checks.

ParameterTypeDescription
root *stringProject root
actionstring
applybooleanWrite; default false
datestringYYYY-MM-DD for append-log
filestring
textstring