Abilities API: Register Resources#1103
Draft
n7studios wants to merge 7 commits into
Draft
Conversation
Registers Forms, Landing Pages, Tags and Products that MCP can fetch lists of, which can be used in conjunction with other tools e.g. inserting a specific form by name on a Page, updating an existing product by name on a Post etc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds four read-only MCP abilities that list the Kit resources cached from the connected Kit account, so an MCP client can map a user-supplied resource name (e.g. "the Auto Confirm Form") to the numeric ID required by every other Kit ability.
Without these, AI can call the existing MCP tools e.g.
kit/form-update, but the model but has no way to discover which Form / Tag / Landing Page / Product IDs are valid, meaning prompts like "replace the Page Form on /pricing with the Auto Opt In Form" either fail or hallucinate IDs.Testing
MCPResourceTest: Test that each resource is registered as an ability and loads the correct data.Checklist