[Schema] Generate Schema based on official JSON Schema

Open
#13 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
php

Research direction

Compare the official TypeScript and JSON Schema definitions linked in the issue with the existing Mcp\Schema namespace. Review available PHP JSON Schema generation packages and document which responsibilities would move from Mcp\Schema; done means a justified implementation plan with identified package and migration boundaries.

Written by the indexing model from the issue text.

Description

Schema

The official MCP specification has a TypeScript and JSON Schema definition, which was the base for building the Mcp\Schema namespace.

However, we should evaluate if we can generate PHP classes based on the JSON Schema (expected to be easier than Typescript), instead of writing and maintaining that component itself.

There are packages out there for this tasks, and we should check what kind of responsibilities we would need to move away from the Mcp\Schema namespace, if needed.


Please announce yourself before working on this - so we can avoid duplicate effort.

Dominant language
PHP
Stars
1.6k
Forks
173
Avg merge
2d 49m
Merged PRs (30d)
23

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from modelcontextprotocol/php-sdk

All issues in modelcontextprotocol/php-sdk

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.