Atlas / MCP servers / kubb-labs / Changesets

ChangesetsSAFE

mcp/kubb-labs/kubb

🧡 Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.

Verdict
SAFE
Grade
B
Trust score
88 /100
Exposed tools
13 8r · 5w · 0d
Transport
—
License
MIT
Stars
1,818
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation

Read from source at commit fda6963caa32OBSERVED · 2026-10-12
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add claude-plugin --env KUBB_AGENT_TOKEN=${KUBB_AGENT_TOKEN} --env KUBB_TOKEN=${KUBB_TOKEN} -- npx -y @kubb/[email protected]
claude-desktop
{
  "mcpServers": {
    "claude-plugin": {
      "command": "npx",
      "args": [
        "-y",
        "@kubb/[email protected]"
      ],
      "env": {
        "KUBB_AGENT_TOKEN": "${KUBB_AGENT_TOKEN}",
        "KUBB_TOKEN": "${KUBB_TOKEN}"
      }
    }
  }
}
03

Exposed tools (13)

8 read · 5 write · 0 destructive.

ToolRiskDescription
connectreadConnect this project to Kubb Studio and generate from the browser.
fooread
generatereadGenerate TypeScript types, API clients, React Query hooks, Zod schemas, and more from an OpenAPI specification. Reads kubb.config.ts by default. Pass an OpenAPI file path as the first argument to override the input without editing the config.
initwriteScaffold a kubb.config.ts and install plugins for code generation from an OpenAPI spec. Run without flags for interactive setup, or pass --input, --output, and --plugins to skip the prompts.
loginreadPair this machine with Kubb Studio without connecting.
logoutreadForget the stored Kubb Studio token.
mcpwriteStart a Model Context Protocol (MCP) server that exposes Kubb code generation as tools for AI assistants. Once running, configure your AI client (Claude, Cursor, Windsurf, etc.) to connect to it — the assistant can then call kubb generate directly without leaving the chat.
snapshotwriteGenerate and publish a Kubb Studio snapshot from CI.
startwriteKeep this project connected to Kubb Studio in the background.
statusreadShow the project worker, Kubb Studio pairing, and saved permissions.
stopwriteStop this project
studioreadConnect this project to Kubb Studio, or manage its pairing and snapshots.
validatereadParse and validate an OpenAPI/Swagger file for structural correctness. Reports schema errors, missing required fields, and malformed references. Use this before running generate to catch spec issues early.
04

Trust audit

SAFEgrade B · trust 88/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (3 observation(s))
Network
declared (4 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (19)

MEDIUMInventory / provenance · inv.symlink · CWE-1104
.claude/skills
.claude/skills
Why it matters. link not followed
LOWInventory / provenance · inv.hidden_file · CWE-1104
.all-contributorsrc
.all-contributorsrc
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.symlink · CWE-1104
README.md
README.md
Why it matters. link not followed
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
packages/studio/src/connect.test.ts:125
const accept = createHash('sha1').update(`${req.headers['sec-websocket-key']}258EAFA5-E914-47DA-95CA-C5AB0DC85B11`).digest('base64')
LOWInsecure crypto · crypto.weak_hash · CWE-327, CWE-338
packages/studio/src/generations.ts:47
export const hashOf = (content: string) => createHash('sha1').update(content).digest('hex').slice(0, 16)
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/adapter-oas/src/emit/converters/annotatedEnum.test.ts:3
import { adapterOas } from '../../adapter.ts'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/adapter-oas/src/emit/converters/annotatedEnum.test.ts:4
import type { SchemaObject } from '../../types.ts'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/adapter-oas/src/emit/converters/annotatedEnum.ts:2
import type { SchemaObject } from '../../types.ts'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/adapter-oas/src/emit/converters/composition.ts:2
import { isDiscriminator, isReference } from '../../oas.ts'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
packages/adapter-oas/src/emit/converters/composition.ts:3
import type { Refs } from '../../refs.ts'
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/studio/src/connect.test.ts:136
studioUrl: `http://127.0.0.1:${port}`,
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/studio/src/connect.test.ts:304
['a URL', 'http://127.0.0.1:8080/internal'],
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/studio/src/url.test.ts:10
[{ studioUrl: 'http://127.0.0.1:3000' }, 'http://127.0.0.1:3000/api/agent/token'],
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
packages/studio/src/url.test.ts:16
it.each(['http://studio.example.com', 'http://10.0.0.1', 'http://[fe80::1]'])('refuses plaintext to %s', (studioUrl) => {
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
internals/shared/package.json
jiti
Why it matters. 1 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@changesets/changelog-github, @changesets/cli, bun-types, taze, turbo
Why it matters. 5 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/adapter-oas/package.json
@readme/openapi-parser, @scalar/openapi-upgrader, @types/json-schema, openapi-types
Why it matters. 4 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/cli/package.json
@clack/prompts, @gunshi/plugin-dryrun, chokidar, gunshi, jiti, unconfig, verkit
Why it matters. 7 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
packages/core/package.json
unstorage, vue
Why it matters. 2 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha fda6963caa32full audit observations/trust-audit/mcp-server/kubb-labs__kubb.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-12fda6963caa32SAFEB88first audit
06

Questions

What is the @kubb/mcp MCP server?

🧡 Turn your API spec into type-safe code. Generate TypeScript types, API clients, hooks, validators and mocks from a spec such as OpenAPI.

What tools does @kubb/mcp expose?

13 in total: 8 read-only, 5 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is @kubb/mcp safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (88/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does @kubb/mcp need?

It reads KUBB_AGENT_TOKEN and KUBB_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (fda6963caa32), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement