JSONレシピ、型グラフ、OpenAPI、GraphQL、Protobuf、またはSQL DDLから、11種類の言語でソースコード、モデル、およびAPIクライアントを生成します。
別名 meta-engine/mcp-server, mcp-server, @metaengine/mcp-server
- スター
- 0
- ツール
- 9
- ダウンロード数(30日間)
- —
- 最新バージョン
- 1.5.0
- 最終コミット
- 2026年9月15日
- ライセンス
- MIT
MetaEngine MCPとは
JSONレシピ、型グラフ、OpenAPI、GraphQL、Protobuf、またはSQL DDLから、11種類の言語でソースコード、モデル、およびAPIクライアントを生成します。 9個のツールを提供しており、generate_from_recipe, generate_code, load_spec_from_fileなどがあります。
プロジェクトのREADMEから生成された概要
MetaEngine MCP server について
MetaEngineは、Claude Desktop、Cursor、ClineなどのMCPクライアントを使用する開発者が、さまざまなスキーマ形式からソースコード、モデル、APIクライアントを生成することを可能にします。型グラフ、JSONレシピ、またはAPIスキーマを提供することで、TypeScript、Python、Go、Rust、Javaを含む11種類の言語でファイルを自動生成できます。このサーバーは、簡潔なレシピの展開を行い、ペイロードを処理用のホスト型APIに送信し、生成されたファイルをローカルの出力ディレクトリに書き込みます。
このツールは、特定のアプリケーションアーキテクチャを規定することなく、構造化されたクラス、インターフェース、enum、およびサービスを作成するために設計されています。OpenAPI、GraphQL、Protobuf、SQL DDLなど、幅広い入力タイプをサポートしています。開発者は、型付きクライアントを作成するためのgenerate_openapiや、モデル型を作成するためのgenerate_sqlといった特定のツールを使用できます。このシステムは、カスタムコードの統合を可能にし、ジェネリクスや継承などの複雑な関係を処理します。ホスト型サービスはAPIキーを必要としませんが、1回のリクエストあたりのカウント対象となる型には250個の制限があります。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
MetaEngine MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにMetaEngine MCPをインストール
$ claude mcp add mcp-server -- npx -y @metaengine/mcp-serverCursorにMetaEngine MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@metaengine/mcp-server"
]
}
}
}VS CodeにMetaEngine MCPをインストール
.vscode/mcp.json
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@metaengine/mcp-server"
]
}
}
}VS Code CLIにMetaEngine MCPをインストール
$ code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@metaengine/mcp-server"]}'Claude DesktopにMetaEngine MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@metaengine/mcp-server"
]
}
}
}CodexにMetaEngine MCPをインストール
$ codex mcp add mcp-server -- npx -y @metaengine/mcp-serverCodex config.tomlにMetaEngine MCPをインストール
~/.codex/config.toml
[mcp_servers.mcp-server] command = "npx" args = ["-y", "@metaengine/mcp-server"]
Gemini CLIにMetaEngine MCPをインストール
$ gemini mcp add -s user mcp-server npx -- -y @metaengine/mcp-serverGemini settings.jsonにMetaEngine MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@metaengine/mcp-server"
]
}
}
}MetaEngine MCPツール 9
READMEから検出generate_from_recipegenerate_codeload_spec_from_filegenerate_openapigenerate_graphqlgenerate_protobufgenerate_sqlmetaengine_initializedryRun
| generate_from_recipe | — | |
| generate_code | — | |
| load_spec_from_file | — | |
| generate_openapi | — | |
| generate_graphql | — | |
| generate_protobuf | — | |
| generate_sql | — | |
| metaengine_initialize | — | |
| dryRun | — |
設定
METAENGINE_API_URLOverride the MetaEngine generation API endpoint (defaults to https://api.metaengine.eu)
| 名前 | 説明 | 種類 |
|---|---|---|
| METAENGINE_API_URL | Override the MetaEngine generation API endpoint (defaults to https://api.metaengine.eu) |
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能meta-engine/mcp-server is public and reachablegithub.com/meta-engine/mcp-server ↗合格
- パッケージがこのリポジトリをソースとして指定@metaengine/mcp-server names meta-engine/mcp-server as sourcenpmjs.com/package/@metaengine/mcp-server ↗合格
- ビルドの来歴 (Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-09-15github.com/meta-engine/mcp-server ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @metaengine/mcp-server合格
- パッケージおよびその依存関係に重大な勧告なし99 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない9 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされているNo tool named like delete, drop or exec合格
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るMetaEngine MCP Server
Generate related source files from a type graph, a compact JSON recipe, or an API schema through your MCP client.
MetaEngine combines structured classes, interfaces, enums, collections, and generics with target-language code supplied in customCode. Explicit references connect that code to the same type graph, so the generator can resolve names and imports across the batch. Use it for models, services, adapters, or other structures you describe; the format does not prescribe an application architecture.
Install
Node.js 18 or later is required. Add the server to your MCP client's configuration:
{
"mcpServers": {
"metaengine": {
"command": "npx",
"args": ["-y", "@metaengine/mcp-server@1.5.0"]
}
}
}
For Claude Code:
claude mcp add metaengine -- npx -y @metaengine/mcp-server@1.5.0
The hosted service requires no API key or account. MCP clients include Claude Code, Claude Desktop, Cursor, Cline, and others with stdio support.
Start with a recipe
Call generate_from_recipe with these arguments:
{
"recipe": {
"recipeVersion": 1,
"language": "typescript",
"typeScriptOptions": { "relativeImportExtension": "js" },
"classes": [
{ "name": "Customer", "id": "customer", "properties": { "id": "string", "name": "string" } },
{ "name": "Order", "properties": { "customer": { "ref": "customer" }, "total": "number", "note?": "string" } }
]
},
"outputPath": "src/models"
}
The local MCP server expands the recipe into the existing generation payload, sends that payload to the MetaEngine API, and writes the returned files. Add named templates and parameter rows when structures repeat. Existing customCode, templateRefs, imports, decorators, inheritance, and generic definitions remain available.
A version-controlled recipe can be invoked with {"recipeFilePath":"specs/models.recipe.json"}. Reading a file avoids resending its contents in the tool call. Files still need to be authored or maintained.
Recipe grammar and examples · Generation guide · Language examples
Tools
| Tool | Purpose |
|---|---|
generate_from_recipe |
Expand compact JSON fields, named templates, and local JSON input rows into the existing type graph, then generate files. |
generate_code |
Generate from the complete native JSON type graph, including arbitrary target-language code with explicit references. |
load_spec_from_file |
Read a native generate_code payload from a local JSON file. |
generate_openapi |
Generate a typed client from an OpenAPI document supplied inline or by URL. |
generate_graphql |
Generate a typed client from GraphQL SDL, with optional named fragments. |
generate_protobuf |
Generate a typed client from Protocol Buffers definitions. |
generate_sql |
Generate model types from SQL DDL. |
metaengine_initialize |
Load generation rules and language notes for the assistant. |
Type and model generation supports TypeScript, Python, Go, C#, Java, Kotlin, Groovy, Scala, Swift, PHP, and Rust. Client generation targets Angular, React, TypeScript Fetch, Go net/http, Java Spring, Python httpx, C# HttpClient, Kotlin Ktor, Rust Reqwest, and Swift URLSession.
generate_code, load_spec_from_file, and generate_from_recipe share generation and file-writing behavior:
outputPathchooses the local output directory; the default is the MCP server's working directory.skipExistingdefaults totrue. Set it tofalseto overwrite generated files.dryRun: truereturns generated file contents without writing them. Generation still calls the hosted API.- Related type references resolve within one batch. Include the complete graph in that call.
- The hosted limit is 250 counted types per generation request. The exact count is described in the recipe guide.
For Node16/NodeNext TypeScript ESM, use typeScriptOptions: {"relativeImportExtension":"js"}. Other TypeScript output retains extensionless relative imports by default.
Where recipes help
Field maps remove repeated property metadata. Templates describe repeated structure once and bind explicit parameter values. Local JSON inputs can supply those values from a file you already maintain. The adapter executes no JavaScript from a recipe.
Savings depend on the amount of repetition, the chosen model and tokenizer, and the surrounding agent workflow. Custom business logic still needs to be written. A recorded development fixture compares a 59-interface recipe with its expanded payload; it measures JSON bytes, not model tokens or usage-limit guarantees.
The compact format keeps one readable path for common declarations and the existing native fields for advanced code. Native type expressions and customCode remain specific to their target language. Review and compile generated code in your project, including its dependencies and compiler settings.
Privacy and execution
The local MCP server runs over stdio and performs recipe expansion, declared local file reads, and generated-file writes. The hosted MetaEngine API performs ephemeral processing of the expanded generation payload and returns source files.
The server does not automatically scan or upload existing project source files. Source or customCode content explicitly included in a generation request is part of that request and is sent to the hosted MetaEngine API. Values read from recipe inputs are included only when the recipe uses them in the expanded payload.
Submitted generation content and generated file contents are not persisted or logged; anonymous operational metadata is retained. See the Privacy Policy and Terms for the processing and retention details.
Recorded agent workflows
A single MCP call can produce many files, reducing required tool operations. Model responses are a separate measure: in the recorded TypeScript runs Opus often issued one Write per response, while Sonnet usually batched the Writes. The corrected benchmark findings separate those counts and retain output-token totals and pass rates.
For reproducible measurements across languages, models, and spec shapes, see benchmark/ — a self-contained harness with the prompts, judging tools, and 15 canonical result folders. Numbers there are illustrations from one author's runs at N=5 per cell; reproduce in your own environment to see what holds for you.
Links
License
MIT
About this repository
This repository contains public documentation, examples, benchmarks, and issue tracking for MetaEngine MCP Server. The compiled npm package is available at @metaengine/mcp-server. The server implementation is maintained in a private repository.
MetaEngine MCPのよくある質問
MetaEngine MCPをClaude Codeに追加するには
ターミナルでclaude mcp add mcp-server -- npx -y @metaengine/mcp-serverを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
MetaEngine MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
MetaEngine MCPが提供するツールは
9個のツールを提供しており、generate_from_recipe, generate_code, load_spec_from_file, generate_openapi, generate_graphqlなどがあります。
コード生成に対応している言語は何ですか?
TypeScript、Python、Go、C#、Java、Kotlin、Groovy、Scala、Swift、PHP、およびRustに対応しています。
ホスト型サービスを利用するためにAPIキーは必要ですか?
いいえ、ホスト型サービスを利用するのにAPIキーやアカウントは必要ありません。
サーバーはプロジェクト全体をアップロードしますか?
いいえ、サーバーが既存のプロジェクトのソースファイルを自動的にスキャンしたりアップロードしたりすることはありません。リクエストに明示的に含まれたコンテンツのみがAPIに送信されます。