1. Conduid
  2. Developer Tools
  3. client-gen
MCP server · Developer Tools

client-gen

Generate type-safe TypeScript clients from MCP (Model Context Protocol) servers

Unclaimed devtools
39Low

Scored 4 months ago · breakdown

About client-gen

client-gen is an MCP server published by git+kriasoft in the Developer Tools category: generate type-safe TypeScript clients from MCP (Model Context Protocol) servers. It has been installed 0 times through Conduid.

Install

Install
npx mcp-client-gen
Claude Code
claude mcp add client-gen-gitkrias -- npx -y mcp-client-gen
npx
npx -y mcp-client-gen

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about client-gen

Powered by Claude · Grounded in docs

I know everything about client-gen. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

MCP Client Generator

npm downloads Discord

Generate type-safe TypeScript clients from MCP servers.

Quick Start

# Generate client from URL
npx mcp-client-gen https://mcp.notion.com/mcp -o notion.ts

# Use the generated client
import { createNotionClient } from "./notion";
import { createMcpConnection } from "mcp-client-gen";

const connection = await createMcpConnection({
  url: "https://mcp.notion.com/mcp",
});

const notion = createNotionClient(connection);

// Fully typed based on server schema
const pages = await notion.notionSearch({ query: "Meeting Notes" });

Features

  • Type-safe — Generated TypeScript types from server schemas
  • Zero config auth — OAuth 2.1 with PKCE, just approve in browser
  • Tree-shakable — Only bundle the methods you import

Installation

npm install -g mcp-client-gen
# or
bun add -g mcp-client-gen

CLI Usage

# URL mode (primary)
npx mcp-client-gen <url>              # Output to stdout
npx mcp-client-gen <url> -o <file>    # Output to file
npx mcp-client-gen <url> <file>       # Shorthand

# Config mode (reads .mcp.json, .cursor/, .vscode/)
npx mcp-client-gen                    # Interactive
npx mcp-client-gen -y                 # Accept defaults

Config File Format

// .mcp.json
{
  "mcpServers": {
    "notion": { "url": "https://mcp.notion.com/mcp" },
    "github": { "url": "https://api.githubcopilot.com/mcp/" },
  },
}

Authentication

No credentials required. OAuth-protected servers trigger automatic browser authentication via Dynamic Client Registration (RFC 7591) and PKCE.

License

MIT — Konstantin Tarkus

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About client-gen

How do I install client-gen?

Run npx mcp-client-gen, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is client-gen safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is client-gen still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.