Skip to content

Releases: kriasoft/mcp-client-gen

v0.1.0

25 Jan 23:29
c34c4b4

Choose a tag to compare

First public release of MCP Client Generator — a tool to generate type-safe TypeScript clients from MCP servers.

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

Quick Start

# Generate client from URL
npx mcp-client-gen https://mcp.notion.com/mcp -o notion.ts
import { createNotionClient } from "./notion";
import { createMcpConnection } from "mcp-client-gen";

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

const notion = createNotionClient(connection);
const pages = await notion.notionSearch({ query: "Meeting Notes" });

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

Public API

import { generateClient, createMcpConnection, browserAuth } from "mcp-client-gen";

const result = await generateClient([{ url: "https://mcp.notion.com/mcp" }]);
const connection = await createMcpConnection({ url: "https://mcp.notion.com/mcp" });

Full Changelog: v0.0.1...v0.1.0

v0.0.9

25 Jan 23:16
add5ccd

Choose a tag to compare

What's Changed

  • fix: enable browser OAuth flow in CLI by @koistya in #6

Full Changelog: v0.0.8...v0.0.9

v0.0.8

25 Jan 23:02
32bb7b3

Choose a tag to compare

What's Changed

  • fix: add TypeScript type exports and main field by @koistya in #5

Full Changelog: v0.0.7...v0.0.8

v0.0.7

25 Jan 22:51
94f6074

Choose a tag to compare

What's Changed

  • fix: explicitly include README.md in package files by @koistya in #4

Full Changelog: v0.0.6...v0.0.7

v0.0.6

25 Jan 22:47
83602d7

Choose a tag to compare

What's Changed

  • fix: build all entry points (cli, index, internal) by @koistya in #3

Full Changelog: v0.0.5...v0.0.6

v0.0.5

25 Jan 22:38
b2d701a

Choose a tag to compare

What's Changed

  • Restructure codebase with modular codegen and OAuth by @koistya in #1
  • feat: modular codegen, public/internal API, CI/CD, and docs by @koistya in #2

New Contributors

Full Changelog: https://github.com/kriasoft/mcp-client-gen/commits/v0.0.5