vis-mcp
v3.1.0MCP (Model Context Protocol) server for @visulima/vis — exposes vis tooling to AI agents over stdio
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_projects
List all workspace projects with their language, type, layer, tags, and target metadata. Optionally filter with a vis query string (e.g. "tag=frontend", "type=application").
| Parameter | Type | Description |
|---|---|---|
query | string | Filter projects by vis query string (e.g. "tag=frontend") |
describe_project
Return full metadata for a single workspace project: language, layer, stack, type, tags, root path, and all targets.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name (e.g. "@visulima/cerebro") |
list_targets
List per-target rows across the workspace: which targets each project exposes, with type, command, and description. Optionally narrow to a single project.
| Parameter | Type | Description |
|---|---|---|
project | string | Limit to one project (e.g. "@visulima/cerebro") |
list_templates
List scaffolding templates discovered in the workspace (`.vis/templates/`, `.moon/templates/`, and `vis.config.ts` `generator.templates`). Each entry includes name, source, on-disk path, and one-line description.
describe_template
Return full metadata for a scaffolding template: description, default destination, and the variable schema (name, type, default, required, prompt, enum values). Use this before suggesting a `vis generate` command so option values can be filled correctly.
| Parameter | Type | Description |
|---|---|---|
name * | string | Template name (e.g. "package", "component"). Use list_templates to see available names. |
get_run_logs
Read a vis run summary from .vis/. Returns the most recent run by default, or a specific run when `runId` is set. Optionally filter to a single task with `taskId`.
| Parameter | Type | Description |
|---|---|---|
runId | string | Run ID (default: latest) |
taskId | string | Filter to a single task ID like "@my/app:build" |
list_runs
List recorded vis runs from `.vis/runs/`, most recent first. Each entry includes the run ID, start timestamp, derived status, task count, and failed-task count — use it to discover run IDs for `get_run_logs`, `cache_hash`, or `cache_why` (e.g. "compare this run to the previous one").
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum runs to return (default: 20, newest first). |
cache_why
Explain why a task's cache hash rotated between runs. When the task has hashDetails (command, nodes, runtime, implicitDeps), diffs them against the previous run to pinpoint what changed. A trace-mode task has no hashDetails, so the diff is empty and the reasons are in `task.cacheMissReasons` (`{ type, detail }` entries, null when there are none). `task.hashSource` is `declared-fallback` when the run was keyed on its declared inputs.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID like "@my/app:build" |
runId | string | Run ID to inspect (default: latest) |
cache_hash
Print the recorded hash and per-input hash details for a task — the contributing inputs (command, nodes, runtime, implicitDeps) that produced it. A trace-mode task has no hashDetails; its result carries `trackedFingerprint` instead (the files, env names and missing paths the run tracked).
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID like "@my/app:build" |
runId | string | Run ID to inspect (default: latest) |
audit
Audit installed packages for known vulnerabilities and supply-chain risk via `vis audit --format json`. Defaults to the local offline OSV cache when one exists, otherwise falls back to the live OSV API. Returns the parsed audit payload (results, duplicates, summary).
| Parameter | Type | Description |
|---|---|---|
ecosystem | string | Comma-separated OSV ecosystems to scan. Defaults to 'npm' (the only matcher wired today). |
offline | boolean | Force the local OSV cache. Errors if the cache is missing — run `vis advisories sync` first. |
prodOnly | boolean | Skip devDependencies — scan the production graph only. |
severity | string | Minimum severity to report. Defaults to 'low'. |
showAccepted | boolean | Include findings already on the workspace's accepted-risk list. |
usage | boolean | Apply the reachability filter — only report vulnerabilities in statically-imported packages. |
advisory_status
Report the local OSV advisory DB freshness via `vis advisories status --format json`: DB path, schema version, per-ecosystem advisory counts, last sync timestamp, and ETag. Use this to detect whether the offline cache is stale before running an `audit` in offline mode.
| Parameter | Type | Description |
|---|---|---|
db | string | Override the cache DB path (default: <cache>/vis/advisories/db.sqlite). |
lint
Run the vis lint orchestrator in check-only mode via `vis lint --format json`. Auto-detects every installed linter (oxlint, biome, eslint, stylelint, ruff, markdownlint, shellcheck) and returns the merged { findings, runs } payload. The `typecheck` adapter (tsc) is opt-in via `lint.adapters.typecheck.enabled`: it checks the whole project even when `files` is set (skipped when none of `files` is TypeScript), and is never cached. This tool never applies fixes — invoke `vis lint --fix` directly for that.
| Parameter | Type | Description |
|---|---|---|
files | array | Restrict the run to these files (relative to the workspace root). Empty/omitted = workspace-wide. |
maxWarnings | integer | Forward `--max-warnings N` to every adapter that supports it. |
quiet | boolean | Suppress warning-severity findings (errors still flow through). |
since | string | Forward `--since <ref>` so only files changed vs `<ref>` are linted. |
staged | boolean | Forward `--staged` so only files in the git index are linted. |
fmt
Run the vis fmt orchestrator in --check mode via `vis fmt --check --format json`. Auto-detects every installed formatter (oxfmt, biome, dprint, prettier, ruff-fmt) and returns the merged { findings, runs } payload — each finding represents a file that would change. This tool never writes to disk; invoke `vis fmt` directly to apply the formatting.
| Parameter | Type | Description |
|---|---|---|
files | array | Restrict the check to these files (relative to the workspace root). Empty/omitted = workspace-wide. |
quiet | boolean | Suppress per-file logs (findings still flow through). |
since | string | Forward `--since <ref>` so only files changed vs `<ref>` are checked. |
staged | boolean | Forward `--staged` so only files in the git index are checked. |