Download the PHP package code-wheel/mcp-schema-builder without Composer

On this page you can find all versions of the php package code-wheel/mcp-schema-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mcp-schema-builder

MCP Schema Builder

CI codecov Latest Stable Version License

A fluent JSON Schema builder with validation for MCP (Model Context Protocol) tool definitions. Build type-safe schemas, validate LLM-generated inputs, and use pre-built patterns for common MCP tools.

Installation

Quick Start

Building Schemas

Validating Input

MCP Presets

Schema Composition

Schema Builder API

String

Integer / Number

Boolean

Array

Object

MCP Presets Reference

Identifiers

Method Description
McpSchema::entityId($type) Entity ID (numeric or UUID)
McpSchema::machineName($desc) Machine name pattern [a-z][a-z0-9_]*
McpSchema::uuid() UUID format
McpSchema::slug() URL-safe slug

Pagination & Filtering

Method Description
McpSchema::pagination($default, $max) limit + offset properties
McpSchema::cursorPagination($default) limit + cursor properties
McpSchema::sorting($fields) sort_by + sort_order properties
McpSchema::searchQuery($minLen) Search query string
McpSchema::statusFilter($statuses) Status enum filter
McpSchema::dateRange() from + to date properties

Content

Method Description
McpSchema::title($maxLen) Title string with length limits
McpSchema::body($allowHtml) Body/content field
McpSchema::tags() Array of tag strings
McpSchema::metadata() Key-value object

Complete Tool Schemas

Method Description
McpSchema::listToolSchema($filters, $sorts) List entities with pagination
McpSchema::getToolSchema($idField, $type) Get single entity by ID
McpSchema::createToolSchema($required, $optional) Create entity
McpSchema::updateToolSchema($idField, $fields) Update entity
McpSchema::deleteToolSchema($idField, $force) Delete entity
McpSchema::confirmation() Destructive operation confirmation

Validation

The SchemaValidator validates:

Integration with mcp-error-codes

Integration with mcp-tool-gateway

License

MIT License - see LICENSE file.


All versions of mcp-schema-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package code-wheel/mcp-schema-builder contains the following files

Loading the files please wait ...