MCP.so
ログイン
Q

Quicktype Mcp

@AscEmon

Quicktype Mcp について

概要はまだありません

基本情報

カテゴリ

その他

トランスポート

stdio

公開者

AscEmon

投稿者

Abu Sayed 53

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "quicktype-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/quicktype-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Quicktype Mcp?

Quicktype Mcp is an MCP (Model Context Protocol) server specialized in generating Dart models from JSON input. It uses the quicktype.io API to create type-safe, null-safe Dart classes with serialization and deserialization methods, primarily targeting Flutter and Dart developers.

How to use Quicktype Mcp?

Configure the server in your MCP client using the provided JSON snippet, specifying the command uv with the directory path and --directory argument pointing to the Quicktype Mcp installation folder, followed by run main.py. The server exposes the generate_model tool, which accepts a json_input string and an optional class_name (default: “Model”) and language (currently only supports dart).

Key features of Quicktype Mcp

  • Specialized for generating Dart models from JSON
  • Automatic JSON validation and fixing
  • Generates null-safe Dart models
  • Handles complex nested JSON structures
  • Includes fromJson and toJson methods

Use cases of Quicktype Mcp

  • Quickly create type-safe Dart models for Flutter applications
  • Convert complex nested JSON API responses into Dart classes
  • Automate Dart model generation from JSON schemas or sample data

FAQ from Quicktype Mcp

What are the prerequisites to run Quicktype Mcp?

Python 3.10 or higher and an active internet connection to access the quicktype.io API are required.

What languages does Quicktype Mcp support?

Currently, the server only supports generating models in Dart. The language parameter must be set to dart.

How does Quicktype Mcp handle nested JSON structures?

The server properly handles nested objects by generating their own classes, and correctly handles lists and maps with their generic types.

What should I do if the generated models have errors?

Ensure your JSON is valid, try simplifying complex JSON structures if you encounter errors, and check that the class name follows Dart naming conventions.

コメント

「その他」の他のコンテンツ