Skip to content

Set up with AI

Putting a form in a site is one package, two commands and a component, which makes it a good job for a coding agent. These docs are published in a form an agent can read in one go.

File What it holds
/llms.txt A short map of these docs, with links.
/llms-full.txt Every page in one file. Point an agent here when you want it to write code.
/llms-small.txt The same, trimmed for a smaller context.

Copy one and paste it into Claude Code, Cursor or any coding agent. Publish the form in the app first: an agent only ever sees published forms.

Hand this to your coding agent

Read https://developer.seaforms.io/llms-full.txt.
Install @seaforms/react in this Next.js (App Router) project. Run npx seaforms login (I'll approve it in my browser), then npx seaforms pull to save my published forms in src/forms with their types.
Then add the contact form to app/contact/page.tsx with the Form component.
Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.

If someone else publishes the form’s changes, have the agent fetch it while the site builds instead of keeping its file. Put your form’s ID in place of <FORM_ID>, and set SEAFORMS_API_KEY yourself (an API key that can only read forms):

Hand this to your coding agent

Read https://developer.seaforms.io/llms-full.txt.
Install @seaforms/react in this Next.js (App Router) project. Fetch the form while the site builds with getForm from @seaforms/react/server. Its ID is <FORM_ID>. The API key is in the SEAFORMS_API_KEY environment variable: read it from there and never write a key into the code.
Then show the form on app/quote/page.tsx, checking for a newly published version at most once an hour.
Use only the components, functions and commands that file lists, and don't edit the .seaforms.json files.

With the MCP connector, a coding tool such as Claude Code or Cursor can make the form itself, publish it and save its file in your code, so you never leave the editor. You choose what it may do when it connects, and it can’t delete anything.

Terminal window
claude mcp add --transport http seaforms https://mcp.seaforms.io/mcp

See Claude Code or Cursor, VS Code and others for signing it in.

Was this helpful?

Your answer goes straight to the person who wrote it.

Thanks. We read every note and update the article.

Thanks, that helps us keep these useful.

ChatGPT is a trademark of OpenAI, and Claude and Claude Code are trademarks of Anthropic. Other product names and logos belong to their owners. None of them makes or endorses Seaforms. Trademarks