form-mcp
v0.10.2MCP 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.
| Parameter | Type | Description |
|---|---|---|
query | string | Words 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.
| Parameter | Type | Description |
|---|---|---|
names * | array | Export 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.
| Parameter | Type | Description |
|---|---|---|
code * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
definition | The form definition, as an object or as JSON text | |
json_schema | A JSON Schema to convert into a form definition instead | |
rules | array | Names of rules the application has besides the built-in ones |
types | array | The types the application renders; the types of the form kit by default |