Turn the definitions you already have — OpenAPI specs, Prisma schemas, Drizzle tables, tRPC routers, Zod functions — into a production-ready Model Context Protocol server, instantly usable in Claude Code, Codex, Cursor and Gemini CLI.
Zod objects are the tool inputs — the same types flow from your code to the host.
A server file you can read in one sitting. No YAML, no hidden state, no lock-in.
stdio for IDE agents, Streamable HTTP for self-hosting, a fetch handler for the edge.
Live architecture
A live pipeline — every stage of exposing your stack as MCP tools, rendered in real time.
Point Bridgent at the definitions you already have — no rewrites, no new schema language.
Sources
Bridgent reuses it instead of asking you to write another one. Each adapter ships with safety defaults baked in.
Why Bridgent
The boring parts — safety, metadata, transports, verification — are the product.
Read-only defaults, row limits, query timeouts and explicit allowlists keep your data layer in check even when an agent goes off-script.
Source kind, read/write capability and safety flags travel with every generated tool — for hosts, docs and the inspector.
Prisma writes commit through a two-step dryRun / previewToken protocol, with JSONL audit trails and idempotency keys.
stdio, Streamable HTTP and a Web Standard fetch handler. Same tool list — switching is changing one factory call.
bridgent dev runs your TypeScript server directly on Node 22.18+ type stripping. No tsx, no build step, no waiting.
A protocol-level harness verifies the server against Claude Code, Cursor, Codex and Gemini CLI on every release.
Code
Compose source adapters in plain TypeScript. The CLI does the rest.
import { createStdioServer, defineTool } from '@bridgent/core'
import { z } from 'zod'
await createStdioServer({
name: 'hello',
version: '0.0.1',
tools: [
defineTool({
name: 'add',
description: 'Add two numbers',
inputSchema: z.object({ a: z.number(), b: z.number() }),
run: ({ a, b }) => a + b,
}),
],
})Hosts
Verified at the protocol level against the hosts teams actually use.