vis-mcp

v3.1.0
@visulima/vis-mcp Checked 9 hours ago Published 11 days ago

MCP (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").

ParameterTypeDescription
querystringFilter 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.

ParameterTypeDescription
name *stringProject 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.

ParameterTypeDescription
projectstringLimit 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.

ParameterTypeDescription
name *stringTemplate 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`.

ParameterTypeDescription
runIdstringRun ID (default: latest)
taskIdstringFilter 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").

ParameterTypeDescription
limitintegerMaximum 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.

ParameterTypeDescription
taskId *stringTask ID like "@my/app:build"
runIdstringRun 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).

ParameterTypeDescription
taskId *stringTask ID like "@my/app:build"
runIdstringRun 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).

ParameterTypeDescription
ecosystemstringComma-separated OSV ecosystems to scan. Defaults to 'npm' (the only matcher wired today).
offlinebooleanForce the local OSV cache. Errors if the cache is missing — run `vis advisories sync` first.
prodOnlybooleanSkip devDependencies — scan the production graph only.
severitystringMinimum severity to report. Defaults to 'low'.
showAcceptedbooleanInclude findings already on the workspace's accepted-risk list.
usagebooleanApply 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.

ParameterTypeDescription
dbstringOverride 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.

ParameterTypeDescription
filesarrayRestrict the run to these files (relative to the workspace root). Empty/omitted = workspace-wide.
maxWarningsintegerForward `--max-warnings N` to every adapter that supports it.
quietbooleanSuppress warning-severity findings (errors still flow through).
sincestringForward `--since <ref>` so only files changed vs `<ref>` are linted.
stagedbooleanForward `--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.

ParameterTypeDescription
filesarrayRestrict the check to these files (relative to the workspace root). Empty/omitted = workspace-wide.
quietbooleanSuppress per-file logs (findings still flow through).
sincestringForward `--since <ref>` so only files changed vs `<ref>` are checked.
stagedbooleanForward `--staged` so only files in the git index are checked.