You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(fields): accept custom and third-party field types in gf_add_field
gf_add_field threw "Unknown field type" for any type not in the static 46-key registry, rejecting third-party fields (Gravity Perks, Gravity Wiz, etc.) that Gravity Forms itself accepts. The registry is now an enhancement, not a gate: unknown types are created with graceful degradation plus a warning. Also stop leaking the internal _unknown flag to Gravity Forms on form create/update, and align validateFieldConfig to tolerate unknown types. Convert the orphan field-operations-integration harness to exercise the real field-operations layer.
Bump 2.4.0 -> 2.4.1.
Claude-Session: https://claude.ai/code/session_01LJHfTpQknHFs1j5ayj7fpo
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This is the single canonical doc for the project (agents and humans). `CLAUDE.md
6
6
7
7
## Project Identity
8
8
9
-
-**Package:**`@gravitykit/mcp` v2.4.0
9
+
-**Package:**`@gravitykit/mcp` v2.4.1
10
10
-**Type:** Node.js MCP server (ESM)
11
11
-**Purpose:** Full Gravity Forms REST API v2 coverage (26 Gravity Forms tools), plus dynamic GravityKit product tools (GravityView so far) via the WordPress Abilities API
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,14 @@ All notable changes to GravityKit MCP (formerly GravityMCP) will be documented i
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [2.4.1] - 2026-06-25
9
+
10
+
This release lets the field tools work with custom and third-party field types, not just the ones built into Gravity Forms.
11
+
12
+
### 🐛 Fixed
13
+
-**`gf_add_field` now accepts custom and third-party field types.** Field types added by other plugins (Gravity Perks, Gravity Wiz, and similar add-ons) were previously rejected because they aren't in the built-in registry. They are now created normally, with a note when type-specific defaults or sub-inputs aren't available; pass `inputs`/`choices` explicitly for custom compound or choice fields.
14
+
-**Unrecognized field types no longer leave an internal marker in saved forms** when creating or updating a form.
15
+
8
16
## [2.4.0] - 2026-06-19
9
17
10
18
This update adds additional guards to make sure Gravity Forms entries save correctly for every field type, so an AI assistant gets the entry format right the first time. Adds explicit support for the `password` field type and Gravity Wiz Nested Forms, plus a benchmark suite that ensures the MCP works well with small models.
@@ -236,6 +244,7 @@ A correctness pass on the Gravity Forms (`gf_*`) plane, verified against Gravity
// Replace form via direct PUT (no re-fetch; we already have the full state)
69
+
awaitthis.api.replaceForm(formId,form);
70
+
71
+
// Surface field-shape warnings, plus a heads-up when the type is unrecognized.
72
+
constwarnings=this.validator.getWarnings(field);
73
+
if(!isKnownType){
74
+
warnings.unshift(
75
+
`Field type '${fieldType}' is not in the known field registry; created without type-specific defaults or sub-inputs. Pass 'inputs'/'choices' explicitly if this type needs them.`
0 commit comments