— Tooling · @vitus-labs/tools-mcp

Let your assistant wire up the tooling.

vl_mcp is a Model Context Protocol server over stdio. It gives Claude, Cursor and other MCP clients three tools (scaffold a project, add tools to an existing one, diagnose its config) plus the package docs as resources, so the files an assistant writes match what the tools actually read.

@vitus-labs/tools-mcpv2.9.1 · MIT
npm i -D @vitus-labs/tools-mcp
MCP tools
3
documentation resources
12
tools add_tooling can install
10
existing files overwritten
0

— Why tools · mcp

Assistants guess. This one knows.

01

Scaffolds that match the tools

The library preset writes a package.json with typed exports and build, dev, typecheck and test scripts, a tsconfig extending the shared preset, biome.json, vitest.config.ts, vl-tools.config.mjs and src/index.ts. nextjs and storybook presets cover the other two project types.

02

Never overwrites

scaffold_package refuses a folder that already has a package.json, and files are created only if missing. add_tooling skips any dependency already declared in any section, any script with the same name, any existing config file, and lists what it skipped.

03

Diagnoses with fixes

diagnose_config checks ESM, the tsconfig preset, Biome versus ESLint, typed exports, extensionless relative imports in src/ and scripts calling tools that aren't installed. Each issue has a severity and most come with the fix.

04

Docs the assistant can read

An overview and one page per package are exposed as docs://vitus-labs/... resources, so the assistant reads the option names instead of inventing them.

— Before / after

From a checklist to one request.

A new TypeScript library with build, tests, types and lint.

beforeScaffolding by hand
terminal
mkdir my-lib && cd my-lib && npm init -y
npm i -D @vitus-labs/tools-rolldown @vitus-labs/tools-typescript \
  @vitus-labs/tools-lint @vitus-labs/tools-vitest @biomejs/biome \
  typescript vitest vite @vitest/coverage-v8

# then by hand:
#  package.json   "type": "module", exports with import + types,
#                 build / dev / typecheck / test scripts
#  tsconfig.json  extends @vitus-labs/tools-typescript/lib
#  biome.json     extends @vitus-labs/tools-lint/biome
#  vitest.config.ts, vl-tools.config.mjs, src/index.ts

Install nine packages, then write six files and remember which field each tool reads.

after@vitus-labs/tools-mcp
.mcp.json · tool call
// .mcp.json, once:
// "vitus-labs-tools": { "command": "npx", "args": ["vl_mcp"] }

// "Scaffold a library called @acme/dates in ~/dev/dates"
scaffold_package({
  name: '@acme/dates',
  directory: '/Users/me/dev/dates',
  preset: 'library',
})

// Scaffolded library project "@acme/dates" in /Users/me/dev/dates
// Created files: package.json, tsconfig.json, biome.json,
//   vitest.config.ts, vl-tools.config.mjs, src/index.ts
// Next steps: cd /Users/me/dev/dates, bun install, bun run build

Register the server once. After that it is a sentence in chat, and the assistant calls the tool.

— Features

Three tools, carefully fenced.

  • scaffold_package

    library, nextjs or storybook preset in a new folder

  • add_tooling

    typescript, lint, vitest, rolldown, rollup, nextjs, nextjs-images, storybook, favicon or atlas

  • diagnose_config

    errors, warnings and info for one project root, with a suggested fix

  • Name validation

    package names must pass npm naming rules before anything is written

  • Absolute paths

    every directory must be absolute; relative paths are rejected

  • Import extensions

    flags extensionless relative imports in src/, listing up to 20 and summarizing the rest

  • Script check

    a script calling vl_rolldown, vl_stories, vl_atlas and the rest needs its package installed

  • docs://vitus-labs/overview

    all packages at a glance, with a quick start

  • docs://…/packages/{name}

    one resource per package, from core to atlas

  • createServer()

    the same server for your own transport or host

— API

Three tools. One factory.

Every name links to its reference in the docs.

— Honest limits

What it deliberately won't do.

Where it isn't the right fit, and what to reach for instead.

  • Repair an existing config

    Nothing that exists is overwritten, so a wrong script or tsconfig stays wrong. diagnose_config tells you what to change; you, or the assistant with its own file tools, make the edit.

  • Run your build

    The diagnosis is static: it reads package.json, configs and imports. It does not install, build, typecheck or test. Run those yourself after a scaffold.

  • Serve over HTTP

    vl_mcp speaks stdio only, for clients that spawn it locally. For a remote setup, connect createServer() to another transport from the MCP SDK yourself.

  • Track the newest versions

    Scaffolds write the dependency ranges bundled with the server release, such as vitest ^5.1.2 and @biomejs/biome ^2.6.9. Update tools-mcp for newer ranges, or bump them after scaffolding.

