Skip to content

Conversation

fveiraswww
Copy link
Contributor

@fveiraswww fveiraswww commented Jun 25, 2025

built a super basic MCP tool to edit block content

first request has a cold start, it parses basehub.d.ts to figure out context. The idea is to support prompts like "change the hero title to…" and resolve the right component

limitations: right now you need to be exact with component names, which can be annoying. I imagine multiple layers to get the right instance id, even a "contains" fallback (e.g "change the text that says 'this is a hero'") but that would probably require access to the actual content, not sure if that's possible or even desirable

super early poc it works, but far from the UX/DX i have in mind. Posting in case someone wants to build on it or has ideas

prompts to test (marketing website template):

"change the hero title to 'lorem ipsum' and the subtitle to 'lorem ipsum 2'"

"change the callout title to 'lorem ipsum'"

"change the cta button title to 'lorem ipsum'"

only supports string fields for now

demo:

update-blocks-content.mp4

Copy link

vercel bot commented Jun 25, 2025

@fveiraswww is attempting to deploy a commit to the BaseHub Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant