Skip to content

Commit f30e710

Browse files
committed
chore: update commands to npx mcpify-cli and add dynamic version fetching
1 parent ea087b4 commit f30e710

5 files changed

Lines changed: 45 additions & 22 deletions

File tree

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,28 @@ Codex is a natural fit for MCPify in a few ways:
9090

9191
## Getting Started
9292

93-
This repository is a monorepo containing the MCPify compiler and its supporting packages. The easiest way to try MCPify is from source:
93+
The easiest way to use MCPify is via `npx`. No installation required:
9494

9595
```bash
96-
npm install
97-
npm run build
96+
npx mcpify-cli analyze .
9897
```
9998

100-
Run the CLI against the flagship ecommerce example:
99+
To run it against the flagship ecommerce example in this repo:
101100

102101
```bash
102+
npx mcpify-cli analyze ./examples/ecommerce-saas \
103+
--output ./examples/ecommerce-saas/.mcpify \
104+
--prisma ./examples/ecommerce-saas/prisma/schema.prisma \
105+
--swagger ./examples/ecommerce-saas/openapi.json
106+
```
107+
108+
Alternatively, to build from source:
109+
110+
```bash
111+
git clone https://github.com/amarnath3003/MCPify.git
112+
cd MCPify
113+
npm install
114+
npm run build
103115
npm run mcpify -- analyze ./examples/ecommerce-saas \
104116
--output ./examples/ecommerce-saas/.mcpify \
105117
--prisma ./examples/ecommerce-saas/prisma/schema.prisma \
@@ -130,7 +142,7 @@ Default command. Runs the full pipeline:
130142
- MCP server generation
131143

132144
```bash
133-
npm run mcpify -- analyze . \
145+
npx mcpify-cli analyze . \
134146
--swagger ./tests/fixtures/swagger/petstore.yaml \
135147
--prisma ./tests/fixtures/prisma/simple.prisma \
136148
--watch
@@ -148,31 +160,31 @@ Useful flags:
148160
Prompts for which analyzers to run and which source files to include.
149161

150162
```bash
151-
npm run mcpify -- interactive
163+
npx mcpify-cli interactive
152164
```
153165

154166
### `frontend [path]`
155167

156168
Extracts UI actions only and can print raw JSON.
157169

158170
```bash
159-
npm run mcpify -- frontend ./examples/internal-tool --json
171+
npx mcpify-cli frontend ./examples/internal-tool --json
160172
```
161173

162174
### `swagger <file>`
163175

164176
Converts an OpenAPI or Swagger spec directly into MCP tools.
165177

166178
```bash
167-
npm run mcpify -- swagger ./tests/fixtures/swagger/petstore.yaml
179+
npx mcpify-cli swagger ./tests/fixtures/swagger/petstore.yaml
168180
```
169181

170182
### `audit [path]` & `simulate [path]`
171183

172184
Run a static safety audit over the discovered tools and workflows. When `ANTHROPIC_API_KEY` is available, `simulate` executes an AI simulation battery against the discovered tool surface.
173185

174186
```bash
175-
npm run mcpify -- simulate ./examples/express-api
187+
npx mcpify-cli simulate ./examples/express-api
176188
```
177189

178190
## Architecture

landingPage/public/demo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@
608608
<p class="intro-sub">MCPify analyzes your app and generates a runnable MCP server — typed, permissioned, and agent-ready.</p>
609609
<div class="intro-chip">
610610
<span class="chip-play"></span>
611-
npm run mcpify -- analyze examples/ecommerce-saas
611+
npx mcpify-cli analyze examples/ecommerce-saas
612612
</div>
613613
</div>
614614
</div>
@@ -843,7 +843,7 @@
843843
tLine('');
844844
await sl(350);
845845

846-
await tType('npm run mcpify -- analyze examples/ecommerce-saas \\');
846+
await tType('npx mcpify-cli analyze examples/ecommerce-saas \\');
847847
tLine('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--output examples/ecommerce-saas/.mcpify \\');
848848
tLine('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--prisma examples/ecommerce-saas/prisma/schema.prisma \\');
849849
tLine('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--swagger examples/ecommerce-saas/openapi.json');

landingPage/src/components/TerminalAnimation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { motion } from "framer-motion";
22
import { useEffect, useState } from "react";
33

