SPB Git

Repository Public MIT

stdio.ts 755 B 14 lines typescript

1#!/usr/bin/env -S npx tsx2/**3 * stdio entry for local MCP clients:4 *   claude mcp add --transport stdio skills-registry -- npx tsx apps/registry-mcp/src/stdio.ts5 * Environment: SKILLS_REGISTRY (default https://skills.spboucher.ai), SKILLS_TOKEN (optional; enables publisher tools).6 * Per the MCP specification, stdio servers take credentials from the environment.7 */8import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";9import { DEFAULT_REGISTRY } from "@skills/sdk";10import { createRegistryMcpServer } from "./index";1112const server = createRegistryMcpServer({ apiBaseUrl: process.env.SKILLS_REGISTRY ?? DEFAULT_REGISTRY, token: process.env.SKILLS_TOKEN || undefined });13await server.connect(new StdioServerTransport());14
Files main
Menu

Theme