— Recipes

Copy, paste, ship.

01

Claude Code, per project

Commit this file and everyone who opens the repo in Claude Code gets the server. Claude Desktop uses the same block in its own config file.

.mcp.json
{
  "mcpServers": {
    "vitus-labs-tools": {
      "command": "npx",
      "args": ["vl_mcp"]
    }
  }
}
02

Add tools to an existing package

Dependencies, scripts and config files are merged in. Anything already there is skipped and reported.

tool call
add_tooling({
  directory: '/Users/me/dev/dates',
  tools: ['vitest', 'atlas'],
})

// vitest → devDependencies: @vitus-labs/tools-vitest, vitest,
//          @vitest/coverage-v8, vite
//          scripts: test, test:watch, test:coverage
//          files: vitest.config.ts
// atlas  → devDependencies: @vitus-labs/tools-atlas
//          scripts: atlas
03

Embed the server

createServer() returns the configured McpServer; connect it to whichever transport your host provides.

server.ts
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
import { createServer } from '@vitus-labs/tools-mcp'

const server = createServer()
await server.connect(new StdioServerTransport())

— FAQ

Questions, answered.

Which assistants work with it?

Any MCP client that can launch a stdio server: Claude Desktop, Claude Code, Cursor, Copilot and others.

Does it install packages?

No. It writes files and package.json entries, then returns the next steps (bun install and the first command for the preset) for you or the assistant to run.

What does diagnose_config flag as an error?

A missing or invalid package.json, relative imports in src/ without a file extension, and scripts that call a tool whose package is not installed. Missing ESM, tsconfig, Biome or typed exports are warnings.

Are the docs resources the same as this site?

They are a condensed copy shipped inside the package, one per tools package, so they work offline and match the installed version.

— @vitus-labs/tools-mcp

Ask for the setup. Get the right files.

npm i -D @vitus-labs/tools-mcp
Sources · 25 claims, each traced to v2.9.1 code or docs
  1. CLI vl_mcptools:packages/mcp/package.json
  2. stdio transport only in the CLItools:packages/mcp/src/bin/serve.ts
  3. Three tools and 12 documentation resources; Claude, Cursor, Copilot and other MCP clientstools:packages/mcp/README.md
  4. Three tools registered plus docstools:packages/mcp/src/server.ts
  5. Docs resources: overview + per-package (core … atlas)tools:packages/mcp/src/resources/docs.ts
  6. Overview resourcetools:packages/mcp/src/resources/docs.ts
  7. Presets library, nextjs, storybooktools:packages/mcp/src/tools/scaffold-package.ts
  8. Library preset files: package.json, tsconfig.json, biome.json, vitest.config.ts, vl-tools.config.mjs, src/index.tstools:packages/mcp/src/tools/scaffold-package.ts
  9. Library scripts build/dev/typecheck/test; tsconfig extends tools-typescript/libtools:packages/mcp/src/tools/scaffold-package.ts
  10. Scaffold refuses a directory with package.jsontools:packages/mcp/src/tools/scaffold-package.ts
  11. Files written only if missing (wx flag)tools:packages/mcp/src/tools/utils.ts
  12. Next steps returned: cd, bun install, first preset commandtools:packages/mcp/src/tools/scaffold-package.ts
  13. Package names validated against npm rulestools:packages/mcp/src/tools/scaffold-package.ts
  14. directory must be absolutetools:packages/mcp/src/tools/utils.ts
  15. add_tooling targets (10)tools:packages/mcp/src/tools/add-tooling.ts
  16. add_tooling never overwrites deps (any section), scripts or files; lists skippedtools:packages/mcp/README.md
  17. vitest target adds tools-vitest, vitest, coverage-v8, vite; test scripts; vitest.config.tstools:packages/mcp/src/tools/add-tooling.ts
  18. atlas target adds tools-atlas and the atlas scripttools:packages/mcp/src/tools/add-tooling.ts
  19. diagnose_config checks and severitiestools:packages/mcp/README.md
  20. Issues carry a suggested fixtools:packages/mcp/src/tools/diagnose-config.ts
  21. Import-extension issues capped at 20 plus a summarytools:packages/mcp/README.md
  22. Scripts referencing tools without the package are errorstools:packages/mcp/src/tools/diagnose-config.ts
  23. Dependency ranges written by scaffolds (vitest ^5.1.2, biome ^2.6.9)tools:packages/mcp/src/versions.ts
  24. createServer returns an McpServertools:packages/mcp/src/server.ts
  25. Claude Desktop / Claude Code config via npx vl_mcptools:packages/mcp/README.md