44
const lines = [
5-
{ text: "$ npm run mcpify -- analyze .", delay: 0 },
5+
{ text: "$ npx mcpify-cli analyze .", delay: 0 },
66
{ text: "→ Scanning backend routes...", delay: 800 },
77
{ text: "→ Detecting workflows...", delay: 1600 },
88
{ text: "→ Extracting frontend actions...", delay: 2400 },

landingPage/src/routes/docs.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const docs: DocItem[] = [
6262
title: "Quick Start",
6363
summary: "Build the repo, run the compiler, and inspect the generated MCP server in ./.mcpify.",
6464
highlights: ["Local source workflow", "Generated MCP output", "Works with example apps"],
65-
command: "npm run mcpify -- analyze ./examples/express-api",
65+
command: "npx mcpify-cli analyze ./examples/express-api",
6666
body: [
6767
{
6868
kind: "p",
@@ -71,7 +71,7 @@ const docs: DocItem[] = [
7171
{ kind: "h", text: "Boot the repo" },
7272
{ kind: "code", text: "npm install\nnpm run build" },
7373
{ kind: "h", text: "Compile an example app" },
74-
{ kind: "code", text: "npm run mcpify -- analyze ./examples/express-api" },
74+
{ kind: "code", text: "npx mcpify-cli analyze ./examples/express-api" },
7575
{
7676
kind: "p",
7777
text: "The compiler writes its output to ./.mcpify by default, including the generated server, schemas, tool metadata, workflow definitions, and AGENTS.md.",
@@ -94,7 +94,7 @@ const docs: DocItem[] = [
9494
{ kind: "code", text: "npm install\nnpm run build" },
9595
{
9696
kind: "p",
97-
text: "After that, use npm run mcpify -- <command> to invoke the compiled CLI entrypoint from the root workspace.",
97+
text: "After that, use npx mcpify-cli <command> to invoke the compiled CLI entrypoint from the root workspace.",
9898
},
9999
],
100100
},
@@ -106,7 +106,7 @@ const docs: DocItem[] = [
106106
summary: "The implemented CLI exposes analyze, interactive, audit, frontend, swagger, and simulate.",
107107
highlights: ["6 commands", "Optional analyzers", "Watch mode"],
108108
command:
109-
"npm run mcpify -- analyze . --swagger ./tests/fixtures/swagger/petstore.yaml --prisma ./tests/fixtures/prisma/simple.prisma",
109+
"npx mcpify-cli analyze . --swagger ./tests/fixtures/swagger/petstore.yaml --prisma ./tests/fixtures/prisma/simple.prisma",
110110
body: [
111111
{ kind: "h", text: "Available commands" },
112112
{
@@ -163,7 +163,7 @@ const docs: DocItem[] = [
163163
title: "Frontend Extraction",
164164
summary: "Frontend analysis focuses on user intent such as clicks, submissions, and navigations rather than low-level DOM details.",
165165
highlights: ["React and JSX", "Vue, Svelte, Angular", "UI action extraction"],
166-
command: "npm run mcpify -- frontend ./examples/internal-tool --json",
166+
command: "npx mcpify-cli frontend ./examples/internal-tool --json",
167167
body: [
168168
{
169169
kind: "p",
@@ -193,7 +193,7 @@ const docs: DocItem[] = [
193193
summary: "Optional schema analyzers add database operations from Prisma, Drizzle, and Mongoose into the generated tool set.",
194194
highlights: ["Prisma", "Drizzle", "Mongoose"],
195195
command:
196-
"npm run mcpify -- analyze ./examples/ecommerce-saas --prisma ./examples/ecommerce-saas/prisma/schema.prisma",
196+
"npx mcpify-cli analyze ./examples/ecommerce-saas --prisma ./examples/ecommerce-saas/prisma/schema.prisma",
197197
body: [
198198
{
199199
kind: "p",
@@ -283,7 +283,7 @@ const docs: DocItem[] = [
283283
title: "Audit and Simulation",
284284
summary: "MCPify includes both a static auditor and an optional AI simulation path for validating the generated surface.",
285285
highlights: ["Static audit", "Tool overview", "Optional AI security battery"],
286-
command: "npm run mcpify -- simulate ./examples/express-api",
286+
command: "npx mcpify-cli simulate ./examples/express-api",
287287
body: [
288288
{
289289
kind: "p",

landingPage/src/routes/index.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createFileRoute, Link } from "@tanstack/react-router";
2-
import { useState, useRef } from "react";
2+
import { useState, useRef, useEffect } from "react";
33
import { motion, useScroll, useMotionValueEvent } from "framer-motion";
44
import {
55
ArrowRight,
@@ -160,6 +160,17 @@ function Logo({ className = "h-9 w-auto" }: { className?: string }) {
160160
}
161161

162162
function Hero() {
163+
const [version, setVersion] = useState("v1.0.3");
164+
165+
useEffect(() => {
166+
fetch("https://registry.npmjs.org/mcpify-cli/latest")
167+
.then((res) => res.json())
168+
.then((data) => {
169+
if (data && data.version) setVersion(`v${data.version}`);
170+
})
171+
.catch((err) => console.error("Failed to fetch version:", err));
172+
}, []);
173+
163174
return (
164175
<section className="relative pt-40 pb-24 px-6 overflow-hidden">
165176
<div className="absolute inset-0 grid-bg pointer-events-none" />
@@ -174,7 +185,7 @@ function Hero() {
174185
>
175186
<div className="inline-flex items-center gap-2 glass rounded-full px-4 py-1.5 text-xs font-mono text-muted-foreground mb-8">
176187
<span className="w-1.5 h-1.5 rounded-full bg-primary animate-pulse-glow" />
177-
v1.0.2 — Production ready
188+
{version} — Production ready
178189
</div>
179190

180191
<h1 className="text-5xl md:text-7xl font-display font-semibold tracking-tight leading-[1.02]">
@@ -187,7 +198,7 @@ function Hero() {
187198
MCPify automatically transforms applications, APIs, frontends, workflows, and databases into AI-native systems for autonomous agents.
188199
</p>
189200

190-
<CopyCommand command="npm run mcpify -- analyze ." />
201+
<CopyCommand command="npx mcpify-cli analyze ." />
191202

192203
<div className="mt-9 flex items-center justify-center gap-3 flex-wrap">
193204
<a

0 commit comments

Comments
 (0)