一键导入
build-mcp-server
Scaffold a new MCP server from a tool description, build it, and mount it into the active Vanta session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new MCP server from a tool description, build it, and mount it into the active Vanta session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Route a task to the least intrusive executive-function support based on the user's stated current capacity, memory load, activation, and motivation. Use when work feels stuck, overwhelming, hard to hold in mind, or when the user asks for neurodivergent-friendly support without wanting a diagnostic or coaching ritual.
Reduce work to the smallest safe and useful outcome when capacity is low or burnout is present. Use when the user explicitly says they are depleted, overwhelmed, unable to start, or asks for the minimum viable version of a task.
Create a truthful activation bridge for a task that has low urgency, novelty, interest, challenge, or immediate feedback. Use when the user says they are stuck or avoiding a known task despite understanding it.
Reduce language, sensory, and uncertainty load while preserving complete information. Use when the user requests direct or scannable communication, has low capacity, is navigating a new flow, or needs explicit expectations and examples.
Turn a vague, oversized, or initiation-resistant outcome into an executable sequence with a visible first action and definition of done. Use when dependencies are hidden, the task spans multiple systems, or the user cannot identify where to begin.
Externalize time, checkpoints, stopping rules, and context transitions. Use when estimates are uncertain, a task may expand indefinitely, the user is switching topics, or an interruption risks losing the current state.
| name | build-mcp-server |
| description | Scaffold a new MCP server from a tool description, build it, and mount it into the active Vanta session. |
Use this skill when the user wants to expose a capability as an MCP tool — something Vanta (or any MCP client) can call. The output is a working TypeScript MCP server, built and mounted in one shot.
Trigger phrases: "make a tool for X", "build an MCP that does Y", "expose Z as an MCP", "create an MCP server", "I need a tool that".
A minimal TypeScript MCP server that:
npm run build)mount_mcpBefore writing code, get clarity on:
fetch_weather)If the user gave you enough, proceed. If not, ask these as concrete questions with examples.
mkdir ~/tmp/<server-name> && cd ~/tmp/<server-name>
npm init -y
npm install @modelcontextprotocol/sdk zod
npm install -D typescript @types/node
npx tsc --init --module nodenext --target es2022 --outDir dist --rootDir src --strict
mkdir src
src/index.tsMinimal pattern — expand for each tool:
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "<server-name>", version: "0.1.0" });
server.tool(
"<tool_name>",
"<description of what the tool does>",
{
// Zod schema for inputs
param1: z.string().describe("what param1 is"),
param2: z.number().optional().describe("optional numeric param"),
},
async ({ param1, param2 }) => {
// Implementation
const result = `processed: ${param1}`;
return {
content: [{ type: "text", text: result }],
};
},
);
const transport = new StdioServerTransport();
await server.connect(transport);
npx tsc
Fix any TypeScript errors before proceeding. Common issues:
"moduleResolution": "bundler" or "nodenext" in tsconfig.js extension in ESM outputUse the mount_mcp tool:
mount_mcp({
name: "<server-name>",
command: "node",
args: ["~/tmp/<server-name>/dist/index.js"]
})
The tool will:
Call one of the newly mounted tools with a simple test case. Confirm the output is what you expected. If the tool fails, read the error, fix src/index.ts, rebuild, and mount_mcp again (re-mounting replaces the old registration).
@modelcontextprotocol/sdk and zod unless the tool genuinely needs them. Every dep is a maintenance burden.{ content: [{ type: "text", text: "..." }] } — the standard MCP text response shape.mount_mcp and stdioTransport speak.