Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p align="center">
<p align="center">
<img src="https://img.shields.io/badge/MCP-Model%20Context%20Protocol-8b5cf6?style=for-the-badge&logo=anthropic&logoColor=white" alt="MCP" />
<img src="https://img.shields.io/badge/TypeScript-Ready-3178c6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript" />
<img src="https://img.shields.io/badge/Python-FastMCP-3776ab?style=for-the-badge&logo=python&logoColor=white" alt="Python" />
Expand All @@ -22,6 +22,19 @@
<a href="https://ritualdev.in/donate"><b>💜 Sponsor</b></a>
</p>

```bash
# 1-command OpenAPI-to-MCP conversion (no manual boilerplate)
npx -y @ritualdev-lab/mcp-builder-kit from-openapi ./openapi.json --lang typescript
```

```mermaid
flowchart LR
Spec["OpenAPI 3.0 / 3.1 Spec"] -->|"from-openapi"| Gen["Zod / Pydantic Tool Generator"]
Gen --> Transport["stdio + Streamable HTTP + SSE"]
Transport --> Guard["--with-agentshield Zero-Leak Wrapper"]
Guard --> CI["Headless inspect --ci Gate"]
```

---

## 🚀 Features
Expand All @@ -44,6 +57,20 @@
### How does OpenAPI-to-MCP generation work?
mcp-builder-kit parses OpenAPI v3.0 and v3.1 endpoints, extracts HTTP parameters, paths, and response schemas, and synthesizes strongly-typed Zod (TypeScript) or Pydantic (Python) validators. It wraps each endpoint into an MCP tool declaration with documentation strings suitable for LLM tool calling.

### How to convert an OpenAPI spec to an MCP server in one command?
Run `npx -y @ritualdev-lab/mcp-builder-kit from-openapi ./openapi.json --lang typescript` (or `--lang python` for FastMCP). Then verify JSON-RPC protocol conformance before deploying using `npx @ritualdev-lab/mcp-builder-kit inspect "node dist/index.js"`.

### Why `mcp-builder-kit` vs Raw MCP SDK Boilerplate?

| Capability | `mcp-builder-kit` (`@ritualdev-lab/mcp-builder-kit`) | Raw `@modelcontextprotocol/sdk` / FastMCP Boilerplate |
| :--- | :---: | :---: |
| **OpenAPI / Swagger to MCP Tools** | ✅ **1-Command Auto-Generation** | ❌ Manual endpoint-by-endpoint wiring |
| **TypeScript + Python Parity** | ✅ Zod + Pydantic v2 out-of-the-box | Single language manual setup |
| **Streamable HTTP + `stdio` + `sse`** | ✅ Pre-wired (`--transport both`) | Manual Express / ASGI setup |
| **CI JSON-RPC Protocol Conformance** | ✅ Built-in `inspect --ci` & `audit` | ❌ Custom test harness required |
| **Secret Leak Guard (`AgentShield`)** | ✅ Optional `--with-agentshield` wrap | ❌ Unprotected by default |
| **Docker & Client Config Bundle** | ✅ Built-in `package` command | ❌ Hand-written configs & Dockerfiles |

### What transports are supported?
It supports all official MCP transports: `stdio` (standard input/output for local desktop clients like Claude Desktop, Cursor, and Windsurf), modern **`streamable-http`** (`--transport streamable-http`, exposing `/mcp` JSON-RPC + session headers for cloud/serverless deployments), legacy `sse`, and `both`.

Expand Down
Loading