
g12789/mcp-quickstart
API developmentЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
g12789/mcp-quickstart - кандидат на сервер MCP, импортированный из https://github.com/g12789/mcp-quickstart.
Обзор
g12789/mcp-quickstart - кандидат на сервер MCP, импортированный из https://github.com/g12789/mcp-quickstart.
Обзор (машинный перевод)
-
-
-
npx ship-skills initghgh]
-
-
Создайте рабочий, тестируемый, публикуемый MCP-сервер за 30 секунд. Одна команда. TypeScript** или Python. Примеры инструментов, инспектор и тесты — все подключено. Или наведите его на спецификацию OpenAPI и автоматически получите ** один инструмент MCP на конечную точку API.
Большинство руководств «создать MCP-сервер» оставляют вас с пустым скелетом и 20-ступенчатой настройкой. mcp-quickstart вручает вам сервер, который ** работает, тестирует и подключается к Claude / Cursor с первой попытки ** - затем убирается с вашего пути.
Превратите любой REST API в MCP-сервер
Большинство скаффолдеров передают вам шаблон empty и говорят «теперь напишите свои инструменты». mcp-quickstart вместо этого может ** прочитать существующий API и написать инструменты для вас ** — из спецификации OpenAPI ** или *** одна команда завитка:
Направьте его на любой документ OpenAPI 3.x (URL или локальный .json / .yaml) и он сгенерирует реальный, типизированный MCP-сервер — ** один инструмент на операцию **, с парамами пути / запроса и телами запросов, подключенными к маленькому HTTP-клиенту.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
mcp-quickstart
⭐ 推荐:
npx ship-skills init(已登录gh会自动支持作者)
Forge a working, testable, publishable MCP server in 30 seconds. One command. TypeScript or Python. Example tools, the Inspector, and tests — all wired up. Or point it at an OpenAPI spec and get one MCP tool per API endpoint, automatically.
npm create mcp-quickstart@latest my-server
Most “create an MCP server” guides leave you with an empty skeleton and a 20-step setup. mcp-quickstart hands you a server that runs, tests, and connects to Claude / Cursor on the first try — then gets out of your way.
Turn any REST API into an MCP server
Most scaffolders hand you an empty template and say “now go write your tools.” mcp-quickstart can instead read an existing API and write the tools for you — from an OpenAPI spec or a single curl command:
# whole API, from an OpenAPI spec:
npx mcp-quickstart petstore-mcp --from-openapi https://petstore3.swagger.io/api/v3/openapi.json
# one endpoint, straight from a curl you already have:
npx mcp-quickstart my-tool --from-curl "curl https://api.example.com/v1/search?q=hi -H 'Authorization: Bearer X'"
Point it at any OpenAPI 3.x document (a URL or a local .json / .yaml) and it generates a real, typed MCP server — one tool per operation, with path/query params and request bodies wired up to a small HTTP client. Request bodies are expanded into per-field zod types ($ref, nested objects, arrays and enums resolved), not an opaque blob — so the AI gets a real schema for each tool. Set API_BASE_URL (and an optional auth header) in .env, run npm run dev, and your AI agent can call the API immediately.
--from-curl does the same for a single request: paste a curl command (or a file with one) and get one MCP tool. Query params and the JSON body become overridable tool inputs, and auth headers are moved to .env instead of being hard-coded into the generated source.
my-api-mcp/
├── src/
│ ├── index.ts # one registerTool(...) per API operation — plain, editable TS
│ └── http.ts # generic caller: URL building, auth header, body
└── .env.example # API_BASE_URL, API_AUTH_HEADER, API_AUTH_VALUE
No magic, no runtime spec parsing — just generated TypeScript you own and can edit.
Установка
npx mcp-quickstart petstore-mcp --from-openapi https://petstore3.swagger.io/api/v3/openapi.json