form-mcp

v0.10.2
@punica/form-mcp Checked 6 hours ago Published 5 days ago

MCP server for Punica Form: look up the exact API of its packages, read the rules and check code that uses them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_guide How to use Punica Form

The rules of Punica Form: what the packages provide and what the application builds itself, the lifecycle, the immutable state, the services and how to call them, events, and a complete working example.

search_api Find Punica Form exports

Finds exports of the Punica Form packages (@punica/form, @punica/form-service, @punica/form-react, @punica/form-kit, @punica/form-json, @punica/form-schema) by name or by words in their documentation ("validate", "reader", "field"). Without a query: every export.

ParameterTypeDescription
querystringWords to look for

get_api The declaration of an export

The exact TypeScript declaration and documentation of one or more exports, such as FormController, Validate, TextField or KitForm, read from the installed packages.

ParameterTypeDescription
names *arrayExport names

validate_code Check code that uses Punica Form

Checks TypeScript or JavaScript that uses Punica Form: imports the packages do not export and calls that do not exist, such as the 1.x API. Returns each problem with its line and a fix.

ParameterTypeDescription
code *stringThe code to check

get_form_schema The format of a form described as data

The JSON Schema of a Punica Form definition (@punica/form-json): a form as JSON that an application renders at run time, without code. Read it before writing a form definition, and use it as the schema of structured output.

validate_form Check a form definition

Checks a form definition (the JSON of @punica/form-json) before it is given to an application: its shape, unknown types and rules, conditions that point to items that do not exist, duplicate properties and anything that is not data. Returns each problem with its path. Give `json_schema` instead to turn a flat JSON Schema into a form definition.

ParameterTypeDescription
definitionThe form definition, as an object or as JSON text
json_schemaA JSON Schema to convert into a form definition instead
rulesarrayNames of rules the application has besides the built-in ones
typesarrayThe types the application renders; the types of the form kit by default