— 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.
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.
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.
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.
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.
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.
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.tsInstall nine packages, then write six files and remember which field each tool reads.
// .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 buildRegister 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,nextjsorstorybookpreset 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
directorymust 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_atlasand 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_configtells 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_mcpspeaks stdio only, for clients that spawn it locally. For a remote setup, connectcreateServer()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.2and@biomejs/biome ^2.6.9. Update tools-mcp for newer ranges, or bump them after scaffolding.
— Recipes
Copy, paste, ship.
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.
{
"mcpServers": {
"vitus-labs-tools": {
"command": "npx",
"args": ["vl_mcp"]
}
}
}Add tools to an existing package
Dependencies, scripts and config files are merged in. Anything already there is skipped and reported.
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: atlasEmbed the server
createServer() returns the configured McpServer; connect it to whichever transport your host provides.
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-mcpSources · 25 claims, each traced to v2.9.1 code or docs
- CLI vl_mcptools:packages/mcp/package.json
- stdio transport only in the CLItools:packages/mcp/src/bin/serve.ts
- Three tools and 12 documentation resources; Claude, Cursor, Copilot and other MCP clientstools:packages/mcp/README.md
- Three tools registered plus docstools:packages/mcp/src/server.ts
- Docs resources: overview + per-package (core … atlas)tools:packages/mcp/src/resources/docs.ts
- Overview resourcetools:packages/mcp/src/resources/docs.ts
- Presets library, nextjs, storybooktools:packages/mcp/src/tools/scaffold-package.ts
- 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
- Library scripts build/dev/typecheck/test; tsconfig extends tools-typescript/libtools:packages/mcp/src/tools/scaffold-package.ts
- Scaffold refuses a directory with package.jsontools:packages/mcp/src/tools/scaffold-package.ts
- Files written only if missing (wx flag)tools:packages/mcp/src/tools/utils.ts
- Next steps returned: cd, bun install, first preset commandtools:packages/mcp/src/tools/scaffold-package.ts
- Package names validated against npm rulestools:packages/mcp/src/tools/scaffold-package.ts
- directory must be absolutetools:packages/mcp/src/tools/utils.ts
- add_tooling targets (10)tools:packages/mcp/src/tools/add-tooling.ts
- add_tooling never overwrites deps (any section), scripts or files; lists skippedtools:packages/mcp/README.md
- vitest target adds tools-vitest, vitest, coverage-v8, vite; test scripts; vitest.config.tstools:packages/mcp/src/tools/add-tooling.ts
- atlas target adds tools-atlas and the atlas scripttools:packages/mcp/src/tools/add-tooling.ts
- diagnose_config checks and severitiestools:packages/mcp/README.md
- Issues carry a suggested fixtools:packages/mcp/src/tools/diagnose-config.ts
- Import-extension issues capped at 20 plus a summarytools:packages/mcp/README.md
- Scripts referencing tools without the package are errorstools:packages/mcp/src/tools/diagnose-config.ts
- Dependency ranges written by scaffolds (vitest ^5.1.2, biome ^2.6.9)tools:packages/mcp/src/versions.ts
- createServer returns an McpServertools:packages/mcp/src/server.ts
- Claude Desktop / Claude Code config via npx vl_mcptools:packages/mcp/README.md